Class JobStatusMetrics
java.lang.Object
org.apache.flink.runtime.scheduler.metrics.JobStatusMetrics
- All Implemented Interfaces:
JobStatusListener,MetricsRegistrar
Metrics that capture the time that a job spends in each
JobStatus.-
Constructor Summary
ConstructorsConstructorDescriptionJobStatusMetrics(long initializationTimestamp, org.apache.flink.configuration.MetricOptions.JobStatusMetricsSettings jobStatusMetricsSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoidjobStatusChanges(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)
-
Constructor Details
-
JobStatusMetrics
public JobStatusMetrics(long initializationTimestamp, org.apache.flink.configuration.MetricOptions.JobStatusMetricsSettings jobStatusMetricsSettings)
-
-
Method Details
-
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.
-