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

Variable Index

 o EEThread
 o executingThreads
 o parent
Its execution environment

Constructor Index

 o SPThread(ThreadGroup, KUSmartPacketV2, SPExecEnv)
initializes the runnable thread

Method Index

 o addToGroup(SPThread)
adds the SPThread to the list of executing threads
 o currentSPThread()
returns a reference to the currently executing SPThread
 o getSmartPacketforSPThread()
returns the Smartpacket object associated with this SPThread
 o lowerPriority()
lower the priority of this thread 1 level
 o removeSPThread()
stops and removes the currently executing SPThread from the list of executing theads
 o setExecEnvThread(Thread)

Variables

 o parent
 protected SPExecEnv parent
Its execution environment

 o EEThread
 protected Thread EEThread
 o executingThreads
 static Hashtable executingThreads

Constructors

 o 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

Methods

 o addToGroup
 protected static void addToGroup(SPThread th)
adds the SPThread to the list of executing threads

Parameters:
th - the SPThread
 o lowerPriority
 public void lowerPriority()
lower the priority of this thread 1 level

 o setExecEnvThread
 protected void setExecEnvThread(Thread spexec)
 o getSmartPacketforSPThread
 protected KUSmartPacketV2 getSmartPacketforSPThread()
returns the Smartpacket object associated with this SPThread

Returns:
the SmartPacket object
 o removeSPThread
 protected void removeSPThread()
stops and removes the currently executing SPThread from the list of executing theads

 o 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
1