org.mmbase.applications.mmbob
Class ForumMMBaseSyncer

java.lang.Object
  extended byorg.mmbase.applications.mmbob.ForumMMBaseSyncer
All Implemented Interfaces:
Runnable

public class ForumMMBaseSyncer
extends Object
implements Runnable

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

Version:
$Id: ForumMMBaseSyncer.java,v 1.8 2006/05/03 18:09:01 daniel Exp $
Author:
Daniel Ockeloen, Gerard van Enk

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

ForumMMBaseSyncer

public ForumMMBaseSyncer(int sleeptime,
                         int maxqueue,
                         int startdelay)
Contructor

Parameters:
sleeptime - time to sleep
maxqueue - maximum number of nodes in the syncQueue (not implemented?)
startdelay - delay (not implemented?)
Method Detail

init

public void init()
init()


start

public void start()
Starts the main Thread.


run

public void run()
Main loop, exception protected

Specified by:
run in interface Runnable

doWork

public void doWork()
Main work loop Commit the nodes in the syncQueue to the database


shutdownSync

public void shutdownSync()

nodeDeleted

public void nodeDeleted(Node node)
remove the given node from the syncQueue

Parameters:
node - node that has to be removed from the syncQueue

syncNode

public void syncNode(Node node)
add the given node to the syncQueue, to be synchronized at synchronization-time

Parameters:
node - the node that must added to the syncQueue


MMBase build 1.8.1.20060716