public class EventManagerRoot extends EventManagerUaNode
EventManager for NodeManagerRoot. Handles ConditionReferesh methods.listener, RESULT_OK| Constructor and Description |
|---|
EventManagerRoot(NodeManager nodeManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCall(ServiceContext serviceContext,
NodeId objectId,
UaNode object,
NodeId methodId,
UaMethod method,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos,
Variant[] output)
A method call notification.
|
protected boolean |
refresh(ServiceContext serviceContext,
Subscription subscription)
Handle a ConditionRefresh call from a client.
|
protected boolean |
refresh(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem monitoredItem)
Handle a ConditionRefresh2 call from a client.
|
protected void |
refreshEndEvent(MonitoredEventItem monitoredItem)
Trigger a RefreshEndEventType.
|
protected void |
refreshEndEvent(Subscription subscription)
Trigger a RefreshEndEventType.
|
protected void |
refreshStartEvent(MonitoredEventItem monitoredItem)
Trigger a RefreshStartEventType.
|
protected void |
refreshStartEvent(Subscription subscription)
Trigger a RefreshStartEventType.
|
acknowledge, addComment, collectConditions, confirm, disable, enable, getConditions, getConditions, getConditions, oneshotshelve, refreshItem, requireUaNode, timedshelve, unshelveafterCreateMonitoredEventItem, afterDeleteMonitoredEventItem, afterModifyMonitoredEventItem, createEventId, createFullEventId, createMonitoredEventItem, deleteMonitoredEventItem, extractUserEventId, fireConditionRefresh, fireConditionRefresh2, getListener, getNodeManager, methodEqualsIdOrName, modifyMonitoredEventItem, refreshItems, setListenerarrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, invalidatePreviousNodeCache, isValueNode, isVariable, listenerErrorpublic EventManagerRoot(NodeManager nodeManager)
public boolean onCall(ServiceContext serviceContext, NodeId objectId, UaNode object, NodeId methodId, UaMethod method, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos, Variant[] output) throws StatusException
CallableListenerUse onCall to check whether the called method is the one that you handle. If so, return true, and set the outputs. Do not create a new array for the outputs, just assign your values in there - it is already created for the length defined by the OutputArguments of the UaMethod.
If you find errors in the inputArguments, fill in the inputArgumentResults and inputArgumentDiagnosticInfos respectively. They are also preallocated.
onCall in interface CallableListeneronCall in class EventManagerUaNodeobjectId - the ID of the node whose method is being calledobject - the object node whose method is being called, if availablemethodId - the ID of the method being calledmethod - the method node being called, if availableinputArguments - input argument valuesinputArgumentResults - room for argument errors. Fill in the array if you encounter errors
in the values.inputArgumentDiagnosticInfos - room for diagnostic info, in case of errors.output - room for output values. The array is pre-created, so just fill in the values.StatusException - if there are errors in the method handling. For example, if you set
inputArgumentResults, you should throw a StatusException with
StatusCodes.Bad_InvalidArgumentprotected boolean refresh(ServiceContext serviceContext, Subscription subscription) throws StatusException
serviceContext - the client calling context.subscription - the subscription to refreshStatusException - if refresh is not allowed, for exampleprotected boolean refresh(ServiceContext serviceContext, Subscription subscription, MonitoredEventItem monitoredItem) throws StatusException
serviceContext - the client calling contextsubscription - the subscription in which the item to refresh existsmonitoredItem - the item to refresh.StatusException - if refresh is not allowed, for exampleprotected void refreshEndEvent(MonitoredEventItem monitoredItem)
#refreshItem() is called.
The default implementation triggers the standard event of type RefreshEndEventType for the
given monitored event item.protected void refreshEndEvent(Subscription subscription)
#refreshItems() is called.
The default implementation triggers the standard event of type RefreshEndEventType for every
monitored event item.subscription - must not be nullprotected void refreshStartEvent(MonitoredEventItem monitoredItem)
#refreshItem() is called.
The default implementation triggers the standard event of type RefreshStartEventType for the
given monitored event item.protected void refreshStartEvent(Subscription subscription)
#refreshItems() is
called. The default implementation triggers the standard event of type RefreshStartEventType
for every monitored event item.subscription - must not be nullCopyright © 2026. All rights reserved.