com.adventnet.utils.agent
Class HolderThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.adventnet.utils.agent.HolderThread

public class HolderThread
extends java.lang.Thread

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


Field Summary
(package private)  int idNumber
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, values
 
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, getContextClassLoader, getName, getPriority, getThreadGroup, 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
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.
Overrides:
run in class java.lang.Thread

finalize

public void finalize()
finalize.
Overrides:
finalize in class java.lang.Object