Class ClusterControllerConnection (2.26.0)

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

To create a concrete instance, see MakeClusterControllerConnection().

For mocking, see dataproc_v1_mocks::MockClusterControllerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateCluster(google::cloud::dataproc::v1::CreateClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::CreateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual CreateCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::CreateClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual UpdateCluster(google::cloud::dataproc::v1::UpdateClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::UpdateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual UpdateCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::UpdateClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual StopCluster(google::cloud::dataproc::v1::StopClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::StopClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual StopCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::StopClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StopCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual StartCluster(google::cloud::dataproc::v1::StartClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::StartClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual StartCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::StartClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StartCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual DeleteCluster(google::cloud::dataproc::v1::DeleteClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::ClusterOperationMetadata > >

virtual DeleteCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::DeleteClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::ClusterOperationMetadata > >

virtual GetCluster(google::cloud::dataproc::v1::GetClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::GetClusterRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::Cluster >

virtual ListClusters(google::cloud::dataproc::v1::ListClustersRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::Cluster >

virtual DiagnoseCluster(google::cloud::dataproc::v1::DiagnoseClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DiagnoseClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::DiagnoseClusterResults > >

virtual DiagnoseCluster(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DiagnoseClusterRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::dataproc::v1::DiagnoseClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DiagnoseCluster(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::DiagnoseClusterResults > >