All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.dispatcher.BargainerMonitor

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----semper.dispatcher.BargainerMonitor

public class BargainerMonitor
extends Thread
This class implements a monitor object that supervised all the thread object which was registered.

Author:
Petros Pantis, Kostas Tzelepis

Variable Index

 o BARGAINER_CLIENT
Indicates the client part for a particular BApp
 o BARGAINER_SERVER
Indicates the client part for a particular BApp
 o START_BARGAINER_DAEMON
Flag used to start the BargainerDaemon thread
 o STOP_BARGAINER_DAEMON
Flag used to stop execution of the BargainerDaemon thread
 o SUSPENDED
Flag used to indicate a suspended thread object

Constructor Index

 o BargainerMonitor()
Object constructor

Method Index

 o isListen()
Called from the BAppServer object in order to retrieve the state for the BargainerDaemon thread
 o Notify(Object, Object)
This method is called from the dispatcher modules in order to notify some state information
 o run()
Method used to procecess the request comming from the other dispatcher modules
 o starting()
Calls the starting method of the associated to this object thread

Variables

 o SUSPENDED
 protected static final int SUSPENDED
Flag used to indicate a suspended thread object

 o BARGAINER_CLIENT
 protected static final Integer BARGAINER_CLIENT
Indicates the client part for a particular BApp

 o BARGAINER_SERVER
 protected static final Integer BARGAINER_SERVER
Indicates the client part for a particular BApp

 o STOP_BARGAINER_DAEMON
 protected static final Integer STOP_BARGAINER_DAEMON
Flag used to stop execution of the BargainerDaemon thread

 o START_BARGAINER_DAEMON
 protected static final Integer START_BARGAINER_DAEMON
Flag used to start the BargainerDaemon thread

Constructors

 o BargainerMonitor
 public BargainerMonitor()
Object constructor

Parameters:
configData - the initialization data for the Dispatcher

Methods

 o starting
 public void starting()
Calls the starting method of the associated to this object thread

 o run
 public void run()
Method used to procecess the request comming from the other dispatcher modules

Overrides:
run in class Thread
 o Notify
 protected synchronized void Notify(Object originator,
                                    Object data)
This method is called from the dispatcher modules in order to notify some state information

Parameters:
originator - the callee
data - the data containing the notified to the monitor information
Returns:
value true if the monitor will proceed with the passed data
 o isListen
 protected boolean isListen()
Called from the BAppServer object in order to retrieve the state for the BargainerDaemon thread

Returns:
value true in case that the BargainerDaemon is running

All Packages  Class Hierarchy  This Package  Previous  Next  Index