com.adventnet.utils.agent
Class HolderThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.adventnet.utils.agent.HolderThread
All Implemented Interfaces:
java.lang.Runnable

public class HolderThread
extends java.lang.Thread

The HolderThread for sheduling the events. This will be instantiated with in the ThreadSheduler.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int idNumber
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HolderThread()
          Default Constructor.
 
Method Summary
 void finalize()
          finalize.
 void run()
          The HolderThread's run method.
(package private)  void setIdNumber(int i)
           
 void setPduListener(SnmpPduRequestListener l)
          Method to set the PduListener to this Thread.
 void setSch(ThreadScheduler sch)
          Method to set the ThreadScheduler to this class.
(package private)  boolean STOP_THREAD()
           
 void WaitUntilAsked()
          Method to make the thread wait.
(package private)  void wakeUp()
           
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idNumber

int idNumber
Constructor Detail

HolderThread

public HolderThread()
Default Constructor.

Method Detail

setPduListener

public void setPduListener(SnmpPduRequestListener l)
Method to set the PduListener to this Thread.

Parameters:
l - The SnmpPduRequestListener set to this.

setSch

public void setSch(ThreadScheduler sch)
Method to set the ThreadScheduler to this class.

Parameters:
sch - The ThreadScheduler to be set.

setIdNumber

void setIdNumber(int i)

STOP_THREAD

boolean STOP_THREAD()

wakeUp

void wakeUp()

WaitUntilAsked

public void WaitUntilAsked()
Method to make the thread wait.


run

public void run()
The HolderThread's run method.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

finalize

public void finalize()
finalize.

Overrides:
finalize in class java.lang.Object