|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.linux.watchdog.WatchdogServiceImpl
public class WatchdogServiceImpl
Constructor Summary | |
---|---|
WatchdogServiceImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
|
void |
checkin(CriticalComponent criticalService)
This method is used to notify the Watchdog Service that a critical service has 'checked in' and the reboot timer should be reset. |
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
List<CriticalComponent> |
getCriticalComponents()
Returns the list of the currently registered CriticalComponents |
int |
getHardwareTimeout()
Returns the timeout value for the hardware watchdog in increments of milliseconds. |
boolean |
isConfigEnabled()
|
void |
registerCriticalService(CriticalComponent criticalComponent)
Register a critical service with the Critical Service Check-in. |
void |
setConfigEnabled(boolean configEnabled)
|
void |
startWatchdog()
Starts the hardware watchdog on the device. |
void |
stopWatchdog()
Stops the hardware Watchdog on the device |
void |
unregisterCriticalService(CriticalComponent criticalComponent)
Unregister a critical service with the Critical Service Check-in. |
void |
updated(Map<String,Object> properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatchdogServiceImpl()
Method Detail |
---|
protected void activate(org.osgi.service.component.ComponentContext componentContext, Map<String,Object> properties)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public void updated(Map<String,Object> properties)
public void startWatchdog()
WatchdogService
startWatchdog
in interface WatchdogService
public void stopWatchdog()
WatchdogService
stopWatchdog
in interface WatchdogService
public int getHardwareTimeout()
WatchdogService
getHardwareTimeout
in interface WatchdogService
public void registerCriticalService(CriticalComponent criticalComponent)
WatchdogService
registerCriticalService
in interface WatchdogService
public void unregisterCriticalService(CriticalComponent criticalComponent)
WatchdogService
unregisterCriticalService
in interface WatchdogService
public List<CriticalComponent> getCriticalComponents()
WatchdogService
getCriticalComponents
in interface WatchdogService
public void checkin(CriticalComponent criticalService)
WatchdogService
checkin
in interface WatchdogService
criticalService
- A criticalService
to be updated.public boolean isConfigEnabled()
public void setConfigEnabled(boolean configEnabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |