public class DefaultYarnContainer extends AbstractYarnContainer implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
YarnContainer
.Constructor and Description |
---|
DefaultYarnContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStop()
Subclasses may implement this method with the stop behavior.
|
boolean |
isWaitCompleteState()
Indication for possible handler using this bean whether
it should wait
COMPLETED
state. |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
protected void |
runInternal()
Internal method to handle the actual
AbstractYarnContainer.run() method. |
addContainerStateListener, getConfiguration, getEnvironment, getEnvironment, getParameters, notifyCompleted, notifyCompleted, notifyContainerState, run, setConfiguration, setEnvironment, setParameters
afterPropertiesSet, doStart, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop
protected void runInternal()
AbstractYarnContainer
AbstractYarnContainer.run()
method.runInternal
in class AbstractYarnContainer
protected void doStop()
LifecycleObjectSupport
LifecycleObjectSupport.lifecycleLock
.doStop
in class LifecycleObjectSupport
public boolean isWaitCompleteState()
LongRunningYarnContainer
COMPLETED
state.isWaitCompleteState
in interface LongRunningYarnContainer
isWaitCompleteState
in class AbstractYarnContainer
LongRunningYarnContainer.addContainerStateListener(ContainerStateListener)
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>