/** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static JobMasterClientServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new JobMasterClientServiceBlockingStub(channel); }
public Void call() { mClient.cancel(CancelPRequest.newBuilder().setJobId(jobId).build()); return null; } });
/** * <pre> ** * Gets the status of the given job. * </pre> */ public alluxio.grpc.GetJobStatusPResponse getJobStatus(alluxio.grpc.GetJobStatusPRequest request) { return blockingUnaryCall( getChannel(), getGetJobStatusMethod(), getCallOptions(), request); }
public Long call() throws StatusRuntimeException { return mClient.run(RunPRequest.newBuilder().setJobConfig(jobConfigStr).build()).getJobId(); } });
public List<Long> call() { return mClient.listAll(ListAllPRequest.getDefaultInstance()).getJobIdsList(); } });
public alluxio.grpc.JobInfo call() throws StatusRuntimeException { return mClient.getJobStatus(GetJobStatusPRequest.newBuilder().setJobId(jobId).build()) .getJobInfo(); } }));
/** * <pre> ** * Lists ids of all known jobs. * </pre> */ public alluxio.grpc.ListAllPResponse listAll(alluxio.grpc.ListAllPRequest request) { return blockingUnaryCall( getChannel(), getListAllMethod(), getCallOptions(), request); }
/** * <pre> ** * Cancels the given job. * </pre> */ public alluxio.grpc.CancelPResponse cancel(alluxio.grpc.CancelPRequest request) { return blockingUnaryCall( getChannel(), getCancelMethod(), getCallOptions(), request); }
@java.lang.Override protected JobMasterClientServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new JobMasterClientServiceBlockingStub(channel, callOptions); }
/** * <pre> ** * Starts the given job, returning a job id. * </pre> */ public alluxio.grpc.RunPResponse run(alluxio.grpc.RunPRequest request) { return blockingUnaryCall( getChannel(), getRunMethod(), getCallOptions(), request); } }