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, uri
public List<? extends Cluster> list()
list
in interface ClusterService
public Cluster get(String clusterId)
get
in interface ClusterService
clusterId
- the cluster identifierpublic Cluster create(Cluster cluster)
create
in interface ClusterService
cluster
- the cluster to createpublic ActionResponse delete(String clusterId)
delete
in interface ClusterService
clusterId
- the cluster identifierpublic Cluster resizeNodeGroup(String clusterId, String groupName, int count)
resizeNodeGroup
in interface ClusterService
clusterId
- 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 ClusterService
clusterId
- the cluster identifiernodeGroup
- the new node groupCopyright © 2017. All rights reserved.