no.ubicollab.osgi
Class HouseKeeperThread

java.lang.Object
  extended by java.lang.Thread
      extended by no.ubicollab.osgi.HouseKeeperThread
All Implemented Interfaces:
java.lang.Runnable

public class HouseKeeperThread
extends java.lang.Thread

The Class HouseKeeperThread run as a seperate thread and is responsible for picking out clients and plugins which have not been in contact for a time duration specified in GlobalSettings.

Since:
0.1
Version:
0.2
Author:
Kim-Steve Johansen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HouseKeeperThread(PluginList pList, ClientList cList)
           
 
Method Summary
static void resetThread()
          This method will reset the running member of the HouseKeeperThread thread.
 void run()
          The code in this method starts to run as a thread when the inherited Thread#start have been called.
static void stopThread()
          This method will stop the HouseKeeperThread thread.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HouseKeeperThread

public HouseKeeperThread(PluginList pList,
                         ClientList cList)
Method Detail

run

public void run()
The code in this method starts to run as a thread when the inherited Thread#start have been called.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run()

stopThread

public static void stopThread()
This method will stop the HouseKeeperThread thread.


resetThread

public static void resetThread()
This method will reset the running member of the HouseKeeperThread thread. This must be done before the thread can be started again.