use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class CancelExecutionOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
JobExecutionService executionService = service.getJobExecutionService();
Address callerAddress = getCallerAddress();
ExecutionContext ctx = executionService.assertExecutionContext(callerAddress, jobId(), executionId, this);
ctx.cancelExecution();
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class CancelJobOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
JobCoordinationService coordinationService = service.getJobCoordinationService();
coordinationService.cancelJob(jobId());
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class GetJobStatusOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
response = service.getJobCoordinationService().getJobStatus(jobId());
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class GetJobSubmissionTimeOperation method run.
@Override
public void run() throws Exception {
JetService service = getService();
response = service.getJobCoordinationService().getJobSubmissionTime(jobId());
}
use of com.hazelcast.jet.impl.JetService in project hazelcast-jet by hazelcast.
the class InitExecutionOperation method run.
@Override
public void run() {
ILogger logger = getLogger();
JetService service = getService();
Address caller = getCallerAddress();
logger.fine("Initializing execution plan for " + jobAndExecutionId(jobId(), executionId) + " from " + caller);
ExecutionPlan plan = deserializePlan(serializedPlan);
service.getJobExecutionService().initExecution(jobId(), executionId, caller, coordinatorMemberListVersion, participants, plan);
}
Aggregations