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

Variable Index

 o currentJob
 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, int)
Stores a new SSTaskControl object to it's ActiveStack
 o ReadFrom(int)
This method is called from the SSTimer object in order to get a new Socket or SSActionData object
 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
 o WriteTo(int, Object)
This method is called from the SSTimer in order to store a Socket or SSActionData object

Variables

 o currentJob
  public SSTaskData currentJob
 o sleepThread
  public SSTimer sleepThread

Constructors

 o SSMonitor
  public SSMonitor(SSConfig configData)
Object constructor
Parameters:
configData - the initialization data for the Dispatcher
See Also:
SSConfig

Methods

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index