@Test public void testZoneIdExtraction() { String zone = "my-zone"; String fullZone = "/something/something-else/locations/" + zone; Assert.assertEquals(zone, BigtableClusterUtilities.getZoneId(fullZone)); }
public static String getZoneId(Cluster cluster) { Preconditions.checkState(cluster != null, "Cluster doesn't exist"); return getZoneId(cluster.getLocation()); }
BigtableClusterUtilities implements AutoCloseable { public static String getZoneId(Cluster cluster) { Preconditions.checkState(cluster != null, "Cluster doesn't exist"); return getZoneId(cluster.getLocation()); } }
BigtableClusterUtilities implements AutoCloseable { public static String getZoneId(Cluster cluster) { Preconditions.checkState(cluster != null, "Cluster doesn't exist"); return getZoneId(cluster.getLocation()); } BigtableClusterUtilities(final BigtableOptions options); }
BigtableClusterUtilities implements AutoCloseable { public static String getZoneId(Cluster cluster) { Preconditions.checkState(cluster != null, "Cluster doesn't exist"); return getZoneId(cluster.getLocation()); } BigtableClusterUtilities(final BigtableOptions options); static BigtableClusterUtilities forInstance(String projectId, String instanceId); static BigtableClusterUtilities forAllInstances(String projectId); static String lookupInstanceId(String projectId, String clusterId, String zoneId); static Cluster lookupCluster(String projectId, String instanceId); static String getZoneId(Cluster cluster); @Deprecated int getClusterSize(String clusterId, String zoneId); int getClusterSize(); ListClustersResponse getClusters(); void setClusterSize(String clusterId, String zoneId, int newSize); void setClusterSize(int newSize); Cluster getSingleCluster(); void waitForOperation(String operationName, int maxSeconds); int getClusterNodeCount(String clusterId, String zoneId); Cluster getCluster(String clusterId, String zoneId); @Override void close(); }
BigtableClusterUtilities implements AutoCloseable { public static String getZoneId(Cluster cluster) { Preconditions.checkState(cluster != null, "Cluster doesn't exist"); return getZoneId(cluster.getLocation()); } BigtableClusterUtilities(final BigtableOptions options); static BigtableClusterUtilities forInstance(String projectId, String instanceId); static BigtableClusterUtilities forAllInstances(String projectId); static String lookupInstanceId(String projectId, String clusterId, String zoneId); static Cluster lookupCluster(String projectId, String instanceId); static String getZoneId(Cluster cluster); @Deprecated int getClusterSize(String clusterId, String zoneId); int getClusterSize(); ListClustersResponse getClusters(); void setClusterSize(String clusterId, String zoneId, int newSize); void setClusterSize(int newSize); Cluster getSingleCluster(); void waitForOperation(String operationName, int maxSeconds); int getClusterNodeCount(String clusterId, String zoneId); Cluster getCluster(String clusterId, String zoneId); @Override void close();  }