@Service public class NodeServiceImpl extends Object implements NodeService, ConfCheck
NodeService
interface for manipulating with Node
.Node
Constructor and Description |
---|
NodeServiceImpl(org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks configuration.
|
void |
delete(Node node)
Delete existing
Node . |
Node |
getActualNode()
Get actual node for this application server instance.
|
List<Node> |
getAllNodes()
Get all
Node s. |
Node |
getNodeById(Long nodeId)
Gets node by identifier.
|
Node |
insert(Node node)
Insert new
Node . |
Node |
update(Node node,
ChangeNodeCallback changeNodeCallback)
Update existing
Node . |
@Autowired public NodeServiceImpl(org.springframework.transaction.PlatformTransactionManager transactionManager)
@Transactional public Node insert(Node node)
NodeService
Node
.insert
in interface NodeService
node
- nodeNode
@Transactional public Node update(Node node, ChangeNodeCallback changeNodeCallback)
NodeService
Node
.update
in interface NodeService
node
- node that will be updatedchangeNodeCallback
- callback function in which can be changed all node attributesNode
@Transactional public void delete(Node node)
NodeService
Node
.delete
in interface NodeService
node
- nodepublic List<Node> getAllNodes()
NodeService
Node
s.getAllNodes
in interface NodeService
public Node getNodeById(Long nodeId)
NodeService
getNodeById
in interface NodeService
nodeId
- node identifierpublic Node getActualNode()
NodeService
getActualNode
in interface NodeService
public void check() throws ConfigurationException
ConfCheck
check
in interface ConfCheck
ConfigurationException
- when configuration checking failedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.