org.mmbase.applications.mmbob
Class ForumMMBaseSyncerShutdown

java.lang.Object
  extended by java.lang.Thread
      extended by org.mmbase.applications.mmbob.ForumMMBaseSyncerShutdown
All Implemented Interfaces:
Runnable

public class ForumMMBaseSyncerShutdown
extends Thread

This hook will be used by the jvm and tries to sync all MMBob nodes before shutting down

Version:
$Id: ForumMMBaseSyncerShutdown.java 35620 2009-06-03 13:46:59Z michiel $
Author:
Gerard van Enk

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ForumMMBaseSyncerShutdown(ForumMMBaseSyncer managedClass)
          instantiaties the shutdown hook with the Syncer.
 
Method Summary
 void run()
          runs when jvm goes down and tries to sync the MMBob nodes
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForumMMBaseSyncerShutdown

public ForumMMBaseSyncerShutdown(ForumMMBaseSyncer managedClass)
instantiaties the shutdown hook with the Syncer.

Parameters:
managedClass - The ForumMMBaseSyncer to be used for syncing when the jvm goes down
Method Detail

run

public void run()
runs when jvm goes down and tries to sync the MMBob nodes

Specified by:
run in interface Runnable
Overrides:
run in class Thread


MMBase 2.0-SNAPSHOT - null