Class JobStatusStore

java.lang.Object
org.apache.flink.runtime.scheduler.JobStatusStore
All Implemented Interfaces:
JobStatusListener, JobStatusProvider

public class JobStatusStore extends Object implements JobStatusListener, JobStatusProvider
Listens for and exposes the current job state and state timestamps.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JobStatusStore(long initializationTimestamp)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.api.common.JobStatus
    Returns the current JobStatus for this execution graph.
    long
    getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
    Returns the timestamp for the given JobStatus.
    void
    jobStatusChanges(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.JobStatus newJobStatus, long timestamp)
    This method is called whenever the status of the job changes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JobStatusStore

      public JobStatusStore(long initializationTimestamp)
  • Method Details

    • jobStatusChanges

      public void jobStatusChanges(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.JobStatus newJobStatus, long timestamp)
      Description copied from interface: JobStatusListener
      This method is called whenever the status of the job changes.
      Specified by:
      jobStatusChanges in interface JobStatusListener
      Parameters:
      jobId - The ID of the job.
      newJobStatus - The status the job switched to.
      timestamp - The timestamp when the status transition occurred.
    • getState

      public org.apache.flink.api.common.JobStatus getState()
      Description copied from interface: JobStatusProvider
      Returns the current JobStatus for this execution graph.
      Specified by:
      getState in interface JobStatusProvider
      Returns:
      job status for this execution graph
    • getStatusTimestamp

      public long getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
      Description copied from interface: JobStatusProvider
      Returns the timestamp for the given JobStatus.
      Specified by:
      getStatusTimestamp in interface JobStatusProvider
      Parameters:
      status - status for which the timestamp should be returned
      Returns:
      timestamp for the given job status