#include <uasubscription.h>
Public Types | |
enum | State { CLOSED, CREATING, NORMAL, LATE, KEEPALIVE } |
Subscription state enumeration. More... | |
Public Member Functions | |
UaSubscription (UaSession *pSession, ServerManager *pServerManager, OpcUa_Double publishingInterval, OpcUa_UInt32 &lifetimeCount, OpcUa_UInt32 maxKeepAliveCount, OpcUa_UInt32 maxRetransmitionQueueSize, OpcUa_UInt32 maxNotificationPerPublish, OpcUa_Boolean publishingEnabled, OpcUa_Byte priority) | |
virtual void | setPublishingMode (OpcUa_Boolean publishingEnabled) |
virtual void | modifySubscription (OpcUa_Double publishingInterval, OpcUa_UInt32 &lifetimeCount, OpcUa_UInt32 maxKeepAliveCount, OpcUa_UInt32 maxNotificationPerPublish, OpcUa_Byte priority) |
virtual UaStatus | close (OpcUa_Boolean calledFromSessionClose=OpcUa_False) |
virtual UaStatus | transfer (UaSession *pSession, OpcUa_Boolean sendInitialValues, UaUInt32Array &availableSequenceNumbers) |
virtual UaStatus | beginCreateMonitoredItems (UaCreateMonitoredItemsContext *pUaCreateMonitoredItemsContext) |
virtual UaStatus | beginModifyMonitoredItems (UaModifyMonitoredItemsContext *pUaModifyMonitoredItemsContext) |
virtual UaStatus | beginSetMonitoringMode (UaSetMonitoringModeContext *pUaSetMonitoringModeContext) |
virtual UaStatus | setTriggering (OpcUa_UInt32 triggeringItemId, const UaUInt32Array &linksToAdd, const UaUInt32Array &linksToRemove, UaStatusCodeArray &addResults, UaStatusCodeArray &removeResults) |
virtual UaStatus | beginDeleteMonitoredItems (UaDeleteMonitoredItemsContext *pUaDeleteMonitoredItemsContext) |
virtual void | createMonitoredItemsFinished (OpcUa_CreateMonitoredItemsRequest *, const UaMonitoredItemCreateResults &) |
virtual void | modifyMonitoredItemsFinished (OpcUa_ModifyMonitoredItemsRequest *, const UaMonitoredItemModifyResults &) |
virtual void | setMonitoringModeFinished (OpcUa_SetMonitoringModeRequest *, const UaStatusCodeArray &) |
virtual void | deleteMonitoredItemsFinished (OpcUa_DeleteMonitoredItemsRequest *, const UaStatusCodeArray &) |
UaStatus | beginConditionRefresh (const ServiceContext &serviceContext) |
void | dynamicEventManagerRegistered (EventManager *pEventManager) |
virtual UaStatus | publish (UaPublishContext *pUaPublishContext, OpcUa_Boolean &hasMoreNotifications) |
virtual UaStatus | republish (UaRepublishContext *pUaRepublishContext) |
virtual OpcUa_UInt32 | checkPublishTimer (OpcUa_Boolean &doCheckAvailableNotifications) |
virtual void | checkAvailableNotifications () |
OpcUa_StatusCode | ackNotification (OpcUa_UInt32 sequenceNumber) |
void | setThreadPool (UaThreadPool *pThreadPool) |
void | setSubscriptionId (OpcUa_UInt32 subscriptionId) |
OpcUa_UInt32 | subscriptionId () const |
OpcUa_Double | publishingInterval () const |
OpcUa_UInt32 | lifetimeCount () const |
OpcUa_UInt32 | keepAliveCount () const |
UaStatus | finishRead (OpcUa_UInt32, OpcUa_UInt32, UaDataValue &, OpcUa_Boolean, OpcUa_Boolean, UaDiagnosticInfo *) |
UaStatus | finishWrite (OpcUa_UInt32, OpcUa_UInt32, const UaStatus &, OpcUa_Boolean) |
UaStatus | finishStartMonitoring (OpcUa_UInt32 hTransaction, OpcUa_UInt32 callbackHandle, OpcUa_UInt32 hIOVariable, OpcUa_Double revisedSamplingInterval, OpcUa_Boolean initialDataValueAvailable, const UaDataValue &initialDataValue, const UaStatus &statusCode) |
UaStatus | finishModifyMonitoring (OpcUa_UInt32 hTransaction, OpcUa_UInt32 callbackHandle, OpcUa_Double revisedSamplingInterval, const UaStatus &statusCode) |
UaStatus | finishStopMonitoring (OpcUa_UInt32 hTransaction, OpcUa_UInt32 callbackHandle, const UaStatus &statusCode) |
UaStatus | finishRead (OpcUa_UInt32, OpcUa_UInt32, OpcUa_Boolean) |
UaStatus | finishWrite (OpcUa_UInt32, OpcUa_UInt32, OpcUa_Boolean) |
UaStatus | finishStartMonitoring (OpcUa_UInt32 hTransaction, OpcUa_Boolean allowThreadUse, const UaUInt32Array &callbackHandles, const UaUInt32Array &hIOVariableArray, const UaDoubleArray &revisedSamplingIntervalArray, const UaStatusCodeArray &resultArray) |
UaStatus | finishModifyMonitoring (OpcUa_UInt32 hTransaction, OpcUa_Boolean allowThreadUse, const UaUInt32Array &callbackHandles, const UaDoubleArray &revisedSamplingIntervalArray, const UaStatusCodeArray &resultArray) |
UaStatus | finishStopMonitoring (OpcUa_UInt32 hTransaction, OpcUa_Boolean allowThreadUse, const UaUInt32Array &callbackHandles, const UaStatusCodeArray &resultArray) |
UaStatus | finishStartMonitoring (OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32, OpcUa_Double, const UaStatus &, OpcUa_EventFilterResult *) |
UaStatus | finishModifyMonitoring (OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32, OpcUa_Double, const UaStatus &, OpcUa_EventFilterResult *) |
UaStatus | finishStopMonitoring (OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32, const UaStatus &) |
Protected Member Functions | |
virtual | ~UaSubscription () |
Class implementing the OPC UA subscription object. It manages all subscription relevant settings including the lifetime of the subscription. The object is reference counted and can not be deleted directly.
UaSubscription::~UaSubscription | ( | ) | [protected, virtual] |
destruction
UaSubscription::UaSubscription | ( | UaSession * | pSession, |
ServerManager * | pServerManager, | ||
OpcUa_Double | publishingInterval, | ||
OpcUa_UInt32 & | lifetimeCount, | ||
OpcUa_UInt32 | maxKeepAliveCount, | ||
OpcUa_UInt32 | maxRetransmitionQueueSize, | ||
OpcUa_UInt32 | maxNotificationPerPublish, | ||
OpcUa_Boolean | publishingEnabled, | ||
OpcUa_Byte | priority | ||
) |
construction
pSession | Interface to the Session context for the method call |
pServerManager | a pointer to the root ServerManager. |
publishingInterval | publishing interval in milliseconds the server allows |
lifetimeCount | a count for the the actual lifetime. |
maxKeepAliveCount | the maximum of Time to keep the Session alive. |
maxRetransmitionQueueSize | the maximum number of notification messages queued for retransmittion. |
maxNotificationPerPublish | the maximum of notification per Publish. |
publishingEnabled | indicates if publishing is enabled or not. |
priority | the priority of the operation. |
OpcUa_StatusCode UaSubscription::ackNotification | ( | OpcUa_UInt32 | sequenceNumber ) |
Achnowledge and delete a notification message.
sequenceNumber | The sequence number of the ackloedged notification |
UaStatus UaSubscription::beginConditionRefresh | ( | const ServiceContext & | serviceContext ) |
Refresh condition state for the subscription.
serviceContext | Service context for the call. |
UaStatus UaSubscription::beginCreateMonitoredItems | ( | UaCreateMonitoredItemsContext * | pUaCreateMonitoredItemsContext ) | [virtual] |
Create new monitored items.
pUaCreateMonitoredItemsContext | the context of the items to create. |
List of objects to store a subset of the data for a IOManager
UaStatus UaSubscription::beginDeleteMonitoredItems | ( | UaDeleteMonitoredItemsContext * | pUaDeleteMonitoredItemsContext ) | [virtual] |
Delete monitored items.
pUaDeleteMonitoredItemsContext | the context of the monitored items to delete. |
List of objects to store a subset of the data for an IOManager
UaStatus UaSubscription::beginModifyMonitoredItems | ( | UaModifyMonitoredItemsContext * | pUaModifyMonitoredItemsContext ) | [virtual] |
Modify monitored items.
pUaModifyMonitoredItemsContext | the context for the monitored items to modify. |
List of objects to store a subset of the data for a IOManager
UaStatus UaSubscription::beginSetMonitoringMode | ( | UaSetMonitoringModeContext * | pUaSetMonitoringModeContext ) | [virtual] |
Set monitoring mode of monitored items.
pUaSetMonitoringModeContext | the monitored context of the item to modify. |
List of objects to store a subset of the data for a IOManager
void UaSubscription::checkAvailableNotifications | ( | ) | [virtual] |
Check if notifications are available.
OpcUa_UInt32 UaSubscription::checkPublishTimer | ( | OpcUa_Boolean & | doCheckAvailableNotifications ) | [virtual] |
Check if the publish timer expired and returns the remaining time in milliseconds to the next event.
doCheckAvailableNotifications | if true, checks if there are notifications available. |
UaStatus UaSubscription::close | ( | OpcUa_Boolean | calledFromSessionClose = OpcUa_False ) |
[virtual] |
Close subscription.
calledFromSessionClose | true if session closed false if not. |
List of objects to store a subset of the data for a IOManager
virtual void UaSubscription::createMonitoredItemsFinished | ( | OpcUa_CreateMonitoredItemsRequest * | , |
const UaMonitoredItemCreateResults & | |||
) | [inline, virtual] |
Event for derived class after create monitored items is finished
virtual void UaSubscription::deleteMonitoredItemsFinished | ( | OpcUa_DeleteMonitoredItemsRequest * | , |
const UaStatusCodeArray & | |||
) | [inline, virtual] |
Event for derived class after delete monitored items is finished
void UaSubscription::dynamicEventManagerRegistered | ( | EventManager * | pEventManager ) |
Executes the registration of a new EventManager added to the server.
pEventManager | EventManager to register with this call |
UaStatus UaSubscription::finishModifyMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
OpcUa_Double | revisedSamplingInterval, | ||
const UaStatus & | statusCode | ||
) | [virtual] |
Finished modifying monitoring of a data item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginModifyMonitoring method. |
revisedSamplingInterval | The corresponding revised sampling interval for the requested sampling interval in beginStartMonitoring. |
statusCode | Result of the finishModifyMonitoring operation. |
Implements IOManagerCallback.
UaStatus UaSubscription::finishModifyMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_Boolean | allowThreadUse, | ||
const UaUInt32Array & | callbackHandles, | ||
const UaDoubleArray & | revisedSamplingIntervalArray, | ||
const UaStatusCodeArray & | resultArray | ||
) | [virtual] |
Finish callback for IOManager2.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
allowThreadUse | Indicates if the calling thread can be used by the SDK to send the response to the client. This can happen if this method is the called for the last node in the transaction. True: The thread calling this method can be used to send the response and may block False: The SDK is using a worker thread to send the response to the client. |
callbackHandles | Handle for the node in the callback. This handle was passed in to the IOManager with the beginRead method. |
revisedSamplingIntervalArray | The array of revised sampling intervals for the created items. |
resultArray | Result of the finishStartMonitoring operation. |
Implements IOManager2Callback.
UaStatus UaSubscription::finishModifyMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
OpcUa_UInt32 | eventManagerIndex, | ||
OpcUa_Double | revisedSamplingInterval, | ||
const UaStatus & | statusCode, | ||
OpcUa_EventFilterResult * | pEventFilterResult | ||
) | [virtual] |
Finished modifying monitoring of an event item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginModifyMonitoring method. |
eventManagerIndex | an Index of different EventManagers. |
revisedSamplingInterval | The corresponding revised sampling interval for the requested sampling interval in beginStartMonitoring. |
statusCode | Result of the finishModifyMonitoring operation. |
pEventFilterResult | The resulted status code of the filtered events |
Implements EventManagerCallback.
UaStatus UaSubscription::finishRead | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
UaDataValue & | dataValue, | ||
OpcUa_Boolean | detachValue, | ||
OpcUa_Boolean | allowThreadUse, | ||
UaDiagnosticInfo * | pDiagnosticInfo | ||
) | [inline, virtual] |
Finished reading of an attribute value of a node. The method is called to finish a read call for an attribute value of a node. The read is started with the beginRead method of the interface IOManager.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginRead method. |
dataValue | Contains the value, timestamps and result code for the Read operation. |
detachValue | Indicates if the method can detach the value from the wrapper class. |
allowThreadUse | Indicates if the calling thread can be used by the SDK to send the response to the client. This can happen if this method is the called for the last node in the transaction. True: The thread calling this method can be used to send the response and may block False: The SDK is using a worker thread to send the response to the client. |
pDiagnosticInfo | Optional diagnostig information requested by the client in the parameter ServiceContext::returnDiagnostics of IOManager::beginTransaction |
Implements IOManagerCallback.
UaStatus UaSubscription::finishRead | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | processedCount, | ||
OpcUa_Boolean | allowThreadUse | ||
) | [inline, virtual] |
Finished read transaction for IOManager2 nodes.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager2 with the beginRead method. |
processedCount | Number of processed items |
allowThreadUse | Indicates if the calling thread can be used to send the response if this is the callback for the last nodes in the transaction. |
Implements IOManager2Callback.
UaStatus UaSubscription::finishStartMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
OpcUa_UInt32 | hIOVariable, | ||
OpcUa_Double | revisedSamplingInterval, | ||
OpcUa_Boolean | initialDataValueAvailable, | ||
const UaDataValue & | initialDataValue, | ||
const UaStatus & | statusCode | ||
) | [virtual] |
Finished transaction to start monitoring a data item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginStartMonitoring method. |
hIOVariable | The handle of the variable in the IOManager created with beginStartMonitoring. The handle was passed to the SDK in the callback finishStartMonitoring. |
revisedSamplingInterval | The corresponding revised sampling interval for the requested sampling interval in beginStartMonitoring. |
initialDataValueAvailable | the available initial data value. |
initialDataValue | the actual data value. |
statusCode | Result of the finishStartMonitoring operation. |
Implements IOManagerCallback.
UaStatus UaSubscription::finishStartMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_Boolean | allowThreadUse, | ||
const UaUInt32Array & | callbackHandles, | ||
const UaUInt32Array & | hIOVariableArray, | ||
const UaDoubleArray & | revisedSamplingIntervalArray, | ||
const UaStatusCodeArray & | resultArray | ||
) | [virtual] |
Finish callback for IOManager2.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
allowThreadUse | Indicates if the calling thread can be used by the SDK to send the response to the client. This can happen if this method is the called for the last node in the transaction. True: The thread calling this method can be used to send the response and may block False: The SDK is using a worker thread to send the response to the client. |
callbackHandles | Handle for the node in the callback. This handle was passed in to the IOManager with the beginRead method. |
hIOVariableArray | The array of handles for the items created by the the IOManager2 in beginStartMonitoring. |
revisedSamplingIntervalArray | The array of revised sampling intervals for the created items. |
resultArray | Result of the finishStartMonitoring operation. |
Implements IOManager2Callback.
UaStatus UaSubscription::finishStartMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
OpcUa_UInt32 | eventManagerIndex, | ||
OpcUa_UInt32 | hEventItem, | ||
OpcUa_Double | revisedSamplingInterval, | ||
const UaStatus & | statusCode, | ||
OpcUa_EventFilterResult * | pEventFilterResult | ||
) | [virtual] |
Finished transaction to start monitoring an event item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginModifyMonitoring method. |
eventManagerIndex | an Index of different EventManagers. |
hEventItem | an EventItem used to fire an Event. |
revisedSamplingInterval | The corresponding revised sampling interval for the requested sampling interval in beginStartMonitoring. |
statusCode | Result of the finishStartMonitoring operation. |
pEventFilterResult | The resulted status code of the filtered events |
Implements EventManagerCallback.
UaStatus UaSubscription::finishStopMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
const UaStatus & | statusCode | ||
) | [virtual] |
Finished stopping monitoring of an data item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginModifyMonitoring method. |
statusCode | Result of the finishStopMonitoring operation. |
Implements IOManagerCallback.
UaStatus UaSubscription::finishStopMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
OpcUa_UInt32 | , | ||
const UaStatus & | statusCode | ||
) | [virtual] |
Finished stopping monitoring of an event item.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginModifyMonitoring method. |
eventManagerIndex | an Index of different EventManagers. |
statusCode | Result of the finishStopMonitoring operation. |
Implements EventManagerCallback.
UaStatus UaSubscription::finishStopMonitoring | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_Boolean | allowThreadUse, | ||
const UaUInt32Array & | callbackHandles, | ||
const UaStatusCodeArray & | resultArray | ||
) | [virtual] |
Finish callback for IOManager2.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
allowThreadUse | Indicates if the calling thread can be used by the SDK to send the response to the client. This can happen if this method is the called for the last node in the transaction. True: The thread calling this method can be used to send the response and may block False: The SDK is using a worker thread to send the response to the client. |
callbackHandles | Handle for the node in the callback. This handle was passed in to the IOManager with the beginRead method. |
resultArray | Result of the finishStartMonitoring operation. |
Implements IOManager2Callback.
UaStatus UaSubscription::finishWrite | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | callbackHandle, | ||
const UaStatus & | statusCode, | ||
OpcUa_Boolean | allowThreadUse | ||
) | [inline, virtual] |
Finished writing of an attribute value of a node. The method is called to finish a write call for an attribute value of a node. The write is started with the beginWrite method of the interface IOManager.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager with the beginTransaction method. |
callbackHandle | Handle for the node in the callback. This handle was passed in to the IOManager with the beginWrite method. |
statusCode | Result of the Write operation. |
allowThreadUse | Indicates if the calling thread can be used by the SDK to send the response to the client. This can happen if this method is the called for the last node in the transaction. True: The thread calling this method can be used to send the response and may block False: The SDK is using a worker thread to send the response to the client. |
Implements IOManagerCallback.
UaStatus UaSubscription::finishWrite | ( | OpcUa_UInt32 | hTransaction, |
OpcUa_UInt32 | processedCount, | ||
OpcUa_Boolean | allowThreadUse | ||
) | [inline, virtual] |
Finished write transaction for IOManager2 nodes.
hTransaction | Handle for the transaction used by the SDK to identify the transaction in the callbacks. This handle was passed in to the IOManager2 with the beginWrite method. |
processedCount | Number of processed items |
allowThreadUse | Indicates if the calling thread can be used to send the response if this is the callback for the last nodes in the transaction. |
Implements IOManager2Callback.
OpcUa_UInt32 UaSubscription::keepAliveCount | ( | ) | const [inline] |
Returns the keep alive count of the Subscription When the publishing timer has expired this number of times without requiring any NotificationMessage to be sent, the Subscription sends an empty keep-alive message to the Client.
OpcUa_UInt32 UaSubscription::lifetimeCount | ( | ) | const [inline] |
Returns the lifetime count of the Subscription When the publishing timer has expired this number of times without a publish request being available to send a NotificationMessage, then the subscription will be deleted by the server
virtual void UaSubscription::modifyMonitoredItemsFinished | ( | OpcUa_ModifyMonitoredItemsRequest * | , |
const UaMonitoredItemModifyResults & | |||
) | [inline, virtual] |
Event for derived class after delete monitored items is finished
void UaSubscription::modifySubscription | ( | OpcUa_Double | publishingInterval, |
OpcUa_UInt32 & | lifetimeCount, | ||
OpcUa_UInt32 | maxKeepAliveCount, | ||
OpcUa_UInt32 | maxNotificationPerPublish, | ||
OpcUa_Byte | priority | ||
) | [virtual] |
Modify the subscription settings.
publishingInterval | publishing interval in milliseconds the server allows |
lifetimeCount | a count for the the actual lifetime. |
maxKeepAliveCount | the maximum of Time to keep the Session alive. |
maxNotificationPerPublish | the maximum of notification per Publish. |
priority | the priority of the operation. |
UaStatus UaSubscription::publish | ( | UaPublishContext * | pUaPublishContext, |
OpcUa_Boolean & | hasMoreNotifications | ||
) | [virtual] |
Publish the notification message.
pUaPublishContext | the context of the published notification. |
hasMoreNotifications | indicates if there are more notifications in the message. |
OpcUa_Double UaSubscription::publishingInterval | ( | ) | const [inline] |
Get the cyclic rate that the Subscription is being requested to return Notifications to the Client
UaStatus UaSubscription::republish | ( | UaRepublishContext * | pUaRepublishContext ) | [virtual] |
Republish a lost notification message.
pUaRepublishContext | The context of the republish call. |
virtual void UaSubscription::setMonitoringModeFinished | ( | OpcUa_SetMonitoringModeRequest * | , |
const UaStatusCodeArray & | |||
) | [inline, virtual] |
Event for derived class after delete monitored items is finished
void UaSubscription::setPublishingMode | ( | OpcUa_Boolean | publishingEnabled ) | [virtual] |
Set publishing mode.
publishingEnabled | indicates if publishing is enabled or not. |
void UaSubscription::setSubscriptionId | ( | OpcUa_UInt32 | subscriptionId ) |
Set subscription Id.
void UaSubscription::setThreadPool | ( | UaThreadPool * | pThreadPool ) | [inline] |
Set thread pool for service processing.
UaStatus UaSubscription::setTriggering | ( | OpcUa_UInt32 | triggeringItemId, |
const UaUInt32Array & | linksToAdd, | ||
const UaUInt32Array & | linksToRemove, | ||
UaStatusCodeArray & | addResults, | ||
UaStatusCodeArray & | removeResults | ||
) | [virtual] |
Set triggering of monitored items.
triggeringItemId | he Id of the items to set triggering to. |
linksToAdd | The links to add to the monitored item |
linksToRemove | The links to remove from the monitored item |
addResults | The results to add to the monitored item. |
removeResults | The results to remove from the monitored item. |
OpcUa_UInt32 UaSubscription::subscriptionId | ( | ) | const [inline] |
Get subscription Id.
UaStatus UaSubscription::transfer | ( | UaSession * | pNewSession, |
OpcUa_Boolean | sendInitialValues, | ||
UaUInt32Array & | availableSequenceNumbers | ||
) | [virtual] |
Transfer the subscription to another session.