Interface JobLeaderIdActions


public interface JobLeaderIdActions
Interface for actions called by the DefaultJobLeaderIdService.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback to report occurring errors.
    void
    jobLeaderLostLeadership(org.apache.flink.api.common.JobID jobId, JobMasterId oldJobMasterId)
    Callback when a monitored job leader lost its leadership.
    void
    notifyJobTimeout(org.apache.flink.api.common.JobID jobId, UUID timeoutId)
    Notify a job timeout.
  • Method Details

    • jobLeaderLostLeadership

      void jobLeaderLostLeadership(org.apache.flink.api.common.JobID jobId, JobMasterId oldJobMasterId)
      Callback when a monitored job leader lost its leadership.
      Parameters:
      jobId - identifying the job whose leader lost leadership
      oldJobMasterId - of the job manager which lost leadership
    • notifyJobTimeout

      void notifyJobTimeout(org.apache.flink.api.common.JobID jobId, UUID timeoutId)
      Notify a job timeout. The job is identified by the given JobID. In order to check for the validity of the timeout the timeout id of the triggered timeout is provided.
      Parameters:
      jobId - JobID which identifies the timed out job
      timeoutId - Id of the calling timeout to differentiate valid from invalid timeouts
    • handleError

      void handleError(Throwable error)
      Callback to report occurring errors.
      Parameters:
      error - which has occurred