org.edg.info
Class RegistrationThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.edg.info.RegistrationThread
All Implemented Interfaces:
java.lang.Runnable

public class RegistrationThread
extends java.lang.Thread

RegistrationThread used to update the termination interval for Producer and Consumer instances.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RegistrationThread(InstanceBase instance, InstanceTracker instanceTracker)
          Creates a new RegistrationThread instance, used for soft-state registration.
 
Method Summary
 long getLastRegistryUpdateIntervalMillis()
           
 long getLastRegistryUpdateTimeMillis()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

RegistrationThread

public RegistrationThread(InstanceBase instance,
                          InstanceTracker instanceTracker)
Creates a new RegistrationThread instance, used for soft-state registration.

Parameters:
instance - Instance to keep alive.
instanceTracker - Reference to InstanceTracker containing instance; must not be null.
Method Detail

run

public void run()

getLastRegistryUpdateTimeMillis

public long getLastRegistryUpdateTimeMillis()
Returns:
Time of last successful registry update.

getLastRegistryUpdateIntervalMillis

public long getLastRegistryUpdateIntervalMillis()
Returns:
Registry update interval.