public abstract class ManagedAddressSpace extends Object implements AddressSpace
AttributeServices.ReadContext, AttributeServices.WriteContextAttributeHistoryServices.HistoryReadContext, AttributeHistoryServices.HistoryUpdateContextMethodServices.CallContextNodeManagementServices.AddNodesContext, NodeManagementServices.AddReferencesContext, NodeManagementServices.DeleteNodesContext, NodeManagementServices.DeleteReferencesContextViewServices.BrowseContext, ViewServices.RegisterNodesContext, ViewServices.UnregisterNodesContext| Constructor and Description |
|---|
ManagedAddressSpace(OpcUaServer server) |
ManagedAddressSpace(OpcUaServer server,
UaNodeManager nodeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
browse(ViewServices.BrowseContext context,
ViewDescription viewDescription,
NodeId nodeId)
Get all References for which
nodeId is the source. |
void |
call(MethodServices.CallContext context,
List<CallMethodRequest> requests)
Invoke one or more methods belonging to this
MethodServices. |
protected NodeFactory |
createNodeFactory() |
protected Optional<MethodInvocationHandler> |
getInvocationHandler(NodeId objectId,
NodeId methodId)
Get the
MethodInvocationHandler for the method identified by methodId, if it exists. |
protected UaNodeContext |
getNodeContext() |
protected NodeFactory |
getNodeFactory() |
protected UaNodeManager |
getNodeManager() |
void |
getReferences(ViewServices.BrowseContext context,
ViewDescription viewDescription,
NodeId nodeId)
References for which
nodeId is the source are being collected from all AddressSpace instances. |
protected OpcUaServer |
getServer() |
void |
read(AttributeServices.ReadContext context,
Double maxAge,
TimestampsToReturn timestamps,
List<ReadValueId> readValueIds)
Read one or more values from nodes belonging to this
AttributeServices. |
void |
registerNodes(ViewServices.RegisterNodesContext context,
List<NodeId> nodeIds)
Register one or more
NodeIds. |
void |
unregisterNodes(ViewServices.UnregisterNodesContext context,
List<NodeId> nodeIds)
Unregister one or more previously registered
NodeIds. |
void |
write(AttributeServices.WriteContext context,
List<WriteValue> writeValues)
Write one or more values to nodes belonging to this
AttributeServices. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithistoryRead, historyUpdateonCreateDataItem, onCreateEventItem, onDataItemsCreated, onDataItemsDeleted, onDataItemsModified, onEventItemsCreated, onEventItemsDeleted, onEventItemsModified, onModifyDataItem, onModifyEventItem, onMonitoringModeChangedaddNodes, addReferences, deleteNodes, deleteReferencesbrowse, getViewCountpublic ManagedAddressSpace(OpcUaServer server)
public ManagedAddressSpace(OpcUaServer server, UaNodeManager nodeManager)
protected NodeFactory createNodeFactory()
protected OpcUaServer getServer()
protected UaNodeContext getNodeContext()
protected NodeFactory getNodeFactory()
protected UaNodeManager getNodeManager()
public void browse(ViewServices.BrowseContext context, ViewDescription viewDescription, NodeId nodeId)
ViewServicesnodeId is the source.
If a Node instance for nodeId does not exist then AsyncOperationContext.failure(StatusCode) should be
invoked with StatusCodes.Bad_NodeIdUnknown.
browse in interface ViewServicescontext - the ViewServices.BrowseContext.viewDescription - the ViewDescription.nodeId - the NodeId to browse.public void getReferences(ViewServices.BrowseContext context, ViewDescription viewDescription, NodeId nodeId)
ViewServicesnodeId is the source are being collected from all AddressSpace instances.
Return any References where nodeId is the source this AddressSpace may have to contribute.
The Node identified by nodeId may be managed by another AddressSpace.
getReferences in interface ViewServicescontext - the ViewServices.BrowseContext.viewDescription - the ViewDescription.nodeId - the NodeId to get references fo.public void registerNodes(ViewServices.RegisterNodesContext context, List<NodeId> nodeIds)
ViewServicesNodeIds.registerNodes in interface ViewServicescontext - the ViewServices.RegisterNodesContext.nodeIds - the NodeIds to register.public void unregisterNodes(ViewServices.UnregisterNodesContext context, List<NodeId> nodeIds)
ViewServicesNodeIds.unregisterNodes in interface ViewServicescontext - the ViewServices.UnregisterNodesContext.nodeIds - the NodeIds to unregister.public void read(AttributeServices.ReadContext context, Double maxAge, TimestampsToReturn timestamps, List<ReadValueId> readValueIds)
AttributeServicesAttributeServices.
Complete the operation with AsyncOperationContext.success(Object).
read in interface AttributeServicescontext - the AttributeServices.ReadContext.maxAge - requested max age.timestamps - requested timestamp values.readValueIds - the values to read.public void write(AttributeServices.WriteContext context, List<WriteValue> writeValues)
AttributeServicesAttributeServices.
Complete the operation with AsyncOperationContext.success(Object).
write in interface AttributeServicescontext - the AttributeServices.WriteContext.writeValues - the values to write.public void call(MethodServices.CallContext context, List<CallMethodRequest> requests)
MethodServices.call in interface MethodServicescontext - the CallContext.requests - The CallMethodRequests for the methods to invoke.protected Optional<MethodInvocationHandler> getInvocationHandler(NodeId objectId, NodeId methodId)
MethodInvocationHandler for the method identified by methodId, if it exists.objectId - the NodeId identifying the object the method will be invoked on.methodId - the NodeId identifying the method.MethodInvocationHandler for methodId, if it exists.Copyright © 2021. All rights reserved.