use of com.hazelcast.jet.impl.operation.GetLocalJobMetricsOperation in project hazelcast by hazelcast.
the class MasterJobContext method collectMetrics.
void collectMetrics(CompletableFuture<List<RawJobMetrics>> clientFuture) {
if (mc.jobStatus() == RUNNING) {
long jobId = mc.jobId();
long executionId = mc.executionId();
mc.invokeOnParticipants(plan -> new GetLocalJobMetricsOperation(jobId, executionId), objects -> completeWithMetrics(clientFuture, objects), null, false);
} else {
clientFuture.complete(jobMetrics);
}
}
Aggregations