Class HttpJsonJobControllerStub (4.0.5)

public class HttpJsonJobControllerStub extends JobControllerStub

REST stub implementation for the JobController service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > JobControllerStub > HttpJsonJobControllerStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonJobControllerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonJobControllerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonJobControllerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonJobControllerStub
Exceptions
TypeDescription
IOException

create(JobControllerStubSettings settings)

public static final HttpJsonJobControllerStub create(JobControllerStubSettings settings)
Parameter
NameDescription
settingsJobControllerStubSettings
Returns
TypeDescription
HttpJsonJobControllerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext)

protected HttpJsonJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonJobControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsJobControllerStubSettings
clientContextClientContext

HttpJsonJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonJobControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsJobControllerStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelJobCallable()

public UnaryCallable<CancelJobRequest,Job> cancelJobCallable()
Returns
TypeDescription
UnaryCallable<CancelJobRequest,Job>
Overrides

close()

public final void close()
Overrides

deleteJobCallable()

public UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()
Returns
TypeDescription
UnaryCallable<DeleteJobRequest,Empty>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getJobCallable()

public UnaryCallable<GetJobRequest,Job> getJobCallable()
Returns
TypeDescription
UnaryCallable<GetJobRequest,Job>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listJobsCallable()

public UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsResponse>
Overrides

listJobsPagedCallable()

public UnaryCallable<ListJobsRequest,JobControllerClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

submitJobAsOperationCallable()

public UnaryCallable<SubmitJobRequest,Operation> submitJobAsOperationCallable()
Returns
TypeDescription
UnaryCallable<SubmitJobRequest,Operation>
Overrides

submitJobAsOperationOperationCallable()

public OperationCallable<SubmitJobRequest,Job,JobMetadata> submitJobAsOperationOperationCallable()
Returns
TypeDescription
OperationCallable<SubmitJobRequest,Job,JobMetadata>
Overrides

submitJobCallable()

public UnaryCallable<SubmitJobRequest,Job> submitJobCallable()
Returns
TypeDescription
UnaryCallable<SubmitJobRequest,Job>
Overrides

updateJobCallable()

public UnaryCallable<UpdateJobRequest,Job> updateJobCallable()
Returns
TypeDescription
UnaryCallable<UpdateJobRequest,Job>
Overrides