Class JobControllerConnection (2.20.0)

This interface defines virtual methods for each of the user-facing overload sets in JobControllerClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type JobControllerClient.

To create a concrete instance, see MakeJobControllerConnection().

For mocking, see dataproc_v1_mocks::MockJobControllerConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual SubmitJob(google::cloud::dataproc::v1::SubmitJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::SubmitJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::Job >

virtual SubmitJobAsOperation(google::cloud::dataproc::v1::SubmitJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::SubmitJobRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataproc::v1::Job > >

virtual GetJob(google::cloud::dataproc::v1::GetJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::GetJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::Job >

virtual ListJobs(google::cloud::dataproc::v1::ListJobsRequest)

Parameter
NameDescription
request google::cloud::dataproc::v1::ListJobsRequest
Returns
TypeDescription
StreamRange< google::cloud::dataproc::v1::Job >

virtual UpdateJob(google::cloud::dataproc::v1::UpdateJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::UpdateJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::Job >

virtual CancelJob(google::cloud::dataproc::v1::CancelJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::CancelJobRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::Job >

virtual DeleteJob(google::cloud::dataproc::v1::DeleteJobRequest const &)

Parameter
NameDescription
request google::cloud::dataproc::v1::DeleteJobRequest const &
Returns
TypeDescription
Status