public class ClusterService
extends java.lang.Object
Constructor and Description |
---|
ClusterService() |
Modifier and Type | Method and Description |
---|---|
Cluster |
createCluster(Cluster cluster) |
Cluster |
createOrGetCluster(java.lang.String dataCenter)
This util method creates a cluster for a given data center name.
|
java.lang.Iterable<Cluster> |
getAllClusters() |
Cluster |
getClusterById(java.lang.String id) |
public java.lang.Iterable<Cluster> getAllClusters()
public Cluster getClusterById(java.lang.String id)
public Cluster createOrGetCluster(java.lang.String dataCenter)