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

    Modifier and Type
    Method
    Description
    void
    init(Context context)
    Init method which will be invoked by the Node Manager to inject the NM Context.

    Methods inherited from interface org.apache.hadoop.yarn.state.StateTransitionListener

    postTransition, preTransition
  • Method Details

    • init

      void init(Context context)
      Init method which will be invoked by the Node Manager to inject the NM Context.
      Parameters:
      context - NM Context.