public class ClusterServiceImpl extends BaseSaharaServices implements ClusterService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ClusterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Cluster |
addNodeGroup(String clusterId,
NodeGroup nodeGroup)
Add a new node group in the specified cluster
|
Cluster |
create(Cluster cluster)
Create a new cluster
|
ActionResponse |
delete(String clusterId)
Delete the specified cluster
|
Cluster |
get(String clusterId)
Get a cluster by ID
|
List<? extends Cluster> |
list()
List all clusters
|
Cluster |
resizeNodeGroup(String clusterId,
String groupName,
int count)
Resize a node group in the specified cluster
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Cluster> list()
list in interface ClusterServicepublic Cluster get(String clusterId)
get in interface ClusterServiceclusterId - the cluster identifierpublic Cluster create(Cluster cluster)
create in interface ClusterServicecluster - the cluster to createpublic ActionResponse delete(String clusterId)
delete in interface ClusterServiceclusterId - the cluster identifierpublic Cluster resizeNodeGroup(String clusterId, String groupName, int count)
resizeNodeGroup in interface ClusterServiceclusterId - the cluster identifiergroupName - the name of the node groupcount - the number of instances in the node grouppublic Cluster addNodeGroup(String clusterId, NodeGroup nodeGroup)
addNodeGroup in interface ClusterServiceclusterId - the cluster identifiernodeGroup - the new node groupCopyright © 2017. All rights reserved.