Interface ContainerStateTransitionListener
- All Superinterfaces:
org.apache.hadoop.yarn.state.StateTransitionListener<ContainerImpl,ContainerEvent, ContainerState>
- All Known Implementing Classes:
NodeManager.DefaultContainerStateListener
@Public
@Evolving
public interface ContainerStateTransitionListener
extends org.apache.hadoop.yarn.state.StateTransitionListener<ContainerImpl,ContainerEvent,ContainerState>
Interface to be used by external cluster operators to implement a
State Transition listener that is notified before and after a container
state transition.
NOTE: The pre and post transition callbacks will be made in the synchronized
block as the call to the instrumented transition - Serially, in the
order: preTransition, transition and postTransition. The implementor
must ensure that the callbacks return in a timely manner to avoid
blocking the state-machine.
-
Method Summary
Methods inherited from interface org.apache.hadoop.yarn.state.StateTransitionListener
postTransition, preTransition
-
Method Details
-
init
Init method which will be invoked by the Node Manager to inject the NMContext.- Parameters:
context- NM Context.
-