Search in sources :

Example 6 with JobExecutionService

use of com.hazelcast.jet.impl.JobExecutionService 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();
}
Also used : JetService(com.hazelcast.jet.impl.JetService) JobExecutionService(com.hazelcast.jet.impl.JobExecutionService) ExecutionContext(com.hazelcast.jet.impl.execution.ExecutionContext) Address(com.hazelcast.nio.Address)

Aggregations

JobExecutionService (com.hazelcast.jet.impl.JobExecutionService)6 JetServiceBackend (com.hazelcast.jet.impl.JetServiceBackend)3 ExecutionContext (com.hazelcast.jet.impl.execution.ExecutionContext)2 Address (com.hazelcast.cluster.Address)1 Job (com.hazelcast.jet.Job)1 NoOutputSourceP (com.hazelcast.jet.core.TestProcessors.NoOutputSourceP)1 JetService (com.hazelcast.jet.impl.JetService)1 Address (com.hazelcast.nio.Address)1 NightlyTest (com.hazelcast.test.annotation.NightlyTest)1 Test (org.junit.Test)1