public abstract class BaseMonitoredItem<T> extends Object implements MonitoredItem
| Modifier and Type | Field and Description |
|---|---|
protected long |
clientHandle |
protected boolean |
discardOldest |
protected UInteger |
id |
protected MonitoringMode |
monitoringMode |
protected RingBuffer<T> |
queue |
protected int |
queueSize |
protected ReadValueId |
readValueId |
protected double |
samplingInterval |
protected OpcUaServer |
server |
protected Session |
session |
protected UInteger |
subscriptionId |
protected TimestampsToReturn |
timestamps |
protected boolean |
triggered |
protected Map<UInteger,BaseMonitoredItem<?>> |
triggeredItems |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseMonitoredItem(OpcUaServer server,
Session session,
UInteger id,
UInteger subscriptionId,
ReadValueId readValueId,
MonitoringMode monitoringMode,
TimestampsToReturn timestamps,
UInteger clientHandle,
double samplingInterval,
UInteger queueSize,
boolean discardOldest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSamplingEnabledprotected volatile Map<UInteger,BaseMonitoredItem<?>> triggeredItems
protected volatile boolean triggered
protected volatile RingBuffer<T> queue
protected volatile long clientHandle
protected volatile int queueSize
protected volatile double samplingInterval
protected volatile boolean discardOldest
protected final OpcUaServer server
protected volatile Session session
protected final UInteger id
protected final UInteger subscriptionId
protected final ReadValueId readValueId
protected volatile MonitoringMode monitoringMode
protected volatile TimestampsToReturn timestamps
protected BaseMonitoredItem(OpcUaServer server, Session session, UInteger id, UInteger subscriptionId, ReadValueId readValueId, MonitoringMode monitoringMode, TimestampsToReturn timestamps, UInteger clientHandle, double samplingInterval, UInteger queueSize, boolean discardOldest)
protected void setQueueSize(UInteger queueSize)
public boolean getNotifications(List<UaStructure> notifications, int max)
public boolean hasNotifications()
public void modify(TimestampsToReturn timestamps, UInteger clientHandle, double samplingInterval, MonitoringFilter filter, UInteger queueSize, boolean discardOldest) throws UaException
UaExceptionprotected abstract void enqueue(T value)
public void setMonitoringMode(MonitoringMode monitoringMode)
public void setSession(Session session)
public Session getSession()
getSession in interface MonitoredItemSession that owned the subscription this item belongs to.public UInteger getId()
getId in interface MonitoredItempublic UInteger getSubscriptionId()
getSubscriptionId in interface MonitoredItemSubscription this item belongs to.public ReadValueId getReadValueId()
getReadValueId in interface MonitoredItemReadValueId being monitored.public TimestampsToReturn getTimestampsToReturn()
getTimestampsToReturn in interface MonitoredItemTimestampsToReturn.public long getClientHandle()
public int getQueueSize()
public double getSamplingInterval()
public boolean isDiscardOldest()
public MonitoringMode getMonitoringMode()
public Map<UInteger,BaseMonitoredItem<?>> getTriggeredItems()
public boolean isTriggered()
public abstract ExtensionObject getFilterResult()
public abstract void installFilter(MonitoringFilter filter) throws UaException
UaExceptionprotected abstract UaStructure wrapQueueValue(T value)
Copyright © 2021. All rights reserved.