|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
net.sourceforge.pebble.event.blog.PebbleAPIBlogEntryAggregator
public abstract class PebbleAPIBlogEntryAggregator
Blog listener that polls a Pebble blog, using the Pebble XML-RPC API, to pull across and aggregate blog entries. This assumes that the IDs of blog entries in both the local and remote blogs don't clash.
| Field Summary | |
|---|---|
static java.lang.String |
BLOG_ENTRIES_KEY
|
static java.lang.String |
BLOG_KEY
|
static java.lang.String |
PASSWORD_KEY
|
static java.lang.String |
USERNAME_KEY
|
static java.lang.String |
XMLRPC_URL_KEY
|
| Constructor Summary | |
|---|---|
PebbleAPIBlogEntryAggregator()
|
|
| Method Summary | |
|---|---|
void |
blogStarted(BlogEvent event)
Called when a blog has been started. |
void |
blogStopped(BlogEvent event)
Called when a blog has been stopped. |
protected java.lang.String |
getPropertyPrefix()
Gets the prefix to use when defining properties for this plugin. |
protected abstract void |
postAggregate(BlogEntry blogEntry)
Called after each blog entry is aggregated. |
protected abstract boolean |
preAggregate(java.util.Hashtable blogEntry)
Called before each blog entry is aggregated. |
void |
run()
|
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XMLRPC_URL_KEY
public static final java.lang.String BLOG_KEY
public static final java.lang.String USERNAME_KEY
public static final java.lang.String PASSWORD_KEY
public static final java.lang.String BLOG_ENTRIES_KEY
| Constructor Detail |
|---|
public PebbleAPIBlogEntryAggregator()
| Method Detail |
|---|
public void blogStarted(BlogEvent event)
blogStarted in interface BlogListenerevent - a BlogEvent instancepublic void blogStopped(BlogEvent event)
blogStopped in interface BlogListenerevent - a BlogEvent instancepublic void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskprotected abstract boolean preAggregate(java.util.Hashtable blogEntry)
blogEntry - a Hashtable instance representing a blog entry
protected abstract void postAggregate(BlogEntry blogEntry)
blogEntry - a Hashtable instance representing a blog entryprotected java.lang.String getPropertyPrefix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||