public class OpcUaNamespace extends Object implements UaNamespace
AttributeManager.ReadContext, AttributeManager.WriteContextMethodServices.CallContextNodeManager.AddNodesContext, NodeManager.AddReferencesContext, NodeManager.DeleteNodesContext, NodeManager.DeleteReferencesContextViewManager.BrowseContext| Constructor and Description |
|---|
OpcUaNamespace(OpcUaServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(UaNode node) |
void |
addReference(com.digitalpetri.opcua.stack.core.types.builtin.NodeId sourceNodeId,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId referenceTypeId,
boolean forward,
com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId targetNodeId,
com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass targetNodeClass) |
Optional<MethodInvocationHandler> |
getInvocationHandler(com.digitalpetri.opcua.stack.core.types.builtin.NodeId methodId)
Get the
MethodInvocationHandler for the method identified by methodId, if it exists. |
com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort |
getNamespaceIndex() |
String |
getNamespaceUri() |
Optional<UaNode> |
getNode(com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId nodeId) |
Optional<UaNode> |
getNode(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId) |
UaObjectNode |
getObjectsFolder() |
CompletableFuture<List<Reference>> |
getReferences(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId)
If the node identified by
nodeId exists return all References. |
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,
com.digitalpetri.opcua.stack.core.types.enumerated.TimestampsToReturn timestamps,
List<com.digitalpetri.opcua.stack.core.types.structured.ReadValueId> readValueIds)
Read one or more values from nodes belonging to this
AttributeManager. |
Optional<UaNode> |
removeNode(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId) |
void |
write(AttributeManager.WriteContext context,
List<com.digitalpetri.opcua.stack.core.types.structured.WriteValue> writeValues)
Write one or more values to nodes belonging to this
AttributeManager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalladdNode, addReference, deleteNode, deleteReferencebrowsepublic OpcUaNamespace(OpcUaServer server)
public com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort getNamespaceIndex()
getNamespaceIndex in interface NamespaceNamespace in the server's namespace array.public String getNamespaceUri()
getNamespaceUri in interface NamespaceNamespace.public void addNode(UaNode node)
addNode in interface UaNamespacepublic Optional<UaNode> getNode(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId)
getNode in interface UaNamespacepublic Optional<UaNode> getNode(com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId nodeId)
getNode in interface UaNamespacepublic Optional<UaNode> removeNode(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId)
removeNode in interface UaNamespacepublic CompletableFuture<List<Reference>> getReferences(com.digitalpetri.opcua.stack.core.types.builtin.NodeId nodeId)
ViewManagernodeId exists return all References.getReferences in interface ViewManagernodeId - 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, com.digitalpetri.opcua.stack.core.types.enumerated.TimestampsToReturn timestamps, List<com.digitalpetri.opcua.stack.core.types.structured.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<com.digitalpetri.opcua.stack.core.types.structured.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(com.digitalpetri.opcua.stack.core.types.builtin.NodeId sourceNodeId,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId referenceTypeId,
boolean forward,
com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId targetNodeId,
com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass targetNodeClass)
throws com.digitalpetri.opcua.stack.core.UaException
com.digitalpetri.opcua.stack.core.UaExceptionpublic Optional<MethodInvocationHandler> getInvocationHandler(com.digitalpetri.opcua.stack.core.types.builtin.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 © 2015. All rights reserved.