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.JobStatus
getState()
Returns the currentJobStatus
for this execution graph.long
getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
Returns the timestamp for the givenJobStatus
.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.
-
-
-
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:JobStatusListener
This method is called whenever the status of the job changes.- Specified by:
jobStatusChanges
in 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:JobStatusProvider
Returns the currentJobStatus
for this execution graph.- Specified by:
getState
in interfaceJobStatusProvider
- 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 givenJobStatus
.- Specified by:
getStatusTimestamp
in interfaceJobStatusProvider
- Parameters:
status
- status for which the timestamp should be returned- Returns:
- timestamp for the given job status
-
-