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 UInteger |
subscriptionId |
protected TimestampsToReturn |
timestamps |
protected boolean |
triggered |
protected Map<UInteger,BaseMonitoredItem<?>> |
triggeredItems |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseMonitoredItem(UInteger id,
UInteger subscriptionId,
ReadValueId readValueId,
MonitoringMode monitoringMode,
TimestampsToReturn timestamps,
UInteger clientHandle,
double samplingInterval,
UInteger queueSize,
boolean discardOldest) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
enqueue(T value) |
long |
getClientHandle() |
abstract ExtensionObject |
getFilterResult() |
UInteger |
getId() |
MonitoringMode |
getMonitoringMode() |
boolean |
getNotifications(List<UaStructure> notifications,
int max) |
int |
getQueueSize() |
ReadValueId |
getReadValueId() |
double |
getSamplingInterval() |
UInteger |
getSubscriptionId() |
TimestampsToReturn |
getTimestampsToReturn() |
Map<UInteger,BaseMonitoredItem<?>> |
getTriggeredItems() |
boolean |
hasNotifications() |
protected abstract void |
installFilter(ExtensionObject filterXo) |
boolean |
isDiscardOldest() |
boolean |
isTriggered() |
void |
modify(TimestampsToReturn timestamps,
UInteger clientHandle,
double samplingInterval,
ExtensionObject filter,
UInteger queueSize,
boolean discardOldest) |
void |
setMonitoringMode(MonitoringMode monitoringMode) |
protected void |
setQueueSize(UInteger queueSize) |
protected abstract UaStructure |
wrapQueueValue(T value) |
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 UInteger id
protected final UInteger subscriptionId
protected final ReadValueId readValueId
protected volatile MonitoringMode monitoringMode
protected volatile TimestampsToReturn timestamps
protected BaseMonitoredItem(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, ExtensionObject filter, UInteger queueSize, boolean discardOldest) throws UaException
UaExceptionprotected abstract void enqueue(T value)
public void setMonitoringMode(MonitoringMode monitoringMode)
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()
protected abstract void installFilter(ExtensionObject filterXo) throws UaException
UaExceptionprotected abstract UaStructure wrapQueueValue(T value)
Copyright © 2018. All rights reserved.