Interface StateTransitionManager.Context

  • Enclosing interface:
    StateTransitionManager

    public static interface StateTransitionManager.Context
    The interface that can be used by the StateTransitionManager to communicate with the underlying system.
    • Method Detail

      • hasSufficientResources

        boolean hasSufficientResources()
        Returns true if the available resources are sufficient enough for a state transition; otherwise false.
      • hasDesiredResources

        boolean hasDesiredResources()
        Returns true if the available resources meet the desired resources for the job; otherwise false.
      • transitionToSubsequentState

        void transitionToSubsequentState()
        Triggers the transition to the subsequent state of the AdaptiveScheduler.
      • scheduleOperation

        ScheduledFuture<?> scheduleOperation​(Runnable callback,
                                             Duration delay)
        Runs operation with a given delay in the underlying main thread.
        Returns:
        a ScheduledFuture representing pending completion of the operation.
      • getJobId

        org.apache.flink.api.common.JobID getJobId()
        Gets the JobID of the job.
        Returns:
        the JobID of the job