Spring for Apache Hadoop

org.springframework.yarn.am.monitor
Class AbstractMonitor

java.lang.Object
  extended by org.springframework.yarn.support.LifecycleObjectSupport
      extended by org.springframework.yarn.am.monitor.AbstractMonitor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
DefaultContainerMonitor

public abstract class AbstractMonitor
extends LifecycleObjectSupport

The base class for Container monitoring implementations.

Author:
Janne Valkealahti

Constructor Summary
AbstractMonitor()
           
 
Method Summary
 void addContainerMonitorStateListener(ContainerMonitorListener listener)
          Adds the container monitor state listener.
protected  void notifyState(ContainerMonitorListener.ContainerMonitorState state)
          Notify new ContainerMonitorListener.ContainerMonitorState for registered listeners.
 
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
 

Constructor Detail

AbstractMonitor

public AbstractMonitor()
Method Detail

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

Spring for Apache Hadoop