Class HttpJsonCloudSchedulerStub (2.12.0)

public class HttpJsonCloudSchedulerStub extends CloudSchedulerStub

REST stub implementation for the CloudScheduler service API.

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

Inheritance

java.lang.Object > CloudSchedulerStub > HttpJsonCloudSchedulerStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(CloudSchedulerStubSettings settings)

public static final HttpJsonCloudSchedulerStub create(CloudSchedulerStubSettings settings)
Parameter
NameDescription
settingsCloudSchedulerStubSettings
Returns
TypeDescription
HttpJsonCloudSchedulerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext)

protected HttpJsonCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCloudSchedulerStub, 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
settingsCloudSchedulerStubSettings
clientContextClientContext

HttpJsonCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCloudSchedulerStub, 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
settingsCloudSchedulerStubSettings
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

close()

public final void close()
Overrides

createJobCallable()

public UnaryCallable<CreateJobRequest,Job> createJobCallable()
Returns
TypeDescription
UnaryCallable<CreateJobRequest,Job>
Overrides

deleteJobCallable()

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

getJobCallable()

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

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
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,CloudSchedulerClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,CloudSchedulerClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

pauseJobCallable()

public UnaryCallable<PauseJobRequest,Job> pauseJobCallable()
Returns
TypeDescription
UnaryCallable<PauseJobRequest,Job>
Overrides

resumeJobCallable()

public UnaryCallable<ResumeJobRequest,Job> resumeJobCallable()
Returns
TypeDescription
UnaryCallable<ResumeJobRequest,Job>
Overrides

runJobCallable()

public UnaryCallable<RunJobRequest,Job> runJobCallable()
Returns
TypeDescription
UnaryCallable<RunJobRequest,Job>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateJobCallable()

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