Class JobStatusMetrics
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.metrics.JobStatusMetrics
-
- All Implemented Interfaces:
JobStatusListener
,MetricsRegistrar
public class JobStatusMetrics extends Object implements JobStatusListener, MetricsRegistrar
Metrics that capture the time that a job spends in eachJobStatus
.
-
-
Constructor Summary
Constructors Constructor Description JobStatusMetrics(long initializationTimestamp, org.apache.flink.configuration.MetricOptions.JobStatusMetricsSettings jobStatusMetricsSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
registerMetrics(org.apache.flink.metrics.MetricGroup metricGroup)
-
-
-
Method Detail
-
registerMetrics
public void registerMetrics(org.apache.flink.metrics.MetricGroup metricGroup)
- Specified by:
registerMetrics
in interfaceMetricsRegistrar
-
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.
-
-