|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.MonitoredItemBase
com.prosysopc.ua.server.MonitoredItem
public abstract class MonitoredItem
An OPC UA server side MonitoredItem definition, used by the server side Subscription.
| Field Summary | |
|---|---|
protected List<MonitoredItem> |
links
|
protected UaNode |
node
|
protected Subscription |
subscription
|
| Fields inherited from class com.prosysopc.ua.MonitoredItemBase |
|---|
attributeId, clientHandle, dataEncoding, discardOldest, maxQueueSize, monitoredItemId, monitoringMode, nodeId, queueSize |
| Constructor Summary | |
|---|---|
MonitoredItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.UnsignedInteger monitoredItemId,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
|
|
| Method Summary | |
|---|---|
protected void |
addLink(MonitoredItem linkToAdd)
|
void |
close()
Close down the monitoredItem, i.e. unplug the NodeListener. |
boolean |
equals(Object obj)
|
static int |
getMaxQueueSize()
The maximum size of the queue of MonitoredItems. |
UaNode |
getNode()
|
ServiceContext |
getServiceContext()
The service context that was used to create or modify the item. |
Subscription |
getSubscription()
|
org.opcfoundation.ua.core.TimestampsToReturn |
getTimestampsToReturn()
An enumeration that specifies the time stamp Attributes to be transmitted for each MonitoredItem. |
int |
hashCode()
|
protected void |
monitoringModeChanged()
|
protected void |
plugNodeListener()
|
protected void |
removeLink(MonitoredItem linkToRemove)
Removes a link |
protected void |
setClientHandle(org.opcfoundation.ua.builtintypes.UnsignedInteger clientHandle)
Client-supplied ID of the MonitoredItem. |
protected void |
setFilter(org.opcfoundation.ua.core.MonitoringFilter filter)
A filter used by the Server to determine if the MonitoredItem should generate a Notification. |
protected void |
setFilterResult(org.opcfoundation.ua.core.MonitoringFilterResult filterResult)
|
static void |
setMaxQueueSize(int maxQueueSize)
Define the maximum size of the queue of each MonitoredItem. |
protected void |
setNode(UaNode node)
|
protected void |
setServiceContext(ServiceContext serviceContext)
|
protected void |
setTimestampsToReturn(org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn)
|
protected void |
unPlugNodeListener()
|
| Methods inherited from class com.prosysopc.ua.MonitoredItemBase |
|---|
getAttributeId, getClientHandle, getDataEncoding, getDefaultQueueSize, getFilter, getFilterResult, getIndexRange, getMonitoredItemId, getMonitoringMode, getNodeId, getQueueSize, getSamplingInterval, isDiscardOldest, setDiscardOldest, setMonitoredItemId, setMonitoringMode, setQueueSize, setQueueSize, toString, updateFilter, updateQueue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<MonitoredItem> links
protected UaNode node
protected final Subscription subscription
| Constructor Detail |
|---|
public MonitoredItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.UnsignedInteger monitoredItemId,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
serviceContext - monitoredItemId - nodeId - attributeId - indexRange - dataEncoding - monitoringMode - | Method Detail |
|---|
public static int getMaxQueueSize()
public static void setMaxQueueSize(int maxQueueSize)
Default: 1000000
maxQueueSize - the maxQueueSize to set, must be bigger than 0public void close()
close in class MonitoredItemBasepublic boolean equals(Object obj)
equals in class MonitoredItemBasepublic UaNode getNode()
public ServiceContext getServiceContext()
public Subscription getSubscription()
public org.opcfoundation.ua.core.TimestampsToReturn getTimestampsToReturn()
When monitoring Events, this applies only to Event fields that are of type DataValue.
public int hashCode()
hashCode in class MonitoredItemBaseprotected void addLink(MonitoredItem linkToAdd)
protected void monitoringModeChanged()
throws ServiceException
monitoringModeChanged in class MonitoredItemBaseServiceExceptionprotected void plugNodeListener()
protected void removeLink(MonitoredItem linkToRemove)
throws StatusException
linkToRemove -
StatusExceptionprotected void setClientHandle(org.opcfoundation.ua.builtintypes.UnsignedInteger clientHandle)
clientHandle -
protected final void setFilter(org.opcfoundation.ua.core.MonitoringFilter filter)
throws ServiceException
MonitoredItemBaseDataChangeFilter
| The change in a data value that will cause a Notification to be generated.
| EventFilter
| If a Notification conforms to the EventFilter, the Notification is sent to the Client.
| AggregateFilter
| The aggregate and its intervals when it will be calculated and a Notification is generated.
| |
setFilter in class MonitoredItemBaseServiceExceptionprotected void setFilterResult(org.opcfoundation.ua.core.MonitoringFilterResult filterResult)
setFilterResult in class MonitoredItemBasefilterResult - protected void setNode(UaNode node)
node - protected void setServiceContext(ServiceContext serviceContext)
protected void setTimestampsToReturn(org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn)
timestampsToReturn - protected void unPlugNodeListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||