Class SenlinClusterServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.senlin.internal.BaseSenlinServices
-
- org.openstack4j.openstack.senlin.internal.SenlinClusterServiceImpl
-
- All Implemented Interfaces:
SenlinClusterService
public class SenlinClusterServiceImpl extends BaseSenlinServices implements SenlinClusterService
This class contains getters for all implementation of the available cluster services- Author:
- lion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SenlinClusterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionIDaction(String clusterID, ClusterActionCreate newClusterAction)Service implementation which provides methods for manipulation of actionClustercreate(ClusterCreate newCluster)POST /v1/clustersActionResponsedelete(String clusterID)Deletes the specifiedClusterfrom the server.Clusterget(String clusterID)returns details of aCluster.List<? extends Cluster>list()Gets a list of currently existingClusters.Clusterupdate(String clusterID, ClusterCreate newCluster)PATCH /v1/clusters/{cluster_id}-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Cluster> list()
Description copied from interface:SenlinClusterServiceGets a list of currently existingClusters.- Specified by:
listin interfaceSenlinClusterService- Returns:
- the list of
Clusters
-
get
public Cluster get(String clusterID)
Description copied from interface:SenlinClusterServicereturns details of aCluster.- Specified by:
getin interfaceSenlinClusterService- Parameters:
clusterID- Id ofCluster- Returns:
- Cluster
-
create
public Cluster create(ClusterCreate newCluster)
Description copied from interface:SenlinClusterService- Specified by:
createin interfaceSenlinClusterService- Parameters:
newCluster-ClusterCreateobject out of which cluster is to be created- Returns:
- new
Clusteras returned from the server
-
delete
public ActionResponse delete(String clusterID)
Description copied from interface:SenlinClusterServiceDeletes the specifiedClusterfrom the server.- Specified by:
deletein interfaceSenlinClusterService- Parameters:
clusterID- Id ofCluster- Returns:
- the action response
-
update
public Cluster update(String clusterID, ClusterCreate newCluster)
Description copied from interface:SenlinClusterService- Specified by:
updatein interfaceSenlinClusterService- Parameters:
clusterID- Id ofClusternewCluster-ClusterCreateobject out of which stack is to be update- Returns:
- new
Clusteras returned from the server
-
action
public ActionID action(String clusterID, ClusterActionCreate newClusterAction)
Description copied from interface:SenlinClusterServiceService implementation which provides methods for manipulation of action- Specified by:
actionin interfaceSenlinClusterService- Returns:
- Action
-
-