BigtableClusterName (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc

Class BigtableClusterName



  • public class BigtableClusterName
    extends Object
    This class encapsulates a cluster name of the form projects/(projectId)/instances/(instanceId)/clusters/(clusterId)
    • Constructor Detail

      • BigtableClusterName

        public BigtableClusterName(String clusterName)
    • Method Detail

      • getInstanceId

        public String getInstanceId()
        Returns:
        The id of the instance that contains this cluster. It's the second group in the Cluster name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
      • getClusterName

        public String getClusterName()
        Returns:
        The name of this cluster. It will look like the following "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
      • getClusterId

        public String getClusterId()
        Returns:
        The id of this cluster. It's the third group in the Cluster name: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}".
      • toSnapshotName

        public String toSnapshotName(String snapshotId)
        Create a fully qualified snapshot name based on the the clusterName and the snapshotId. Snapshot name will look like: "projects/{projectId}/instances/{instanceId}/clusters/{clusterId}/snapshots/{snapshotId}".
        Parameters:
        snapshotId - The id of the snapshot
        Returns:
        A fully qualified snapshot name that contains the fully qualified cluster name as the parent and the snapshot name as the child.