|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.mmbob.ForumMMBaseSyncer
The syncer for Nodes used in MMBob. There can be different types of syncing mechanisms: slow for things like statistics and fast for really important things like postings, userinfo, etc
| Constructor Summary | |
ForumMMBaseSyncer(int sleeptime,
int maxqueue,
int startdelay)
Contructor |
|
| Method Summary | |
void |
doWork()
Main work loop Commit the nodes in the syncQueue to the database |
void |
init()
init() |
void |
nodeDeleted(Node node)
remove the given node from the syncQueue |
void |
run()
Main loop, exception protected |
void |
shutdownSync()
|
void |
start()
Starts the main Thread. |
void |
syncNode(Node node)
add the given node to the syncQueue, to be synchronized at synchronization-time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ForumMMBaseSyncer(int sleeptime,
int maxqueue,
int startdelay)
sleeptime - time to sleepmaxqueue - maximum number of nodes in the syncQueue (not implemented?)startdelay - delay (not implemented?)| Method Detail |
public void init()
public void start()
public void run()
run in interface Runnablepublic void doWork()
public void shutdownSync()
public void nodeDeleted(Node node)
node - node that has to be removed from the syncQueuepublic void syncNode(Node node)
node - the node that must added to the syncQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||