public class SenlinNodeServiceImpl extends BaseSenlinServices implements SenlinNodeService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
SenlinNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ActionID |
action(String nodeID,
NodeActionCreate newNodeAction)
Service implementation which provides methods for manipulation of action
|
Node |
create(NodeCreate newNode)
|
ActionResponse |
delete(String nodeID)
Deletes the specified
Node from the server. |
Node |
get(String nodeID)
returns details of a
Node . |
Node |
get(String nodeID,
boolean showDetails)
returns details of a
Node |
List<? extends Node> |
list()
Gets a list of currently existing
Node s. |
Node |
update(String nodeID,
NodeCreate newNode)
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Node> list()
SenlinNodeService
Node
s.list
in interface SenlinNodeService
Node
spublic Node create(NodeCreate newNode)
SenlinNodeService
create
in interface SenlinNodeService
newNode
- NodeCreate
object out of which node is to be createdNode
as returned from the serverpublic Node get(String nodeID)
SenlinNodeService
Node
.get
in interface SenlinNodeService
nodeID
- Id of Node
public Node get(String nodeID, boolean showDetails)
SenlinNodeService
Node
get
in interface SenlinNodeService
nodeID
- Id of Node
showDetails
- true to retrieve the properties about the physical object that backs the nodepublic ActionResponse delete(String nodeID)
SenlinNodeService
Node
from the server.delete
in interface SenlinNodeService
nodeID
- Id of Node
public Node update(String nodeID, NodeCreate newNode)
SenlinNodeService
update
in interface SenlinNodeService
nodeID
- Id of Node
newNode
- NodeCreate
object out of which stack is to be updateNode
as returned from the serverpublic ActionID action(String nodeID, NodeActionCreate newNodeAction)
SenlinNodeService
action
in interface SenlinNodeService
Copyright © 2017. All rights reserved.