|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.server.io.IoManagerAdapter
public class IoManagerAdapter
Adapter pattern for IoManagerListener. Override the methods you want to handle in this
listener.
| Constructor Summary | |
|---|---|
IoManagerAdapter()
|
|
| Method Summary | |
|---|---|
EnumSet<org.opcfoundation.ua.core.AccessLevel> |
onGetUserAccessLevel(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaVariable node)
Notification of a read request for user access level attribute of a node. |
Boolean |
onGetUserExecutable(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaMethod node)
Notification of a read request for user executable attribute of a node. |
EnumSet<WriteAccess> |
onGetUserWriteMask(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
Notification of a read request for user write mask attribute of a node. |
boolean |
onReadNonValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Notification of a read request for a node attribute, except for the Value attribute of a variable node (which goes to onReadValue). |
boolean |
onReadValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode variable,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.DateTime minTimestamp,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Notification of a read request for the Value attribute of a Variable node. |
boolean |
onWriteNonValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Notification of a write request for the value of a single node attribute, except for the Value of a variable node. |
boolean |
onWriteValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode valueNode,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Notification of a write request for the Value attribute of a Variable node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IoManagerAdapter()
| Method Detail |
|---|
public EnumSet<org.opcfoundation.ua.core.AccessLevel> onGetUserAccessLevel(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaVariable node)
IoManagerListener
onGetUserAccessLevel in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to read.node - The node object to read. If the node is not available this may be null.
public Boolean onGetUserExecutable(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaMethod node)
IoManagerListener
onGetUserExecutable in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to read.node - The node object to read. If the node is not available this may be null.
public EnumSet<WriteAccess> onGetUserWriteMask(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
IoManagerListener
onGetUserWriteMask in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to read.node - The node object to read. If the node is not available this may be null.
public boolean onReadNonValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
IoManagerListener
onReadNonValue in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to read.node - The node object to read. If the node is not available this may be null.attributeId - The attribute to read.dataValue - The data value being returned.
StatusException - Throw the exception to cancel the request, for example
due to insufficient user rights. Possible result codes: Bad_NodeIdInvalid,
Bad_NodeIdUnknown, Bad_AttributeIdInvalid, Bad_NotReadable, Bad_UserAccessDenied
public boolean onReadValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode variable,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.DateTime minTimestamp,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
IoManagerListener
onReadValue in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to read.variable - The node object to read. If the node is not available this may be null.indexRange - The requested index range for an array value. May be null.timestampsToReturn - Which timestamps were requested by the client.minTimestamp - Minimum value of the ServerTimestamp of the value to be read. If there is
no value available that is new enough already available (in the server cache), the
server should attempt to read a new value from the actual data source, instead of using
the cached value. If a new value cannot be read, the best value available is returned.
If minTimestamp == DateTime.MAX_VALUE a new value should be read from the source.dataValue - The data value to return. Set Value, and for Value attribute also StatusCode
and the Timestamps.
StatusException - Throw the exception to cancel the request, for example due to
insufficient user rights. Possible result codes: Bad_NodeIdInvalid, Bad_NodeIdUnknown,
Bad_IndexRangeInvalid, Bad_IndexRangeNoData, Bad_NotReadable, Bad_UserAccessDenied
public boolean onWriteNonValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
IoManagerListener
onWriteNonValue in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to write.node - The node object to write. If the node is not available this may be null.attributeId - The attribute to write.dataValue - The data value to write.
StatusException - If the write fails. Expected result codes: Bad_NodeIdInvalid,
Bad_NodeIdUnknown, Bad_AttributeIdInvalid, Bad_IndexRangeInvalid, Bad_IndexRangeNoData,
Bad_DataEncodingInvalid, Bad_DataEncodingUnsupported, Bad_NotWriteable,
Bad_UserAccessDenied, Bad_TypeMismatch
public boolean onWriteValue(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode valueNode,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
IoManagerListener
onWriteValue in interface IoManagerListenerserviceContext - The serviceContext of the client connection used to call this service.nodeId - The node to write.valueNode - The node object to write. If the node is not available this may be null.indexRange - The index range to set for an array value. May be null.dataValue - The data value to write.
StatusException - If the write fails. Expected result codes: Bad_NodeIdInvalid,
Bad_NodeIdUnknown, Bad_AttributeIdInvalid, Bad_IndexRangeInvalid, Bad_IndexRangeNoData,
Bad_DataEncodingInvalid, Bad_DataEncodingUnsupported, Bad_NotWriteable,
Bad_UserAccessDenied, Bad_OutOfRange, Bad_TypeMismatch, Bad_WriteNotSupported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||