public class BatchAppmaster extends AbstractBatchAppmaster implements YarnAppmaster
Application master will act as a context running the Spring Batch job. Order to make some sense in terms of using cluster resources, job itself should be able to partition itself in a way that Yarn containers can be used to split the load.
| Constructor and Description |
|---|
BatchAppmaster() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Subclasses may implement this method with the start behavior.
|
protected void |
doStop()
Subclasses may implement this method with the stop behavior.
|
void |
onApplicationEvent(AbstractYarnEvent event) |
void |
submitApplication()
Submit and run application.
|
addPartitionedStepExecutionStateListener, addStepSplits, getStepExecutions, getYarnJobLauncher, onContainerAllocated, onContainerCompleted, onContainerLaunched, onInit, preLaunch, setYarnJobLaunchergetRegisteredContainers, onContainerLaunchRequestFailed, shutdownContainersgetAllocator, getLauncher, getMonitor, setAllocator, setLauncher, setMonitoraddAppmasterStateListener, finishAppmaster, getApplicationAttemptId, getAppmasterClientService, getAppmasterService, getAppmasterTrackService, getCmTemplate, getCommands, getCommands, getConfiguration, getContainerAssign, getContainerShutdown, getEnvironment, getEnvironment, getParameters, getResourceLocalizer, getTemplate, notifyCompleted, registerAppmaster, setCommands, setCommands, setCommands, setCommands, setConfiguration, setContainerAssign, setEnvironment, setEnvironment, setFinalApplicationStatus, setParameters, setResourceLocalizer, setTemplateafterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppmasterStateListener, setEnvironment, setParameterspublic void submitApplication()
YarnAppmastersubmitApplication in interface YarnAppmasterpublic void onApplicationEvent(AbstractYarnEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<AbstractYarnEvent>onApplicationEvent in class AbstractEventingAppmasterprotected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStart in class LifecycleObjectSupportprotected void doStop()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStop in class AbstractAppmaster