|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.support.LifecycleObjectSupport org.springframework.yarn.am.AbstractAppmaster org.springframework.yarn.am.AbstractServicesAppmaster org.springframework.yarn.am.AbstractProcessingAppmaster org.springframework.yarn.am.StaticAppmaster
public class StaticAppmaster
A simple application master implementation which will allocate and launch a number of containers, monitor container statuses and finally exit the application by sending corresponding message back to resource manager.
Constructor Summary | |
---|---|
StaticAppmaster()
|
Method Summary | |
---|---|
protected void |
doStart()
Subclasses may implement this method with the start behavior. |
protected void |
onInit()
Global application master instance specific ApplicationAttemptId
is build during this init method. |
void |
submitApplication()
Submit and run application. |
Methods inherited from class org.springframework.yarn.am.AbstractProcessingAppmaster |
---|
onContainerAllocated, onContainerCompleted, preLaunch |
Methods inherited from class org.springframework.yarn.am.AbstractServicesAppmaster |
---|
getAllocator, getLauncher, getMonitor, setAllocator, setLauncher, setMonitor |
Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport |
---|
afterPropertiesSet, 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 |
Methods inherited from interface org.springframework.yarn.am.YarnAppmaster |
---|
addAppmasterStateListener, setEnvironment, setParameters |
Constructor Detail |
---|
public StaticAppmaster()
Method Detail |
---|
public void submitApplication()
YarnAppmaster
submitApplication
in interface YarnAppmaster
protected void onInit() throws java.lang.Exception
AbstractAppmaster
ApplicationAttemptId
is build during this init method.
onInit
in class AbstractProcessingAppmaster
java.lang.Exception
LifecycleObjectSupport.onInit()
protected void doStart()
LifecycleObjectSupport
LifecycleObjectSupport.lifecycleLock
.
doStart
in class LifecycleObjectSupport
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |