public interface LongRunningYarnContainer extends YarnContainer
YarnContainer
indicating that
container is intended to be a long running operation.
Usually container will do its tasks and goes away by
its own, but in some use cases it is appropriate to
allow container to be kept up and running by hooking
to its states.
Usual case is to ask from method isWaitCompleteState()
if runner should wait complete state via listener
which is registered using method
addContainerStateListener(ContainerStateListener)
.
Modifier and Type | Method and Description |
---|---|
void |
addContainerStateListener(ContainerStateListener listener)
Adds the container state listener.
|
boolean |
isWaitCompleteState()
Indication for possible handler using this bean whether
it should wait
COMPLETED
state. |
run, setEnvironment, setParameters
void addContainerStateListener(ContainerStateListener listener)
listener
- the ContainerStateListener
boolean isWaitCompleteState()
COMPLETED
state.addContainerStateListener(ContainerStateListener)