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

Variable Index

 o sleepThread

Constructor Index

 o SSMonitor(SSConfig)
Object constructor

Method Index

 o Notify(boolean)
Called from the SSTimer module when it has been notify (internal or external.
 o Push(SSTaskControl, int, int)
Stores a new SSTaskControl 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 SSTimer object

Variables

 o sleepThread
  public SSTimer sleepThread

Constructors

 o SSMonitor
  public SSMonitor(SSConfig configData)
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 SSTimer object
See Also:
starting
 o 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
 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 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