public class OpcUaNamespace extends Object implements Namespace
AttributeManager.ReadContext, AttributeManager.WriteContextAttributeHistoryManager.HistoryReadContext, AttributeHistoryManager.HistoryUpdateContextMethodServices.CallContextNodeManager.AddNodesContext, NodeManager.AddReferencesContext, NodeManager.DeleteNodesContext, NodeManager.DeleteReferencesContextViewManager.BrowseContext| Constructor and Description |
|---|
OpcUaNamespace(OpcUaServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(NodeId sourceNodeId,
NodeId referenceTypeId,
boolean forward,
ExpandedNodeId targetNodeId,
NodeClass targetNodeClass) |
CompletableFuture<List<Reference>> |
browse(AccessContext context,
NodeId nodeId)
If the node identified by
nodeId exists return all References. |
Optional<MethodInvocationHandler> |
getInvocationHandler(NodeId methodId)
Get the
MethodInvocationHandler for the method identified by methodId, if it exists. |
UShort |
getNamespaceIndex() |
String |
getNamespaceUri() |
UaObjectNode |
getObjectsFolder() |
ServerNode |
getServerNode() |
void |
onDataItemsCreated(List<DataItem> dataItems)
DataItems have been created for nodes belonging to this NodeManager. |
void |
onDataItemsDeleted(List<DataItem> dataItems)
DataItems have been deleted for nodes belonging to this NodeManager. |
void |
onDataItemsModified(List<DataItem> dataItems)
DataItems have been modified for nodes belonging to this NodeManager. |
void |
onEventItemsCreated(List<EventItem> eventItems)
EventItems have been created for nodes belonging to this NodeManager. |
void |
onEventItemsDeleted(List<EventItem> eventItems)
EventItems have been deleted for nodes belonging to this NodeManager. |
void |
onEventItemsModified(List<EventItem> eventItems)
EventItems have been modified for nodes belonging to this NodeManager. |
void |
onMonitoringModeChanged(List<MonitoredItem> monitoredItems)
MonitoredItems have had their MonitoringMode modified by a client. |
void |
read(AttributeManager.ReadContext context,
Double maxAge,
TimestampsToReturn timestamps,
List<ReadValueId> readValueIds)
Read one or more values from nodes belonging to this
AttributeManager. |
void |
write(AttributeManager.WriteContext context,
List<WriteValue> writeValues)
Write one or more values to nodes belonging to this
AttributeManager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithistoryRead, historyUpdatecalladdNode, addReference, deleteNode, deleteReferencebrowsepublic OpcUaNamespace(OpcUaServer server)
public UShort getNamespaceIndex()
getNamespaceIndex in interface NamespaceNamespace in the server's namespace array.public String getNamespaceUri()
getNamespaceUri in interface NamespaceNamespace.public CompletableFuture<List<Reference>> browse(AccessContext context, NodeId nodeId)
ViewManagernodeId exists return all References.
The AccessContext can be ignored unless the server wishes to impose some restriction upon which users
can browse which nodes. Note that this only obscures what is returned in the browse; nothing prevents a client
from addressing a NodeId in other service requests, whether they browsed it or not.
browse in interface ViewManagercontext - the AccessContext this request is being made under.nodeId - the NodeId identifying the node.CompletableFuture containing the References. If the node is unknown, complete the
future exceptionally.public void read(AttributeManager.ReadContext context, Double maxAge, TimestampsToReturn timestamps, List<ReadValueId> readValueIds)
AttributeManagerAttributeManager.
Complete the operation with OperationContext.complete(List).
read in interface AttributeManagercontext - the AttributeManager.ReadContext.maxAge - requested max age.timestamps - requested timestamp values.readValueIds - the values to read.public void write(AttributeManager.WriteContext context, List<WriteValue> writeValues)
AttributeManagerAttributeManager.
Complete the operation with OperationContext.complete(List).
write in interface AttributeManagercontext - the AttributeManager.WriteContext.writeValues - the values to write.public void onDataItemsCreated(List<DataItem> dataItems)
MonitoredItemManagerDataItems have been created for nodes belonging to this NodeManager.
If sampling is enabled for this item, it is expected that a best-effort will be made to update the item's value at the sampling rate.
onDataItemsCreated in interface MonitoredItemManagerdataItems - the DataItems that were created.public void onDataItemsModified(List<DataItem> dataItems)
MonitoredItemManagerDataItems have been modified for nodes belonging to this NodeManager.
Check to see if the sampling rate has changed or if sampling has been enabled or disabled.
onDataItemsModified in interface MonitoredItemManagerdataItems - the DataItems that were modified.public void onDataItemsDeleted(List<DataItem> dataItems)
MonitoredItemManagerDataItems have been deleted for nodes belonging to this NodeManager.
Updates to this item should cease and any references to it should be removed.
onDataItemsDeleted in interface MonitoredItemManagerdataItems - the DataItems that were deleted.public void onMonitoringModeChanged(List<MonitoredItem> monitoredItems)
MonitoredItemManagerMonitoredItems have had their MonitoringMode modified by a client.
Check if sampling is still enabled and react accordingly.
onMonitoringModeChanged in interface MonitoredItemManagermonitoredItems - The MonitoredItems whose MonitoringMode was modified.public void onEventItemsCreated(List<EventItem> eventItems)
MonitoredItemManagerEventItems have been created for nodes belonging to this NodeManager.onEventItemsCreated in interface MonitoredItemManagereventItems - the EventItems that were created.public void onEventItemsModified(List<EventItem> eventItems)
MonitoredItemManagerEventItems have been modified for nodes belonging to this NodeManager.onEventItemsModified in interface MonitoredItemManagereventItems - the EventItems that were modified.public void onEventItemsDeleted(List<EventItem> eventItems)
MonitoredItemManagerEventItems have been deleted for nodes belonging to this NodeManager.onEventItemsDeleted in interface MonitoredItemManagereventItems - the EventItems that were deleted.public void addReference(NodeId sourceNodeId, NodeId referenceTypeId, boolean forward, ExpandedNodeId targetNodeId, NodeClass targetNodeClass) throws UaException
UaExceptionpublic Optional<MethodInvocationHandler> getInvocationHandler(NodeId methodId)
MethodServicesMethodInvocationHandler for the method identified by methodId, if it exists.getInvocationHandler in interface MethodServicesmethodId - the NodeId identifying the method.MethodInvocationHandler for methodId, if it exists.public UaObjectNode getObjectsFolder()
public ServerNode getServerNode()
Copyright © 2018. All rights reserved.