Package org.openstack4j.api.senlin
Interface SenlinNodeService
-
- All Known Implementing Classes:
SenlinNodeServiceImpl
public interface SenlinNodeServiceThis interface defines all methods for the manipulation of Node- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract 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}
-
-
-
Method Detail
-
list
List<? extends Node> list()
Gets a list of currently existingNodes.- Returns:
- the list of
Nodes
-
create
Node create(NodeCreate newNode)
- Parameters:
newNode-NodeCreateobject out of which node is to be created- Returns:
- new
Nodeas returned from the server
-
get
Node get(String nodeID)
returns details of aNode.- Parameters:
nodeID- Id ofNode- Returns:
- Node
-
get
Node get(String nodeID, boolean showDetails)
returns details of aNode- Parameters:
nodeID- Id ofNodeshowDetails- true to retrieve the properties about the physical object that backs the node- Returns:
- Node
-
delete
ActionResponse delete(String nodeID)
Deletes the specifiedNodefrom the server.- Parameters:
nodeID- Id ofNode- Returns:
- the action response
-
update
Node update(String nodeID, NodeCreate newNode)
- Parameters:
nodeID- Id ofNodenewNode-NodeCreateobject out of which stack is to be update- Returns:
- new
Nodeas returned from the server
-
action
ActionID action(String nodeID, NodeActionCreate newNodeAction)
Service implementation which provides methods for manipulation of action- Returns:
- Action
-
-