no.ubicollab.osgi
Class TimeKeeper

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

public class TimeKeeper
extends java.lang.Thread

The Class TimeKeeper run as a seperate thread and is responsible for picking up new ClientRequest from Service Discovery Manager, and try to fulfill these.

Since:
0.1
Version:
0.3
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
TimeKeeper(PluginServiceRegistryImpl srPlugin)
          This Constructor creates the neccessary reference to the PluginServiceRegistryImpl.
 
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 TimeKeeper 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

TimeKeeper

public TimeKeeper(PluginServiceRegistryImpl srPlugin)
This Constructor creates the neccessary reference to the PluginServiceRegistryImpl.

Parameters:
srPlugin - the instance that invoked this class.
See Also:
PluginServiceRegistryImpl.PluginServiceRegistryImpl()
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 TimeKeeper 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.