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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.JobStatusgetState()Returns the currentJobStatusfor this execution graph.longgetStatusTimestamp(org.apache.flink.api.common.JobStatus status)Returns the timestamp for the givenJobStatus.voidjobStatusChanges(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.
-
-
-
Method Detail
-
jobStatusChanges
public void jobStatusChanges(org.apache.flink.api.common.JobID jobId, org.apache.flink.api.common.JobStatus newJobStatus, long timestamp)Description copied from interface:JobStatusListenerThis method is called whenever the status of the job changes.- Specified by:
jobStatusChangesin interfaceJobStatusListener- 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:JobStatusProviderReturns the currentJobStatusfor this execution graph.- Specified by:
getStatein interfaceJobStatusProvider- Returns:
- job status for this execution graph
-
getStatusTimestamp
public long getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
Description copied from interface:JobStatusProviderReturns the timestamp for the givenJobStatus.- Specified by:
getStatusTimestampin interfaceJobStatusProvider- Parameters:
status- status for which the timestamp should be returned- Returns:
- timestamp for the given job status
-
-