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
-
BARGAINER_CLIENT
- Indicates the client part for a particular BApp
-
BARGAINER_SERVER
- Indicates the client part for a particular BApp
-
START_BARGAINER_DAEMON
- Flag used to start the
BargainerDaemon thread
-
STOP_BARGAINER_DAEMON
- Flag used to stop execution of the
BargainerDaemon thread
-
SUSPENDED
- Flag used to indicate a suspended thread object
-
BargainerMonitor()
- Object constructor
-
isListen()
- Called from the
BAppServer
object in order to retrieve the state
for the BargainerDaemon
thread
-
Notify(Object, Object)
- This method is called from the dispatcher modules in order to notify
some state information
-
run()
- Method used to procecess the request comming from the other
dispatcher modules
-
starting()
- Calls the starting method of the associated to this object thread
SUSPENDED
protected static final int SUSPENDED
- Flag used to indicate a suspended thread object
BARGAINER_CLIENT
protected static final Integer BARGAINER_CLIENT
- Indicates the client part for a particular BApp
BARGAINER_SERVER
protected static final Integer BARGAINER_SERVER
- Indicates the client part for a particular BApp
STOP_BARGAINER_DAEMON
protected static final Integer STOP_BARGAINER_DAEMON
- Flag used to stop execution of the
BargainerDaemon thread
START_BARGAINER_DAEMON
protected static final Integer START_BARGAINER_DAEMON
- Flag used to start the
BargainerDaemon thread
BargainerMonitor
public BargainerMonitor()
- Object constructor
- Parameters:
- configData - the initialization data for the Dispatcher
starting
public void starting()
- Calls the starting method of the associated to this object thread
run
public void run()
- Method used to procecess the request comming from the other
dispatcher modules
- Overrides:
- run in class Thread
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
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