Spring for Apache Hadoop

org.springframework.yarn.am
Class AbstractServicesAppmaster

java.lang.Object
  extended by org.springframework.yarn.support.LifecycleObjectSupport
      extended by org.springframework.yarn.am.AbstractAppmaster
          extended by org.springframework.yarn.am.AbstractServicesAppmaster
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:
AbstractEventingAppmaster, AbstractProcessingAppmaster

public abstract class AbstractServicesAppmaster
extends AbstractAppmaster

Extension of AbstractAppmaster which adds a common container services needed for usual application master.

Author:
Janne Valkealahti

Constructor Summary
AbstractServicesAppmaster()
           
 
Method Summary
 ContainerAllocator getAllocator()
          Gets a used ContainerAllocator for this class.
 ContainerLauncher getLauncher()
          Gets a used ContainerLauncher for this class.
 ContainerMonitor getMonitor()
          Gets a used ContainerMonitor for this class.
 void setAllocator(ContainerAllocator allocator)
          Sets the ContainerAllocator used for this class.
 void setLauncher(ContainerLauncher launcher)
          Sets the ContainerLauncher used for this class.
 void setMonitor(ContainerMonitor monitor)
          Sets the ContainerMonitor used for this class.
 
Methods inherited from class org.springframework.yarn.am.AbstractAppmaster
addAppmasterStateListener, doStop, finishAppmaster, getApplicationAttemptId, getAppmasterClientService, getAppmasterService, getAppmasterTrackService, getCommands, getConfiguration, getContainerAssign, getEnvironment, getParameters, getResourceLocalizer, getTemplate, notifyCompleted, onInit, registerAppmaster, setCommands, setCommands, setConfiguration, setContainerAssign, setEnvironment, setFinalApplicationStatus, setParameters, setResourceLocalizer, setTemplate
 
Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport
afterPropertiesSet, doStart, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, 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

AbstractServicesAppmaster

public AbstractServicesAppmaster()
Method Detail

getAllocator

public ContainerAllocator getAllocator()
Gets a used ContainerAllocator for this class.

Returns:
ContainerAllocator used in this class

setAllocator

public void setAllocator(ContainerAllocator allocator)
Sets the ContainerAllocator used for this class. This should be called before onInit for this class is called.

Parameters:
allocator - the ContainerAllocator

getLauncher

public ContainerLauncher getLauncher()
Gets a used ContainerLauncher for this class.

Returns:
ContainerLauncher used in this class

setLauncher

public void setLauncher(ContainerLauncher launcher)
Sets the ContainerLauncher used for this class. This should be called before onInit for this class is called.

Parameters:
launcher - the ContainerLauncher

getMonitor

public ContainerMonitor getMonitor()
Gets a used ContainerMonitor for this class.

Returns:
ContainerMonitor used in this class

setMonitor

public void setMonitor(ContainerMonitor monitor)
Sets the ContainerMonitor used for this class. This should be called before onInit for this class is called.

Parameters:
monitor - the ContainerMonitor

Spring for Apache Hadoop