Class OpcUaMonitoredItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA callback that receives notification of new values for anOpcUaMonitoredItem.static interfaceA callback that receives notification of new events for anOpcUaMonitoredItem.static classThe state of the MonitoredItem as it exists on the server, after the recent successful operation.static enum -
Constructor Summary
ConstructorsConstructorDescriptionOpcUaMonitoredItem(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId readValueId) OpcUaMonitoredItem(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId readValueId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger>Get the Client-assigned id for this MonitoredItem.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>Get the result of the most recent CreateMonitoredItems service call, if one has been made.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>Get the result of the most recent DeleteMonitoredItems service call, if one has been made.booleanGet the most recent DiscardOldest this MonitoredItem was configured with.@Nullable org.eclipse.milo.opcua.stack.core.types.structured.MonitoringFilterGet the most recent Filter this MonitoredItem was configured with.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject>Get the filter result structure for the most recently configured monitoring filter.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>Get the result of the most recent ModifyMonitoredItems service call, if one has been made.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger>Get the Server-assigned id for this MonitoredItem.org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringModeGet the current MonitoringMode for this MonitoredItem.org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegerGet the most recent QueueSize this MonitoredItem was configured with.org.eclipse.milo.opcua.stack.core.types.structured.ReadValueIdGet theReadValueIdfor this MonitoredItem.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger>Get the revised QueueSize that the server is using for this MonitoredItem.Get the revised SamplingInterval that the server is using for this MonitoredItem.Get the most recent SamplingInterval this MonitoredItem was configured with.Optional<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>Get the result of the most recent SetMonitoringMode service call, if one has been made.static OpcUaMonitoredItemnewDataItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Create a new MonitoredItem for the Value attribute of the Node identified bynodeId.static OpcUaMonitoredItemnewDataItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode) Create a new MonitoredItem for the Value attribute of the Node identified bynodeId, with the specifiedmonitoringMode.static OpcUaMonitoredItemnewEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId.static OpcUaMonitoredItemnewEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, @Nullable org.eclipse.milo.opcua.stack.core.types.structured.EventFilter eventFilter) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId, with the specifiedeventFilter.static OpcUaMonitoredItemnewEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode, @Nullable org.eclipse.milo.opcua.stack.core.types.structured.EventFilter eventFilter) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId, with the specifiedmonitoringModeandeventFilter.voidsetDataValueListener(@Nullable OpcUaMonitoredItem.DataValueListener listener) Set theOpcUaMonitoredItem.DataValueListenerfor this MonitoredItem.voidsetDiscardOldest(boolean discardOldest) Modify the DiscardOldest parameter for this MonitoredItem.voidsetEventValueListener(@Nullable OpcUaMonitoredItem.EventValueListener listener) Set theOpcUaMonitoredItem.EventValueListenerfor this MonitoredItem.voidsetFilter(@Nullable org.eclipse.milo.opcua.stack.core.types.structured.MonitoringFilter filter) Modify the Filter parameter for this MonitoredItem.voidsetQueueSize(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger queueSize) Modify the QueueSize parameter for this MonitoredItem.voidsetSamplingInterval(double samplingInterval) Set the SamplingInterval parameter for this MonitoredItem.voidsetUserObject(@Nullable Object userObject) Associate an arbitrary user object with this MonitoredItem.
-
Constructor Details
-
OpcUaMonitoredItem
public OpcUaMonitoredItem(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId readValueId) -
OpcUaMonitoredItem
public OpcUaMonitoredItem(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId readValueId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode)
-
-
Method Details
-
setSamplingInterval
public void setSamplingInterval(double samplingInterval) Set the SamplingInterval parameter for this MonitoredItem.This change must be synchronized to the server before it takes effect.
- Parameters:
samplingInterval- the new SamplingInterval parameter value.- See Also:
-
setQueueSize
public void setQueueSize(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger queueSize) Modify the QueueSize parameter for this MonitoredItem.This change must be synchronized to the server before it takes effect.
- Parameters:
queueSize- the new QueueSize parameter value.- See Also:
-
setDiscardOldest
public void setDiscardOldest(boolean discardOldest) Modify the DiscardOldest parameter for this MonitoredItem.This change must be synchronized to the server before it takes effect.
- Parameters:
discardOldest- the new DiscardOldest parameter value.
-
setFilter
public void setFilter(@Nullable org.eclipse.milo.opcua.stack.core.types.structured.MonitoringFilter filter) Modify the Filter parameter for this MonitoredItem.This change must be synchronized to the server before it takes effect.
- Parameters:
filter- the new Filter parameter value.- See Also:
-
getReadValueId
public org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId getReadValueId()Get theReadValueIdfor this MonitoredItem.- Returns:
- the
ReadValueIdfor this MonitoredItem.
-
getClientHandle
public Optional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getClientHandle()Get the Client-assigned id for this MonitoredItem.Present only if the MonitoredItem has been added to a Subscription, see
OpcUaSubscription.addMonitoredItem(OpcUaMonitoredItem).- Returns:
- the Client-assigned id for this MonitoredItem.
-
getMonitoredItemId
public Optional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getMonitoredItemId()Get the Server-assigned id for this MonitoredItem.Present only if the MonitoredItem has been created.
- Returns:
- the Server-assigned id for this MonitoredItem.
-
getSamplingInterval
Get the most recent SamplingInterval this MonitoredItem was configured with.It may differ from the actual SamplingInterval that the server is using, see
getRevisedSamplingInterval().- Returns:
- the most recent SamplingInterval this MonitoredItem was configured with.
-
getQueueSize
public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getQueueSize()Get the most recent QueueSize this MonitoredItem was configured with.It may differ from the actual QueueSize that the server is using, see
getRevisedQueueSize().- Returns:
- the most recent QueueSize this MonitoredItem was configured with.
-
getDiscardOldest
public boolean getDiscardOldest()Get the most recent DiscardOldest this MonitoredItem was configured with.- Returns:
- the most recent DiscardOldest this MonitoredItem was configured with.
-
getFilter
public @Nullable org.eclipse.milo.opcua.stack.core.types.structured.MonitoringFilter getFilter()Get the most recent Filter this MonitoredItem was configured with.- Returns:
- the most recent Filter this MonitoredItem was configured with.
-
getRevisedSamplingInterval
Get the revised SamplingInterval that the server is using for this MonitoredItem.Present only if the MonitoredItem has been created or modified.
- Returns:
- the revised SamplingInterval that the server is using for this MonitoredItem.
-
getRevisedQueueSize
public Optional<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> getRevisedQueueSize()Get the revised QueueSize that the server is using for this MonitoredItem.Present only if the MonitoredItem has been created or modified.
- Returns:
- the revised QueueSize that the server is using for this MonitoredItem.
-
getFilterResult
Get the filter result structure for the most recently configured monitoring filter.- Returns:
- the filter result structure for the most recently configured monitoring filter.
-
getMonitoringMode
public org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode getMonitoringMode()Get the current MonitoringMode for this MonitoredItem.- Returns:
- the current MonitoringMode for this MonitoredItem.
-
getCreateResult
Get the result of the most recent CreateMonitoredItems service call, if one has been made.- Returns:
- the result of the most recent CreateMonitoredItems service call, if one has been made.
-
getModifyResult
Get the result of the most recent ModifyMonitoredItems service call, if one has been made.- Returns:
- the result of the most recent ModifyMonitoredItems service call, if one has been made.
-
getDeleteResult
Get the result of the most recent DeleteMonitoredItems service call, if one has been made.- Returns:
- the result of the most recent DeleteMonitoredItems service call, if one has been made.
-
getSetMonitoringModeResult
public Optional<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> getSetMonitoringModeResult()Get the result of the most recent SetMonitoringMode service call, if one has been made.- Returns:
- the result of the most recent SetMonitoringMode service call, if one has been made.
-
setDataValueListener
Set theOpcUaMonitoredItem.DataValueListenerfor this MonitoredItem.- Parameters:
listener- theOpcUaMonitoredItem.DataValueListenerfor this MonitoredItem.
-
setEventValueListener
Set theOpcUaMonitoredItem.EventValueListenerfor this MonitoredItem.- Parameters:
listener- theOpcUaMonitoredItem.EventValueListenerfor this MonitoredItem.
-
setUserObject
Associate an arbitrary user object with this MonitoredItem.- Parameters:
userObject- the user object to associate with this MonitoredItem.
-
getUserObject
- Returns:
- the user object associated with this MonitoredItem.
-
getSyncState
- Returns:
- the current
OpcUaMonitoredItem.SyncStateof this MonitoredItem.
-
getServerState
- Returns:
- the current
OpcUaMonitoredItem.ServerStateof this MonitoredItem, if it exists on the server.
-
newDataItem
public static OpcUaMonitoredItem newDataItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Create a new MonitoredItem for the Value attribute of the Node identified bynodeId.This item will not exist on the server until it has been added to an
OpcUaSubscriptionand the subscription has been synchronized.- Parameters:
nodeId- theNodeIdof the Node to monitor.- Returns:
- a new MonitoredItem for the Value attribute of the Node identified by
nodeId. - See Also:
-
newDataItem
public static OpcUaMonitoredItem newDataItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode) Create a new MonitoredItem for the Value attribute of the Node identified bynodeId, with the specifiedmonitoringMode.This item will not exist on the server until it has been added to an
OpcUaSubscriptionand the subscription has been synchronized.- Parameters:
nodeId- theNodeIdof the Node to monitor.monitoringMode- the initialMonitoringModeto use when the MonitoredItem is created.- Returns:
- a new MonitoredItem for the Value attribute of the Node identified by
nodeId, with the specifiedmonitoringMode. - See Also:
-
newEventItem
public static OpcUaMonitoredItem newEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId.This item will not exist on the server until it has been added to an
OpcUaSubscriptionand the subscription has been synchronized.- Parameters:
nodeId- theNodeIdof the Node to monitor.- Returns:
- a new MonitoredItem for the EventNotifier attribute of the Node identified by
nodeId. - See Also:
-
newEventItem
public static OpcUaMonitoredItem newEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, @Nullable org.eclipse.milo.opcua.stack.core.types.structured.EventFilter eventFilter) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId, with the specifiedeventFilter.This item will not exist on the server until it has been added to an
OpcUaSubscriptionand the subscription has been synchronized.- Parameters:
nodeId- theNodeIdof the Node to monitor.eventFilter- theEventFilterto use for the MonitoredItem.- Returns:
- a new MonitoredItem for the EventNotifier attribute of the Node identified by
nodeId, with the specifiedeventFilter. - See Also:
-
newEventItem
public static OpcUaMonitoredItem newEventItem(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode, @Nullable org.eclipse.milo.opcua.stack.core.types.structured.EventFilter eventFilter) Create a new MonitoredItem for the EventNotifier attribute of the Node identified bynodeId, with the specifiedmonitoringModeandeventFilter.This item will not exist on the server until it has been added to an
OpcUaSubscriptionand the subscription has been synchronized.- Parameters:
nodeId- theNodeIdof the Node to monitor.monitoringMode- the initialMonitoringModeto use when the MonitoredItem is created.eventFilter- theEventFilterto use for the MonitoredItem.- Returns:
- a new MonitoredItem for the EventNotifier attribute of the Node identified by
nodeId, with the specifiedmonitoringModeandeventFilter. - See Also:
-