com.eurotech.framework.watchdog
Interface CriticalComponent


public interface CriticalComponent

CriticalComponent is an interface that can be used to denote a component of functionality that is 'critical' to the nature of the system. If a component implements CriticalComponent then it must state its name as well as its criticalComponentTimeout. The name is a unique identifier in the system. The timeout is a length of time in milliseconds that the CriticalComponent must check in with the WatchdogService. If the CriticalComponent goes for a time period of greater than this timeout, based on the (@link WatchdogService } configuration it will perform some action (such as rebooting the system).


Method Summary
 String getCriticalComponentName()
          The unique identifier for this CriticalComponent
 int getCriticalComponentTimeout()
          The maximum amount of time in milliseconds that the CriticalService should check in with the MonitorService before the MonitorService reboots the device.
 

Method Detail

getCriticalComponentName

String getCriticalComponentName()
The unique identifier for this CriticalComponent

Returns:
a identifier unique to the MonitorService

getCriticalComponentTimeout

int getCriticalComponentTimeout()
The maximum amount of time in milliseconds that the CriticalService should check in with the MonitorService before the MonitorService reboots the device.

Returns:
the timeout in milliseconds


Copyright © 2013. All Rights Reserved.