Class semper.SemperServer.SSMonitor
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperServer.SSMonitor
java.lang.Object
|
+----semper.SemperServer.SSMonitor
- public class SSMonitor
- extends Object
This class implements a monitor object that supervised
all the thread object running in the context of the
SemperServer module.
- Author:
- Petros Pantis, Kostas Tzelepis
-
currentJob
-
-
sleepThread
-
-
SSMonitor(SSConfig)
- Object constructor
-
Notify(boolean)
- Called from the SSTimer module when it has been notify (internal or
external.
-
Push(SSTaskControl, int, int, int)
- Stores a new SSTaskControl object to it's ActiveStack
-
ReadFrom(int)
- This method is called from the SSTimer object
in order to get a new Socket or SSActionData object
-
Run()
- This method is called from the timer module in order to
prepare the next job that will be executed
-
start()
- Calls the starting method of the SSTimer object
-
WriteTo(int, Object)
- This method is called from the SSTimer
in order to store a Socket or SSActionData object
currentJob
public SSTaskData currentJob
sleepThread
public SSTimer sleepThread
SSMonitor
public SSMonitor(SSConfig configData)
- Object constructor
- Parameters:
- configData - the initialization data for the Dispatcher
- See Also:
- SSConfig
WriteTo
public boolean WriteTo(int loc,
Object obj)
- This method is called from the SSTimer
in order to store a Socket or SSActionData object
- Parameters:
- loc - the storage structure identifier
- obj - the new object that have to be stored
- Returns:
- value true on success
- See Also:
- SSTimer
ReadFrom
public Object ReadFrom(int loc)
- This method is called from the SSTimer object
in order to get a new Socket or SSActionData object
- Parameters:
- loc - the storage structure identifier
- Returns:
- value the object reference
- See Also:
- SSTimer
start
public void start()
- Calls the starting method of the SSTimer object
- See Also:
- SSTimer
Push
public void Push(SSTaskControl tr,
int sleepTime,
int st,
int id)
- Stores a new SSTaskControl object to it's ActiveStack
- Parameters:
- tr - the new SSTaskControl object
- sleepTime - thread's idle time for the ActiveStack or
thread's remove time for the IdleStack
- id - identifies the SSTaskControl type
Run
public long Run()
- This method is called from the timer module in order to
prepare the next job that will be executed
- Returns:
- value the execution time for the next job
- See Also:
- SSTimer
Notify
public boolean Notify(boolean who)
- Called from the SSTimer module when it has been notify (internal or
external.
- Parameters:
- flags - the job thread execution state
- See Also:
- SSTimer
All Packages Class Hierarchy This Package Previous Next Index