Package org.openstack4j.api.sahara
Interface ClusterService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ClusterServiceImpl
public interface ClusterService extends RestService
Sahara Data Processing Operations- Author:
- Ekasit Kijsipongse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusteraddNodeGroup(String clusterId, NodeGroup nodeGroup)Add a new node group in the specified clusterClustercreate(Cluster cluster)Create a new clusterActionResponsedelete(String clusterId)Delete the specified clusterClusterget(String clusterId)Get a cluster by IDList<? extends Cluster>list()List all clustersClusterresizeNodeGroup(String clusterId, String groupName, int count)Resize a node group in the specified cluster
-
-
-
Method Detail
-
get
Cluster get(String clusterId)
Get a cluster by ID- Parameters:
clusterId- the cluster identifier- Returns:
- the cluster or null if not found
-
create
Cluster create(Cluster cluster)
Create a new cluster- Parameters:
cluster- the cluster to create- Returns:
- the created cluster
-
delete
ActionResponse delete(String clusterId)
Delete the specified cluster- Parameters:
clusterId- the cluster identifier- Returns:
- the action response
-
resizeNodeGroup
Cluster resizeNodeGroup(String clusterId, String groupName, int count)
Resize a node group in the specified cluster- Parameters:
clusterId- the cluster identifiergroupName- the name of the node groupcount- the number of instances in the node group- Returns:
- the updated cluster
-
-