public abstract class ForwardingAddressSpace 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 |
|---|
ForwardingAddressSpace() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodes(NodeManagementServices.AddNodesContext context,
List<AddNodesItem> nodesToAdd) |
void |
addReferences(NodeManagementServices.AddReferencesContext context,
List<AddReferencesItem> referencesToAdd) |
void |
browse(ViewServices.BrowseContext context,
NodeId nodeId)
Like
ViewServices.browse(BrowseContext, ViewDescription, NodeId) but with a null/empty ViewDescription. |
void |
browse(ViewServices.BrowseContext context,
ViewDescription view,
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 abstract AddressSpace |
delegate() |
void |
deleteNodes(NodeManagementServices.DeleteNodesContext context,
List<DeleteNodesItem> nodesToDelete) |
void |
deleteReferences(NodeManagementServices.DeleteReferencesContext context,
List<DeleteReferencesItem> referencesToDelete) |
void |
getReferences(ViewServices.BrowseContext context,
ViewDescription view,
NodeId nodeId)
References for which
nodeId is the source are being collected from all AddressSpace instances. |
UInteger |
getViewCount()
Get the number of views, if any, managed by this
ViewServices implementation. |
void |
historyRead(AttributeHistoryServices.HistoryReadContext context,
HistoryReadDetails readDetails,
TimestampsToReturn timestamps,
List<HistoryReadValueId> readValueIds)
Read history values from nodes belonging to this
AttributeHistoryServices. |
void |
historyUpdate(AttributeHistoryServices.HistoryUpdateContext context,
List<HistoryUpdateDetails> updateDetails)
Update history values in nodes belonging to this
AttributeHistoryServices. |
void |
onCreateDataItem(ReadValueId itemToMonitor,
Double requestedSamplingInterval,
UInteger requestedQueueSize,
BiConsumer<Double,UInteger> revisionCallback)
A
DataItem is being created for a Node managed by this MonitoredItemServices. |
void |
onCreateEventItem(ReadValueId itemToMonitor,
UInteger requestedQueueSize,
Consumer<UInteger> revisionCallback)
An
EventItem is being created for a Node managed by this MonitoredItemServices. |
void |
onDataItemsCreated(List<DataItem> dataItems)
DataItems have been created for nodes belonging to this MonitoredItemServices. |
void |
onDataItemsDeleted(List<DataItem> dataItems)
DataItems have been deleted for nodes belonging to this MonitoredItemServices. |
void |
onDataItemsModified(List<DataItem> dataItems)
DataItems have been modified for nodes belonging to this MonitoredItemServices. |
void |
onEventItemsCreated(List<EventItem> eventItems)
EventItems have been created for nodes belonging to this MonitoredItemServices. |
void |
onEventItemsDeleted(List<EventItem> eventItems)
EventItems have been deleted for nodes belonging to this MonitoredItemServices. |
void |
onEventItemsModified(List<EventItem> eventItems)
EventItems have been modified for nodes belonging to this MonitoredItemServices. |
void |
onModifyDataItem(ReadValueId itemToModify,
Double requestedSamplingInterval,
UInteger requestedQueueSize,
BiConsumer<Double,UInteger> revisionCallback)
A
DataItem is being modified for a Node managed by this MonitoredItemServices. |
void |
onModifyEventItem(ReadValueId itemToModify,
UInteger requestedQueueSize,
Consumer<UInteger> revisionCallback)
An
EventItem is being modified for a Node managed by this MonitoredItemServices. |
void |
onMonitoringModeChanged(List<MonitoredItem> monitoredItems)
MonitoredItems have had their MonitoringMode modified by a client. |
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. |
protected abstract AddressSpace delegate()
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 historyRead(AttributeHistoryServices.HistoryReadContext context, HistoryReadDetails readDetails, TimestampsToReturn timestamps, List<HistoryReadValueId> readValueIds)
AttributeHistoryServicesAttributeHistoryServices.
Complete the operation with AsyncOperationContext.success(Object).
historyRead in interface AttributeHistoryServicescontext - the AttributeHistoryServices.HistoryReadContext.timestamps - requested timestamp values.readValueIds - the values to read.public void historyUpdate(AttributeHistoryServices.HistoryUpdateContext context, List<HistoryUpdateDetails> updateDetails)
AttributeHistoryServicesAttributeHistoryServices.
Complete the operation with AsyncOperationContext.success(Object).
historyUpdate in interface AttributeHistoryServicescontext - the AttributeHistoryServices.HistoryUpdateContext.updateDetails - the values to read.public void call(MethodServices.CallContext context, List<CallMethodRequest> requests)
MethodServicesMethodServices.call in interface MethodServicescontext - the MethodServices.CallContext.requests - The CallMethodRequests for the methods to invoke.public void onCreateDataItem(ReadValueId itemToMonitor, Double requestedSamplingInterval, UInteger requestedQueueSize, BiConsumer<Double,UInteger> revisionCallback)
MonitoredItemServicesDataItem is being created for a Node managed by this MonitoredItemServices.
This is a chance to revise the requested queue size and/or sampling interval.
The sampling interval has already been revised to fit within the configured server limits and to be at least the value of the Minimum Sampling Interval attribute for the Node if it was present.
onCreateDataItem in interface MonitoredItemServicesitemToMonitor - the item that will be monitored.requestedSamplingInterval - the requested sampling interval.requestedQueueSize - the requested queue size.revisionCallback - the callback to invoke to revise the sampling interval and queue size.public void onModifyDataItem(ReadValueId itemToModify, Double requestedSamplingInterval, UInteger requestedQueueSize, BiConsumer<Double,UInteger> revisionCallback)
MonitoredItemServicesDataItem is being modified for a Node managed by this MonitoredItemServices.
This is a chance to revise the requested queue size and/or sampling interval.
The sampling interval has already been revised to fit within the configured server limits and to be at least the value of the Minimum Sampling Interval attribute for the Node if it was present.
onModifyDataItem in interface MonitoredItemServicesitemToModify - the item that will be modified.requestedSamplingInterval - the requested sampling interval.requestedQueueSize - the requested queue size.revisionCallback - the callback to invoke to revise the sampling interval and queue size.public void onCreateEventItem(ReadValueId itemToMonitor, UInteger requestedQueueSize, Consumer<UInteger> revisionCallback)
MonitoredItemServicesEventItem is being created for a Node managed by this MonitoredItemServices.
This is a chance to revise the requested queue size.
onCreateEventItem in interface MonitoredItemServicesitemToMonitor - the item that will be monitored.requestedQueueSize - the requested queue size.revisionCallback - the callback to invoke to revise the queue size.public void onModifyEventItem(ReadValueId itemToModify, UInteger requestedQueueSize, Consumer<UInteger> revisionCallback)
MonitoredItemServicesEventItem is being modified for a Node managed by this MonitoredItemServices.
This is a chance to revise the requested queue size.
onModifyEventItem in interface MonitoredItemServicesitemToModify - the item that will be modified.requestedQueueSize - the requested queue size.revisionCallback - the callback to invoke to revise the queue size.public void onDataItemsCreated(List<DataItem> dataItems)
MonitoredItemServicesDataItems have been created for nodes belonging to this MonitoredItemServices.
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 MonitoredItemServicesdataItems - the DataItems that were created.public void onDataItemsModified(List<DataItem> dataItems)
MonitoredItemServicesDataItems have been modified for nodes belonging to this MonitoredItemServices.
Check to see if the sampling rate has changed or if sampling has been enabled or disabled.
onDataItemsModified in interface MonitoredItemServicesdataItems - the DataItems that were modified.public void onDataItemsDeleted(List<DataItem> dataItems)
MonitoredItemServicesDataItems have been deleted for nodes belonging to this MonitoredItemServices.
Updates to this item should cease and any references to it should be removed.
onDataItemsDeleted in interface MonitoredItemServicesdataItems - the DataItems that were deleted.public void onEventItemsCreated(List<EventItem> eventItems)
MonitoredItemServicesEventItems have been created for nodes belonging to this MonitoredItemServices.onEventItemsCreated in interface MonitoredItemServiceseventItems - the EventItems that were created.public void onEventItemsModified(List<EventItem> eventItems)
MonitoredItemServicesEventItems have been modified for nodes belonging to this MonitoredItemServices.onEventItemsModified in interface MonitoredItemServiceseventItems - the EventItems that were modified.public void onEventItemsDeleted(List<EventItem> eventItems)
MonitoredItemServicesEventItems have been deleted for nodes belonging to this MonitoredItemServices.onEventItemsDeleted in interface MonitoredItemServiceseventItems - the EventItems that were deleted.public void onMonitoringModeChanged(List<MonitoredItem> monitoredItems)
MonitoredItemServicesMonitoredItems have had their MonitoringMode modified by a client.
Check if sampling is still enabled and react accordingly.
onMonitoringModeChanged in interface MonitoredItemServicesmonitoredItems - The MonitoredItems whose MonitoringMode was modified.public void addNodes(NodeManagementServices.AddNodesContext context, List<AddNodesItem> nodesToAdd)
addNodes in interface NodeManagementServicespublic void deleteNodes(NodeManagementServices.DeleteNodesContext context, List<DeleteNodesItem> nodesToDelete)
deleteNodes in interface NodeManagementServicespublic void addReferences(NodeManagementServices.AddReferencesContext context, List<AddReferencesItem> referencesToAdd)
addReferences in interface NodeManagementServicespublic void deleteReferences(NodeManagementServices.DeleteReferencesContext context, List<DeleteReferencesItem> referencesToDelete)
deleteReferences in interface NodeManagementServicespublic void browse(ViewServices.BrowseContext context, NodeId nodeId)
ViewServicesViewServices.browse(BrowseContext, ViewDescription, NodeId) but with a null/empty ViewDescription.browse in interface ViewServicescontext - the ViewServices.BrowseContext.nodeId - the NodeId to browse.public void browse(ViewServices.BrowseContext context, ViewDescription view, 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.view - the ViewDescription.nodeId - the NodeId to browse.public void getReferences(ViewServices.BrowseContext context, ViewDescription view, 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.view - 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 UInteger getViewCount()
ViewServicesViewServices implementation.getViewCount in interface ViewServicesViewServices implementation.Copyright © 2021. All rights reserved.