Class SimulatedCloudClient
java.lang.Object
com.cockroachlabs.data.continuum.cloud.SimulatedCloudClient
- All Implemented Interfaces:
CloudClient
In-memory
CloudClient for development and tests. Serves a small canned
set of clusters and records metric-export calls so tests can assert on them.
Selected automatically when no Cloud API key is configured.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cockroachlabs.data.continuum.cloud.CloudClient
CloudClient.Cluster, CloudClient.MetricExportConfig, CloudClient.MetricExportTarget, CloudClient.VirtualCluster -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureMetricExport(String clusterId, CloudClient.MetricExportConfig config) Enables a metric-export sink for a cluster.getCluster(String clusterId) Returns a single cluster by its control-plane ID.Returns the clusters visible to the configured service account.Returns the metric-export configs recorded so far, keyed by cluster ID.
-
Constructor Details
-
SimulatedCloudClient
public SimulatedCloudClient()
-
-
Method Details
-
listClusters
Description copied from interface:CloudClientReturns the clusters visible to the configured service account.- Specified by:
listClustersin interfaceCloudClient
-
getCluster
Description copied from interface:CloudClientReturns a single cluster by its control-plane ID.- Specified by:
getClusterin interfaceCloudClient
-
configureMetricExport
Description copied from interface:CloudClientEnables a metric-export sink for a cluster.- Specified by:
configureMetricExportin interfaceCloudClient
-
metricExports
Returns the metric-export configs recorded so far, keyed by cluster ID.
-