public class AMLivelinessMonitor extends AbstractLivelinessMonitor<ApplicationAttemptId>
Service.STATEDEFAULT_EXPIRE| Constructor and Description |
|---|
AMLivelinessMonitor(Dispatcher d) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
expire(ApplicationAttemptId id) |
void |
serviceInit(Configuration conf)
All initialization code needed by a service.
|
receivedPing, register, serviceStart, serviceStop, setExpireInterval, setMonitorInterval, unregisterclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic AMLivelinessMonitor(Dispatcher d)
public void serviceInit(Configuration conf) throws Exception
AbstractServiceAbstractService.init(Configuration) prevents re-entrancy.
The base implementation checks to see if the subclass has created
a new configuration instance, and if so, updates the base class valueserviceInit in class AbstractServiceconf - configurationException - on a failure -these will be caught,
possibly wrapped, and wil; trigger a service stopprotected void expire(ApplicationAttemptId id)
expire in class AbstractLivelinessMonitor<ApplicationAttemptId>Copyright © 2013 Apache Software Foundation. All rights reserved.