public static final class CloudSchedulerGrpc.CloudSchedulerFutureStub extends AbstractFutureStub<CloudSchedulerGrpc.CloudSchedulerFutureStub>
The Cloud Scheduler API allows external entities to reliably schedule asynchronous jobs.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
protected CloudSchedulerGrpc.CloudSchedulerFutureStub |
build(Channel channel,
CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Job> |
createJob(CreateJobRequest request)
Creates a job.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteJob(DeleteJobRequest request)
Deletes a job.
|
com.google.common.util.concurrent.ListenableFuture<Job> |
getJob(GetJobRequest request)
Gets a job.
|
com.google.common.util.concurrent.ListenableFuture<ListJobsResponse> |
listJobs(ListJobsRequest request)
Lists jobs.
|
com.google.common.util.concurrent.ListenableFuture<Job> |
pauseJob(PauseJobRequest request)
Pauses a job.
|
com.google.common.util.concurrent.ListenableFuture<Job> |
resumeJob(ResumeJobRequest request)
Resume a job.
|
com.google.common.util.concurrent.ListenableFuture<Job> |
runJob(RunJobRequest request)
Forces a job to run now.
|
com.google.common.util.concurrent.ListenableFuture<Job> |
updateJob(UpdateJobRequest request)
Updates a job.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected CloudSchedulerGrpc.CloudSchedulerFutureStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<CloudSchedulerGrpc.CloudSchedulerFutureStub>
public com.google.common.util.concurrent.ListenableFuture<ListJobsResponse> listJobs(ListJobsRequest request)
Lists jobs.
public com.google.common.util.concurrent.ListenableFuture<Job> getJob(GetJobRequest request)
Gets a job.
public com.google.common.util.concurrent.ListenableFuture<Job> createJob(CreateJobRequest request)
Creates a job.
public com.google.common.util.concurrent.ListenableFuture<Job> updateJob(UpdateJobRequest request)
Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteJob(DeleteJobRequest request)
Deletes a job.
public com.google.common.util.concurrent.ListenableFuture<Job> pauseJob(PauseJobRequest request)
Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused.
public com.google.common.util.concurrent.ListenableFuture<Job> resumeJob(ResumeJobRequest request)
Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.
public com.google.common.util.concurrent.ListenableFuture<Job> runJob(RunJobRequest request)
Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.
Copyright © 2022 Google LLC. All rights reserved.