org.springframework.yarn.am.monitor
Class AbstractMonitor
java.lang.Object
org.springframework.yarn.support.LifecycleObjectSupport
org.springframework.yarn.am.monitor.AbstractMonitor
- All Implemented Interfaces:
- Aware, BeanFactoryAware, InitializingBean, Lifecycle, Phased, SmartLifecycle
- Direct Known Subclasses:
- DefaultContainerMonitor
public abstract class AbstractMonitor
- extends LifecycleObjectSupport
The base class for Container monitoring implementations.
- Author:
- Janne Valkealahti
| Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport |
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMonitor
public AbstractMonitor()
addContainerMonitorStateListener
public void addContainerMonitorStateListener(ContainerMonitorListener listener)
- Adds the container monitor state listener.
- Parameters:
listener - the listener
notifyState
protected void notifyState(ContainerMonitorListener.ContainerMonitorState state)
- Notify new
ContainerMonitorListener.ContainerMonitorState for registered listeners.
- Parameters:
state - the ContainerMonitorListener.ContainerMonitorState