- All Superinterfaces:
- org.apache.hadoop.yarn.state.StateTransitionListener<ContainerImpl,ContainerEvent,ContainerState>
- All Known Implementing Classes:
- NodeManager.DefaultContainerStateListener
@InterfaceAudience.Public
@InterfaceStability.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.