Search in sources :

Example 1 with GetLocalJobMetricsOperation

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);
    }
}
Also used : GetLocalJobMetricsOperation(com.hazelcast.jet.impl.operation.GetLocalJobMetricsOperation)

Aggregations

GetLocalJobMetricsOperation (com.hazelcast.jet.impl.operation.GetLocalJobMetricsOperation)1