public class VendorNamespace extends Object implements Namespace
AttributeManager.ReadContext, AttributeManager.WriteContextAttributeHistoryManager.HistoryReadContext, AttributeHistoryManager.HistoryUpdateContextMethodServices.CallContextNodeManager.AddNodesContext, NodeManager.AddReferencesContext, NodeManager.DeleteNodesContext, NodeManager.DeleteReferencesContextViewManager.BrowseContext| Modifier and Type | Field and Description |
|---|---|
static UShort |
NAMESPACE_INDEX |
| Constructor and Description |
|---|
VendorNamespace(OpcUaServer server,
String namespaceUri) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<List<Reference>> |
browse(AccessContext context,
NodeId nodeId)
If the node identified by
nodeId exists return all References. |
UShort |
getNamespaceIndex() |
String |
getNamespaceUri() |
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 |
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, historyUpdatecall, getInvocationHandleronEventItemsCreated, onEventItemsDeleted, onEventItemsModifiedaddNode, addReference, deleteNode, deleteReferencebrowsepublic static final UShort NAMESPACE_INDEX
public VendorNamespace(OpcUaServer server, String namespaceUri)
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.Copyright © 2018. All rights reserved.