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

Variable Index

 o sleepThread

Constructor Index

 o SCMonitor(SCConfig, ServerSocket)
Object constructor

Method Index

 o Notify(boolean)
Called from the SCTimer module when it has been notify (internal or external.
 o Push(SCTaskControl, int, int)
Stores a new SCTaskControl object to it's ActiveStack
 o Run()
This method is called from the timer module in order to prepare the next job that will be executed
 o start()
Calls the starting method of the SCTimer object

Variables

 o sleepThread
  public SCTimer sleepThread

Constructors

 o SCMonitor
  public SCMonitor(SCConfig configData,
                   ServerSocket serversocket)
Object constructor
Parameters:
configData - the initialization data for the Dispatcher
serversocket - the ServerSocket object

Methods

 o start
  public void start()
Calls the starting method of the SCTimer object
See Also:
starting
 o 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
 o 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
 o 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