|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISystemMonitorService
The System Monitoring Service provides tools for the management of system level services. This interface will provide a Critical Service Check-in. I uses the @IWatchdogService in case this bundle itself locks up. Critical Services can be registered with this bundle and must check in periodically to denote that they are still running. If they are not the System Monitor service will force a reboot. Copyright � 2009 Eurotech Inc. All rights reserved.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface. |
Method Summary | |
---|---|
void |
forceReboot()
This method stops the updates to the hardware watchdog, forcing a reboot. |
java.lang.String |
getUptime()
Returns the uptime statistics obtained from the operating system. |
boolean |
isRegistered(java.lang.String serviceName)
Returns true if the specified service has been registered, false otherwise. |
void |
registerCriticalService(java.lang.String serviceName,
int timeout)
This method is used to register a critical service with the Critical Service Check-in. |
void |
unregisterCriticalService(java.lang.String serviceName)
This method is used to unregister a critical service with the Critical Service Check-in. |
void |
updateCriticalService(java.lang.String serviceName)
This method is used to notify the Critical Service Check-in that a critical service has issued an update. |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
void registerCriticalService(java.lang.String serviceName, int timeout)
serviceName
- A @String representing the name of the critical service.timeout
- A timeout value that the critical service cannot exceed
between updates without generating a system reboot. The
time is expressed in seconds.void unregisterCriticalService(java.lang.String serviceName)
serviceName
- A @String representing the name of the critical service.void updateCriticalService(java.lang.String serviceName)
serviceName
- A @String representing the name of the critical service.void forceReboot()
boolean isRegistered(java.lang.String serviceName)
java.lang.String getUptime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |