Class DefaultStateTransitionManager
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptive.DefaultStateTransitionManager
-
- All Implemented Interfaces:
StateTransitionManager
@NotThreadSafe public class DefaultStateTransitionManager extends Object implements StateTransitionManager
DefaultStateTransitionManageris a state machine which manages theAdaptiveScheduler's state transitions based on the previous transition time and the available resources. SeeDefaultStateTransitionManager.Phasefor details on each individual phase of this state machine. Note: We use the term phase here to avoid confusion with the state used in theAdaptiveScheduler.DefaultStateTransitionManager.Cooldown| +-->DefaultStateTransitionManager.Idling| | | V +-->DefaultStateTransitionManager.Stabilizing| +-->DefaultStateTransitionManager.Stabilized-->DefaultStateTransitionManager.Idling| | | V \-->DefaultStateTransitionManager.TransitioningThread-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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.scheduler.adaptive.StateTransitionManager
StateTransitionManager.Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Is called when the state transition manager should be closed.voidonChange()Is called if the environment changed in a way that a state transition could be considered.voidonTrigger()Is called when any previous observed environment changes shall be verified possibly triggering a state transition operation.
-
-
-
Method Detail
-
onChange
public void onChange()
Description copied from interface:StateTransitionManagerIs called if the environment changed in a way that a state transition could be considered.- Specified by:
onChangein interfaceStateTransitionManager
-
onTrigger
public void onTrigger()
Description copied from interface:StateTransitionManagerIs called when any previous observed environment changes shall be verified possibly triggering a state transition operation.- Specified by:
onTriggerin interfaceStateTransitionManager
-
close
public void close()
Description copied from interface:StateTransitionManagerIs called when the state transition manager should be closed.- Specified by:
closein interfaceStateTransitionManager
-
-