public class NodeSupplierServiceAdapter extends Object implements NodeSupplierService
NodeSupplierService
API, provided specifically for
unit tests and implementers to use, to insulate from changes in the API.Constructor and Description |
---|
NodeSupplierServiceAdapter() |
Modifier and Type | Method and Description |
---|---|
Node |
createOrUpdateNode(NodeId id,
NodeInfo info)
Creates a new node or updates an existing node with the given
node-related information.
|
Node |
removeNode(NodeId id)
Removes a specific node from the data store.
|
Iterator<Node> |
removeNodes(NodeFilter filter)
Removes all nodes matching the given filter from the data store.
|
public Node createOrUpdateNode(NodeId id, NodeInfo info)
NodeSupplierService
createOrUpdateNode
in interface NodeSupplierService
id
- the identifier for the node to create/updateinfo
- node-related information to overwritepublic Node removeNode(NodeId id)
NodeSupplierService
removeNode
in interface NodeSupplierService
id
- the identifier for the node to removepublic Iterator<Node> removeNodes(NodeFilter filter)
NodeSupplierService
removeNodes
in interface NodeSupplierService
filter
- the filter to match againstCopyright © 2015. All Rights Reserved.