Class semper.SemperClient.SCMonitor
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperClient.SCMonitor
java.lang.Object
|
+----semper.SemperClient.SCMonitor
- public class SCMonitor
- extends Object
This class implements a monitor object that supervised
all the thread object which was registered.
- Author:
- Petros Pantis, Kostas Tzelepis
-
sleepThread
-
-
SCMonitor(SCConfig, ServerSocket)
- Object constructor
-
Notify(boolean)
- Called from the SCTimer module when it has been notify (internal or
external.
-
Push(SCTaskControl, int, int)
- Stores a new SCTaskControl 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 SCTimer object
sleepThread
public SCTimer sleepThread
SCMonitor
public SCMonitor(SCConfig configData,
ServerSocket serversocket)
- Object constructor
- Parameters:
- configData - the initialization data for the Dispatcher
- serversocket - the ServerSocket object
start
public void start()
- Calls the starting method of the SCTimer object
- See Also:
- starting
Push
public SCTaskData Push(SCTaskControl tr,
int sleepTime,
int id)
- Stores a new SCTaskControl object to it's ActiveStack
- Parameters:
- tr - the new SCTaskControl object
- sleepTime - thread's idle time for the ActiveStack or
thread's remove time for the IdleStack
- id - identifies the SCTaskControl type
- Returns:
- value the associated SCTaskData 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 SCTimer 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