public interface ServerNodeMap extends ConcurrentMap<NodeId,ServerNode>
| Modifier and Type | Method and Description |
|---|---|
default void |
addNode(ServerNode node)
Add a
UaNode to this ServerNodeMap. |
default boolean |
addReference(Reference reference)
|
default boolean |
containsNode(ServerNode node)
Check if a
UaNode exists in this ServerNodeMap. |
default boolean |
containsNodeId(NodeId nodeId)
|
NamespaceTable |
getNamespaceTable()
Get the server's
NamespaceTable. |
default Optional<ServerNode> |
getNode(ExpandedNodeId nodeId)
Get the
ServerNode identified by the provided ExpandedNodeId, if it exists. |
default Optional<ServerNode> |
getNode(NodeId nodeId)
Get the
ServerNode identified by the provided NodeId, if it exists. |
default Optional<ServerNode> |
removeNode(NodeId nodeId)
Remove the
ServerNode identified by the provided NodeId, if it exists. |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAlldefault void addNode(ServerNode node)
UaNode to this ServerNodeMap.
This method is shorthand for:
nodeMap.put(node.getNodeId(), node);
node - the UaNode to add.default boolean addReference(Reference reference)
default boolean containsNode(ServerNode node)
UaNode exists in this ServerNodeMap.node - the UaNode in question.true if this ServerNodeMap contains the ServerNode.default boolean containsNodeId(NodeId nodeId)
nodeId - the NodeId of the UaNode in question.true if this ServerNodeMap contains the ServerNode identified by nodeId.default Optional<ServerNode> getNode(NodeId nodeId)
ServerNode identified by the provided NodeId, if it exists.default Optional<ServerNode> getNode(ExpandedNodeId nodeId)
ServerNode identified by the provided ExpandedNodeId, if it exists.nodeId - the ExpandedNodeId of the UaNode.Optional containing the UaNode, if present.default Optional<ServerNode> removeNode(NodeId nodeId)
ServerNode identified by the provided NodeId, if it exists.NamespaceTable getNamespaceTable()
NamespaceTable.
// TODO this has no business here, but ServerNodeMap is currently the only thing passed into UaNode.
NamespaceTable.Copyright © 2018. All rights reserved.