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 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.voidregisterMetrics(org.apache.flink.metrics.MetricGroup metricGroup)
-
-
-
Method Detail
-
registerMetrics
public void registerMetrics(org.apache.flink.metrics.MetricGroup metricGroup)
- Specified by:
registerMetricsin 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: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.
-
-