All Packages Class Hierarchy This Package Previous Next Index
Class magician.Node.SPThread
java.lang.Object
|
+----java.lang.Thread
|
+----magician.Node.SPThread
- public class SPThread
- extends Thread
- implements PerfConstants
This class represents the runnable Smartpacket. The Smartpacket object is
encapsulated in a runnable thread and its execution and requirements are
monitored
- See Also:
- KUSmartPacketV2
-
EEThread
-
-
executingThreads
-
-
parent
- Its execution environment
-
SPThread(ThreadGroup, KUSmartPacketV2, SPExecEnv)
- initializes the runnable thread
-
addToGroup(SPThread)
- adds the SPThread to the list of executing threads
-
currentSPThread()
- returns a reference to the currently executing SPThread
-
getSmartPacketforSPThread()
- returns the Smartpacket object associated with this SPThread
-
lowerPriority()
- lower the priority of this thread 1 level
-
removeSPThread()
- stops and removes the currently executing SPThread from the list
of executing theads
-
setExecEnvThread(Thread)
-
parent
protected SPExecEnv parent
- Its execution environment
EEThread
protected Thread EEThread
executingThreads
static Hashtable executingThreads
SPThread
SPThread(ThreadGroup tg,
KUSmartPacketV2 sp,
SPExecEnv ee)
- initializes the runnable thread
- Parameters:
- tg - the Thread group associated with this Smartpacket thread
- sp - the Smartpacket itself
- ee - the execution environment
addToGroup
protected static void addToGroup(SPThread th)
- adds the SPThread to the list of executing threads
- Parameters:
- th - the SPThread
lowerPriority
public void lowerPriority()
- lower the priority of this thread 1 level
setExecEnvThread
protected void setExecEnvThread(Thread spexec)
getSmartPacketforSPThread
protected KUSmartPacketV2 getSmartPacketforSPThread()
- returns the Smartpacket object associated with this SPThread
- Returns:
- the SmartPacket object
removeSPThread
protected void removeSPThread()
- stops and removes the currently executing SPThread from the list
of executing theads
currentSPThread
public static SPThread currentSPThread()
- returns a reference to the currently executing SPThread
- Returns:
- a SPThread object
All Packages Class Hierarchy This Package Previous Next Index