Search in sources :

Example 1 with JobCoordinationService

use of com.hazelcast.jet.impl.JobCoordinationService 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);
}
Also used : JetService(com.hazelcast.jet.impl.JetService) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService)

Example 2 with JobCoordinationService

use of com.hazelcast.jet.impl.JobCoordinationService 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();
}
Also used : JetService(com.hazelcast.jet.impl.JetService) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService)

Example 3 with JobCoordinationService

use of com.hazelcast.jet.impl.JobCoordinationService 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());
}
Also used : JetService(com.hazelcast.jet.impl.JetService) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService)

Example 4 with JobCoordinationService

use of com.hazelcast.jet.impl.JobCoordinationService in project hazelcast-jet by hazelcast.

the class JoinSubmittedJobOperation method doRun.

@Override
protected void doRun() {
    JetService service = getService();
    JobCoordinationService coordinationService = service.getJobCoordinationService();
    CompletableFuture<Void> executionFuture = coordinationService.joinSubmittedJob(jobId());
    executionFuture.whenComplete(withTryCatch(getLogger(), (r, t) -> doSendResponse(peel(t))));
}
Also used : JetService(com.hazelcast.jet.impl.JetService) ExceptionUtil.peel(com.hazelcast.jet.impl.util.ExceptionUtil.peel) ExceptionUtil.withTryCatch(com.hazelcast.jet.impl.util.ExceptionUtil.withTryCatch) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService) CompletableFuture(java.util.concurrent.CompletableFuture) JetInitDataSerializerHook(com.hazelcast.jet.impl.execution.init.JetInitDataSerializerHook) JetService(com.hazelcast.jet.impl.JetService) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService)

Example 5 with JobCoordinationService

use of com.hazelcast.jet.impl.JobCoordinationService in project hazelcast-jet by hazelcast.

the class SubmitJobOperation method run.

@Override
public void run() {
    JetService service = getService();
    JobCoordinationService coordinationService = service.getJobCoordinationService();
    coordinationService.submitOrJoinJob(jobId(), dag, config);
}
Also used : JetService(com.hazelcast.jet.impl.JetService) JobCoordinationService(com.hazelcast.jet.impl.JobCoordinationService)

Aggregations

JetService (com.hazelcast.jet.impl.JetService)5 JobCoordinationService (com.hazelcast.jet.impl.JobCoordinationService)5 JetInitDataSerializerHook (com.hazelcast.jet.impl.execution.init.JetInitDataSerializerHook)1 ExceptionUtil.peel (com.hazelcast.jet.impl.util.ExceptionUtil.peel)1 ExceptionUtil.withTryCatch (com.hazelcast.jet.impl.util.ExceptionUtil.withTryCatch)1 CompletableFuture (java.util.concurrent.CompletableFuture)1