use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class GetJobIdsByNameOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
JobCoordinationService coordinationService = service.getJobCoordinationService();
response = coordinationService.getJobIds(name);
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class GetJobIdsOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
JobCoordinationService coordinationService = service.getJobCoordinationService();
response = coordinationService.getAllJobIds();
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class InitExecutionOperation method deserializePlan.
private ExecutionPlan deserializePlan(Data planBlob) {
JetService service = getService();
ClassLoader cl = service.getClassLoader(jobId());
return deserializeWithCustomClassLoader(getNodeEngine().getSerializationService(), cl, planBlob);
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class ExecutionContext method beginExecution.
/**
* Starts local execution of job by submitting tasklets to execution service. If
* execution was cancelled earlier then execution will not be started.
*
* Returns a future which is completed only when all tasklets are completed. If
* execution was already cancelled before this method is called then the returned
* future is completed immediately. The future returned can't be cancelled,
* instead {@link #cancelExecution()} should be used.
*/
public CompletableFuture<Void> beginExecution() {
synchronized (executionLock) {
if (executionFuture != null) {
// beginExecution was already called or execution was cancelled before it started.
return executionFuture;
} else {
// begin job execution
JetService service = nodeEngine.getService(JetService.SERVICE_NAME);
ClassLoader cl = service.getClassLoader(jobId);
executionFuture = execService.beginExecute(tasklets, cancellationFuture, cl);
}
return executionFuture;
}
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class RestartJobOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
response = service.getJobCoordinationService().restartJobExecution(jobId());
}
Aggregations