public class AddressSpace extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AddressSpace.BrowseOptions |
| Constructor and Description |
|---|
AddressSpace(OpcUaClient client) |
| Modifier and Type | Method and Description |
|---|---|
List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> |
browse(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Call the Browse service to get a Node's references using the currently configured
AddressSpace.BrowseOptions. |
List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> |
browse(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
AddressSpace.BrowseOptions browseOptions)
Call the Browse service to get a Node's references.
|
List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> |
browse(UaNode node)
Call the Browse service to get a
UaNode's references using the currently configured
AddressSpace.BrowseOptions. |
List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> |
browse(UaNode node,
AddressSpace.BrowseOptions browseOptions)
Call the Browse service to get a
UaNode's references. |
CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> |
browseAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Call the Browse service to get a Node's references using the currently configured
AddressSpace.BrowseOptions. |
CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> |
browseAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
AddressSpace.BrowseOptions browseOptions)
Call the Browse service to get a Node's references.
|
CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> |
browseAsync(UaNode node)
Call the Browse service to get a
UaNode's references using the currently configured
AddressSpace.BrowseOptions. |
CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> |
browseAsync(UaNode node,
AddressSpace.BrowseOptions browseOptions)
Call the Browse service to get a
UaNode's references. |
List<? extends UaNode> |
browseNodes(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Browse from
nodeId using the currently configured AddressSpace.BrowseOptions. |
List<? extends UaNode> |
browseNodes(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
AddressSpace.BrowseOptions browseOptions)
Browse from
nodeId using browseOptions. |
List<? extends UaNode> |
browseNodes(UaNode node)
Browse from
node using the currently configured AddressSpace.BrowseOptions. |
List<? extends UaNode> |
browseNodes(UaNode node,
AddressSpace.BrowseOptions browseOptions)
Browse from
node using browseOptions. |
CompletableFuture<List<? extends UaNode>> |
browseNodesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Browse from
nodeId using the currently configured AddressSpace.BrowseOptions. |
CompletableFuture<List<? extends UaNode>> |
browseNodesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
AddressSpace.BrowseOptions browseOptions)
Browse from
nodeId using browseOptions. |
CompletableFuture<List<? extends UaNode>> |
browseNodesAsync(UaNode node)
Browse from
node using the currently configured AddressSpace.BrowseOptions. |
CompletableFuture<List<? extends UaNode>> |
browseNodesAsync(UaNode node,
AddressSpace.BrowseOptions browseOptions)
Browse from
node using browseOptions. |
AddressSpace.BrowseOptions |
getBrowseOptions()
Get the default
AddressSpace.BrowseOptions used during browse calls that don't have an explicit
AddressSpace.BrowseOptions parameter. |
UaNode |
getNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaNode instance for the Node identified by nodeId. |
CompletableFuture<? extends UaNode> |
getNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaNode instance for the Node identified by nodeId. |
NodeCache |
getNodeCache()
Get the current
NodeCache. |
UaObjectNode |
getObjectNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaObjectNode instance for the ObjectNode identified by nodeId. |
UaObjectNode |
getObjectNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
Get a
UaObjectNode instance for the ObjectNode identified by nodeId,
assuming the type definition identified by typeDefinitionId. |
CompletableFuture<UaObjectNode> |
getObjectNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaObjectNode instance for the ObjectNode identified by nodeId. |
CompletableFuture<UaObjectNode> |
getObjectNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
Get a
UaObjectNode instance for the ObjectNode identified by nodeId,
assuming the type definition identified by typeDefinitionId. |
UaVariableNode |
getVariableNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaVariableNode instance for the VariableNode identified by nodeId. |
UaVariableNode |
getVariableNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
Get a
UaVariableNode instance for the VariableNode identified by nodeId,
assuming the type definition identified by typeDefinitionId. |
CompletableFuture<UaVariableNode> |
getVariableNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
Get a
UaVariableNode instance for the VariableNode identified by nodeId. |
CompletableFuture<UaVariableNode> |
getVariableNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
Get a
UaVariableNode instance for the VariableNode identified by nodeId,
assuming the type definition identified by typeDefinitionId. |
void |
modifyBrowseOptions(Consumer<AddressSpace.BrowseOptions.Builder> builderConsumer)
Modify the default
AddressSpace.BrowseOptions used during browse calls that don't have an
explicit AddressSpace.BrowseOptions parameter. |
void |
setBrowseOptions(AddressSpace.BrowseOptions browseOptions)
Set a new default
AddressSpace.BrowseOptions used during browse calls that don't have an explicit
AddressSpace.BrowseOptions parameter. |
void |
setNodeCache(NodeCache nodeCache)
Set a new
NodeCache. |
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId |
toNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId xni)
Convert
xni to a NodeId in the server, reading the namespace table from the
server if necessary. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> |
toNodeIdAsync(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId xni)
Convert
xni to a NodeId in the server, reading the namespace table from the
server if necessary. |
public AddressSpace(OpcUaClient client)
public UaNode getNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) throws org.eclipse.milo.opcua.stack.core.UaException
UaNode instance for the Node identified by nodeId.nodeId - the NodeId identifying the Node to get.UaNode instance for the Node identified by nodeId.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while creating the Node.public CompletableFuture<? extends UaNode> getNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
nodeId - the NodeId identifying the Node to get.public UaObjectNode getObjectNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) throws org.eclipse.milo.opcua.stack.core.UaException
UaObjectNode instance for the ObjectNode identified by nodeId.
The type definition will be read when the instance is created. If this type definition is
registered with the ObjectTypeManager a UaObjectNode of the appropriate
subclass will be returned.
nodeId - the NodeId identifying the ObjectNode to get.UaObjectNode instance for the ObjectNode identified by nodeId.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while creating the ObjectNode.public UaObjectNode getObjectNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId) throws org.eclipse.milo.opcua.stack.core.UaException
UaObjectNode instance for the ObjectNode identified by nodeId,
assuming the type definition identified by typeDefinitionId.
If this type definition is registered with the ObjectTypeManager a
UaObjectNode of the appropriate subclass will be returned.
nodeId - the NodeId identifying the ObjectNode to get.typeDefinitionId - the NodeId identifying the type definition.UaObjectNode instance for the ObjectNode identified by nodeId.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while creating the ObjectNode.public CompletableFuture<UaObjectNode> getObjectNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
UaObjectNode instance for the ObjectNode identified by nodeId.
The type definition will be read when the instance is created. If this type definition is
registered with the ObjectTypeManager a UaObjectNode of the appropriate
subclass will be returned.
This call completes asynchronously.
nodeId - the NodeId identifying the ObjectNode to get.UaObjectNode instance
for the ObjectNode identified by nodeId or completes exceptionally if an error
occurs creating the ObjectNode.public CompletableFuture<UaObjectNode> getObjectNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
UaObjectNode instance for the ObjectNode identified by nodeId,
assuming the type definition identified by typeDefinitionId.
If this type definition is registered with the ObjectTypeManager a
UaObjectNode of the appropriate subclass will be returned.
This call completes asynchronously.
nodeId - the NodeId identifying the ObjectNode to get.typeDefinitionId - the NodeId identifying the type definition.UaObjectNode instance
for the ObjectNode identified by nodeId or completes exceptionally if an error
occurs creating the ObjectNode.public UaVariableNode getVariableNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) throws org.eclipse.milo.opcua.stack.core.UaException
UaVariableNode instance for the VariableNode identified by nodeId.
The type definition will be read when the instance is created. If this type definition is
registered with the VariableTypeManager a UaVariableNode of the appropriate
subclass will be returned.
nodeId - the NodeId identifying the VariableNode to get.UaVariableNode instance for the VariableNode identified by nodeId.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while creating the VariableNode.public UaVariableNode getVariableNode(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId) throws org.eclipse.milo.opcua.stack.core.UaException
UaVariableNode instance for the VariableNode identified by nodeId,
assuming the type definition identified by typeDefinitionId.
If this type definition is registered with the VariableTypeManager a
UaVariableNode of the appropriate subclass will be returned.
nodeId - the NodeId identifying the VariableNode to get.typeDefinitionId - the NodeId identifying the type definition.UaVariableNode instance for the VariableNode identified by nodeId.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while creating the VariableNode.public CompletableFuture<UaVariableNode> getVariableNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
UaVariableNode instance for the VariableNode identified by nodeId.
The type definition will be read when the instance is created. If this type definition is
registered with the VariableTypeManager a UaVariableNode of the appropriate
subclass will be returned.
This call completes asynchronously.
nodeId - the NodeId identifying the VariableNode to get.UaVariableNode
instance for the VariableNode identified by nodeId or completes exceptionally if an
error occurs while creating the VariableNode.public CompletableFuture<UaVariableNode> getVariableNodeAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId typeDefinitionId)
UaVariableNode instance for the VariableNode identified by nodeId,
assuming the type definition identified by typeDefinitionId.
If this type definition is registered with the VariableTypeManager a
UaVariableNode of the appropriate subclass will be returned.
This call completes asynchronously.
nodeId - the NodeId identifying the VariableNode to get.typeDefinitionId - the NodeId identifying the type definition.UaVariableNode
instance for the VariableNode identified by nodeId or completes exceptionally if an
error occurs while creating the VariableNode.public List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> browse(UaNode node) throws org.eclipse.milo.opcua.stack.core.UaException
UaNode's references using the currently configured
AddressSpace.BrowseOptions.node - the UaNode to browse.ReferenceDescriptions.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> browse(UaNode node, AddressSpace.BrowseOptions browseOptions) throws org.eclipse.milo.opcua.stack.core.UaException
UaNode's references.node - the UaNode to browse.browseOptions - the AddressSpace.BrowseOptions to browse with.ReferenceDescriptions.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.public List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> browse(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) throws org.eclipse.milo.opcua.stack.core.UaException
AddressSpace.BrowseOptions.nodeId - the NodeId of the Node to browse.ReferenceDescriptions.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription> browse(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, AddressSpace.BrowseOptions browseOptions) throws org.eclipse.milo.opcua.stack.core.UaException
nodeId - the NodeId of the Node to browse.browseOptions - the AddressSpace.BrowseOptions to browse with.ReferenceDescriptions.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.public CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> browseAsync(UaNode node)
UaNode's references using the currently configured
AddressSpace.BrowseOptions.
This call completes asynchronously.
node - the UaNode to browse.getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> browseAsync(UaNode node, AddressSpace.BrowseOptions browseOptions)
UaNode's references.
This call completes asynchronously.
node - the UaNode to browse.browseOptions - the AddressSpace.BrowseOptions to browse with.public CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> browseAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
AddressSpace.BrowseOptions.
This call completes asynchronously.
nodeId - the NodeId of the Node to browse.getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public CompletableFuture<List<org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription>> browseAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, AddressSpace.BrowseOptions browseOptions)
This call completes asynchronously.
nodeId - the NodeId of the Node to browse.browseOptions - the AddressSpace.BrowseOptions to browse with.public List<? extends UaNode> browseNodes(UaNode node) throws org.eclipse.milo.opcua.stack.core.UaException
node using the currently configured AddressSpace.BrowseOptions.node - the UaNode to start the browse from.UaNodes referenced by node given the currently configured
AddressSpace.BrowseOptions.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while browsing or creating Nodes.browseNodes(UaNode, BrowseOptions),
getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public List<? extends UaNode> browseNodes(UaNode node, AddressSpace.BrowseOptions browseOptions) throws org.eclipse.milo.opcua.stack.core.UaException
node using browseOptions.node - the UaNode to start the browse from.browseOptions - the AddressSpace.BrowseOptions to use.UaNodes referenced by node given browseOptions.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while browsing or creating Nodes.public List<? extends UaNode> browseNodes(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) throws org.eclipse.milo.opcua.stack.core.UaException
nodeId using the currently configured AddressSpace.BrowseOptions.nodeId - the NodeId to start the browse from.UaNodes referenced by nodeId given the currently configured
AddressSpace.BrowseOptions.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while browsing or creating Nodes.browseNodes(UaNode, BrowseOptions),
getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public List<? extends UaNode> browseNodes(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, AddressSpace.BrowseOptions browseOptions) throws org.eclipse.milo.opcua.stack.core.UaException
nodeId using browseOptions.nodeId - the NodeId to start the browse from.browseOptions - the AddressSpace.BrowseOptions to use.UaNodes referenced by nodeId given browseOptions.org.eclipse.milo.opcua.stack.core.UaException - if an error occurs while browsing or creating Nodes.public CompletableFuture<List<? extends UaNode>> browseNodesAsync(UaNode node)
node using the currently configured AddressSpace.BrowseOptions.
This call completes asynchronously.
node - the UaNode to start the browse from.UaNodes
referenced by node given the currently configured AddressSpace.BrowseOptions or completes
exceptionally if a service-level error occurs.browseNodesAsync(UaNode, BrowseOptions),
getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public CompletableFuture<List<? extends UaNode>> browseNodesAsync(UaNode node, AddressSpace.BrowseOptions browseOptions)
node using browseOptions.
This call completes asynchronously.
node - the UaNode to start the browse from.browseOptions - the AddressSpace.BrowseOptions to use.UaNodes
referenced by node given the currently configured AddressSpace.BrowseOptions or completes
exceptionally if a service-level error occurs.public CompletableFuture<List<? extends UaNode>> browseNodesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId)
nodeId using the currently configured AddressSpace.BrowseOptions.
This call completes asynchronously.
nodeId - the NodeId to start the browse from.UaNodes
referenced by node given the currently configured AddressSpace.BrowseOptions or completes
exceptionally if a service-level error occurs.browseNodesAsync(UaNode, BrowseOptions),
getBrowseOptions(),
modifyBrowseOptions(Consumer),
setBrowseOptions(BrowseOptions)public CompletableFuture<List<? extends UaNode>> browseNodesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, AddressSpace.BrowseOptions browseOptions)
nodeId using browseOptions.
This call completes asynchronously.
nodeId - the NodeId to start the browse from.browseOptions - the AddressSpace.BrowseOptions to use.UaNodes
referenced by node given the currently configured AddressSpace.BrowseOptions or completes
exceptionally if a service-level error occurs.public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId toNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId xni)
xni to a NodeId in the server, reading the namespace table from the
server if necessary.
Returns NodeId.NULL_VALUE if the conversion could not be completed for any reason.
xni - the ExpandedNodeId to convert to a NodeId.NodeId local to the server, or NodeId.NULL_VALUE if conversion
could not be completed for any reason.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> toNodeIdAsync(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId xni)
xni to a NodeId in the server, reading the namespace table from the
server if necessary.
Returns NodeId.NULL_VALUE if the conversion could not be completed for any reason.
xni - the ExpandedNodeId to convert to a NodeId.NodeId local to the server, or NodeId.NULL_VALUE if conversion
could not be completed for any reason.public AddressSpace.BrowseOptions getBrowseOptions()
AddressSpace.BrowseOptions used during browse calls that don't have an explicit
AddressSpace.BrowseOptions parameter.AddressSpace.BrowseOptions.public void modifyBrowseOptions(Consumer<AddressSpace.BrowseOptions.Builder> builderConsumer)
AddressSpace.BrowseOptions used during browse calls that don't have an
explicit AddressSpace.BrowseOptions parameter.builderConsumer - a Consumer that receives a AddressSpace.BrowseOptions.Builder.public void setBrowseOptions(AddressSpace.BrowseOptions browseOptions)
AddressSpace.BrowseOptions used during browse calls that don't have an explicit
AddressSpace.BrowseOptions parameter.browseOptions - the new default AddressSpace.BrowseOptions.public NodeCache getNodeCache()
NodeCache.NodeCache.Copyright © 2021. All rights reserved.