public class JobStatusMetrics extends Object implements JobStatusListener, MetricsRegistrar
JobStatus
.Constructor and Description |
---|
JobStatusMetrics(long initializationTimestamp,
MetricOptions.JobStatusMetricsSettings jobStatusMetricsSettings) |
Modifier and Type | Method and Description |
---|---|
void |
jobStatusChanges(JobID jobId,
JobStatus newJobStatus,
long timestamp)
This method is called whenever the status of the job changes.
|
void |
registerMetrics(MetricGroup metricGroup) |
public JobStatusMetrics(long initializationTimestamp, MetricOptions.JobStatusMetricsSettings jobStatusMetricsSettings)
public void registerMetrics(MetricGroup metricGroup)
registerMetrics
in interface MetricsRegistrar
public void jobStatusChanges(JobID jobId, JobStatus newJobStatus, long timestamp)
JobStatusListener
jobStatusChanges
in interface JobStatusListener
jobId
- The ID of the job.newJobStatus
- The status the job switched to.timestamp
- The timestamp when the status transition occurred.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.