Class DefaultStateTransitionManager

java.lang.Object
org.apache.flink.runtime.scheduler.adaptive.DefaultStateTransitionManager
All Implemented Interfaces:
StateTransitionManager

@NotThreadSafe public class DefaultStateTransitionManager extends Object implements StateTransitionManager
DefaultStateTransitionManager is a state machine which manages the AdaptiveScheduler's state transitions based on the previous transition time and the available resources. See DefaultStateTransitionManager.Phase for details on each individual phase of this state machine. Note: We use the term phase here to avoid confusion with the state used in the AdaptiveScheduler.
 DefaultStateTransitionManager.Cooldown
   |
   +--> DefaultStateTransitionManager.Idling
   |      |
   |      V
   +--> DefaultStateTransitionManager.Stabilizing
          |
          +--> DefaultStateTransitionManager.Stabilized --> DefaultStateTransitionManager.Idling
          |      |
          |      V
          \--> DefaultStateTransitionManager.Transitioning
 

Thread-safety: This class is not implemented in a thread-safe manner and relies on the fact that any method call happens within a single thread.

See Also:
  • Executing