Class SenlinNodeServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.senlin.internal.BaseSenlinServices
-
- org.openstack4j.openstack.senlin.internal.SenlinNodeServiceImpl
-
- All Implemented Interfaces:
SenlinNodeService
public class SenlinNodeServiceImpl extends BaseSenlinServices implements SenlinNodeService
This class contains getters for all implementation of the available node 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 SenlinNodeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionIDaction(String nodeID, NodeActionCreate newNodeAction)Service implementation which provides methods for manipulation of actionNodecreate(NodeCreate newNode)POST /v1/nodesActionResponsedelete(String nodeID)Deletes the specifiedNodefrom the server.Nodeget(String nodeID)returns details of aNode.Nodeget(String nodeID, boolean showDetails)returns details of aNodeList<? extends Node>list()Gets a list of currently existingNodes.Nodeupdate(String nodeID, NodeCreate newNode)PATCH /v1/nodes/{node_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 Node> list()
Description copied from interface:SenlinNodeServiceGets a list of currently existingNodes.- Specified by:
listin interfaceSenlinNodeService- Returns:
- the list of
Nodes
-
create
public Node create(NodeCreate newNode)
Description copied from interface:SenlinNodeService- Specified by:
createin interfaceSenlinNodeService- Parameters:
newNode-NodeCreateobject out of which node is to be created- Returns:
- new
Nodeas returned from the server
-
get
public Node get(String nodeID)
Description copied from interface:SenlinNodeServicereturns details of aNode.- Specified by:
getin interfaceSenlinNodeService- Parameters:
nodeID- Id ofNode- Returns:
- Node
-
get
public Node get(String nodeID, boolean showDetails)
Description copied from interface:SenlinNodeServicereturns details of aNode- Specified by:
getin interfaceSenlinNodeService- Parameters:
nodeID- Id ofNodeshowDetails- true to retrieve the properties about the physical object that backs the node- Returns:
- Node
-
delete
public ActionResponse delete(String nodeID)
Description copied from interface:SenlinNodeServiceDeletes the specifiedNodefrom the server.- Specified by:
deletein interfaceSenlinNodeService- Parameters:
nodeID- Id ofNode- Returns:
- the action response
-
update
public Node update(String nodeID, NodeCreate newNode)
Description copied from interface:SenlinNodeService- Specified by:
updatein interfaceSenlinNodeService- Parameters:
nodeID- Id ofNodenewNode-NodeCreateobject out of which stack is to be update- Returns:
- new
Nodeas returned from the server
-
action
public ActionID action(String nodeID, NodeActionCreate newNodeAction)
Description copied from interface:SenlinNodeServiceService implementation which provides methods for manipulation of action- Specified by:
actionin interfaceSenlinNodeService- Returns:
- Action
-
-