Class BatchServiceGrpc.BatchServiceFutureStub (0.54.0)

public static final class BatchServiceGrpc.BatchServiceFutureStub extends AbstractFutureStub<BatchServiceGrpc.BatchServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service BatchService.

Google Batch Service. The service manages user submitted batch jobs and allocates Google Compute Engine VM instances to run the jobs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > BatchServiceGrpc.BatchServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected BatchServiceGrpc.BatchServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
BatchServiceGrpc.BatchServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createJob(CreateJobRequest request)

public ListenableFuture<Job> createJob(CreateJobRequest request)

Create a Job.

Parameter
Name Description
request CreateJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Job>

deleteJob(DeleteJobRequest request)

public ListenableFuture<Operation> deleteJob(DeleteJobRequest request)

Delete a Job.

Parameter
Name Description
request DeleteJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getJob(GetJobRequest request)

public ListenableFuture<Job> getJob(GetJobRequest request)

Get a Job specified by its resource name.

Parameter
Name Description
request GetJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Job>

getTask(GetTaskRequest request)

public ListenableFuture<Task> getTask(GetTaskRequest request)

Return a single Task.

Parameter
Name Description
request GetTaskRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Task>

listJobs(ListJobsRequest request)

public ListenableFuture<ListJobsResponse> listJobs(ListJobsRequest request)

List all Jobs for a project within a region.

Parameter
Name Description
request ListJobsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListJobsResponse>

listTasks(ListTasksRequest request)

public ListenableFuture<ListTasksResponse> listTasks(ListTasksRequest request)

List Tasks associated with a job.

Parameter
Name Description
request ListTasksRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListTasksResponse>