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 which was registered.
- Author:
- Petros Pantis, Kostas Tzelepis
-
sleepThread
-
-
SSMonitor(SSConfig)
- Object constructor
-
Notify(boolean)
- Called from the SSTimer module when it has been notify (internal or
external.
-
Push(SSTaskControl, int, int)
- Stores a new SSTaskControl object to it's ActiveStack
-
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
sleepThread
public SSTimer sleepThread
SSMonitor
public SSMonitor(SSConfig configData)
- Object constructor
- Parameters:
- configData - the initialization data for the Dispatcher
- serversocket - the ServerSocket object
start
public void start()
- Calls the starting method of the SSTimer object
- See Also:
- starting
Push
public SSTaskData Push(SSTaskControl tr,
int sleepTime,
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
- Returns:
- value the associated SSTaskData control structure
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:
- Run
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:
- run
All Packages Class Hierarchy This Package Previous Next Index