|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.core.service.Service
|
+--org.exolab.jmscts.core.service.ExecutionMonitorService
This service enables the state of a running compliance suite to be captured.
This service is dependent on the
RmiRegistryService. This must be initialised
prior to starting this service
| Field Summary | |
static java.lang.String |
NAME
The service name |
| Constructor Summary | |
protected |
ExecutionMonitorService(int port)
Construct a new ExecutionMonitorService |
| Method Summary | |
void |
addListener(java.lang.String id,
ExecutionListener listener)
Add a listener for an application |
java.lang.String |
allocateId()
Allocate a unique identifier to an application |
void |
error(java.lang.String id,
java.lang.Throwable throwable)
Notifies all registered listeners for an application that the application has thrown an exception just prior to termination |
void |
failed(java.lang.String id,
java.lang.Throwable throwable)
Notifies all registered listeners for an application that the application failed to start |
static ExecutionMonitorService |
initialise(int port)
Initialise the ExecutionMonitorService |
static ExecutionMonitorService |
instance()
Returns the singleton instance of the ExecutionMonitorService |
void |
removeListener(java.lang.String id,
ExecutionListener listener)
Remove a listener for an application |
void |
start()
Start the service |
void |
started(java.lang.String id)
Notifies all registered listeners for an application that the application has started |
void |
stop()
Stop the service |
void |
stopped(java.lang.String id,
int status)
Notifies all registered listeners for an application that the application has stopped |
| Methods inherited from class org.exolab.core.service.Service |
getName, getState, restart, setState, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
| Constructor Detail |
protected ExecutionMonitorService(int port)
ExecutionMonitorServiceport - the RMI registry port| Method Detail |
public static ExecutionMonitorService initialise(int port)
port - the RMI registry portpublic static ExecutionMonitorService instance()
public void addListener(java.lang.String id,
ExecutionListener listener)
id - the application idlistener - the listener
public void removeListener(java.lang.String id,
ExecutionListener listener)
id - the application idlistener - the listener
public void failed(java.lang.String id,
java.lang.Throwable throwable)
id - the application idthrowable - the reason for the failurepublic void started(java.lang.String id)
id - the application id
public void stopped(java.lang.String id,
int status)
id - the application idstatus - the exit status of the application
public void error(java.lang.String id,
java.lang.Throwable throwable)
id - the application idthrowable - the exception thrown by the applicationpublic java.lang.String allocateId()
public void start()
throws org.exolab.core.service.ServiceException
start in class org.exolab.core.service.Serviceorg.exolab.core.service.ServiceException - if the service can't be started
public void stop()
throws org.exolab.core.service.ServiceException
stop in class org.exolab.core.service.Serviceorg.exolab.core.service.ServiceException - if the service can't be stopped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||