public class JobStatusStore extends Object implements JobStatusListener, JobStatusProvider
| Constructor and Description |
|---|
JobStatusStore(long initializationTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobStatus |
getState()
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.
|
public void jobStatusChanges(org.apache.flink.api.common.JobID jobId,
org.apache.flink.api.common.JobStatus newJobStatus,
long timestamp)
JobStatusListenerjobStatusChanges in interface JobStatusListenerjobId - The ID of the job.newJobStatus - The status the job switched to.timestamp - The timestamp when the status transition occurred.public org.apache.flink.api.common.JobStatus getState()
JobStatusProviderJobStatus for this execution graph.getState in interface JobStatusProviderpublic long getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
JobStatusProviderJobStatus.getStatusTimestamp in interface JobStatusProviderstatus - status for which the timestamp should be returnedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.