com.prosysopc.ua
Interface EventListener


public interface EventListener

A listener for OPC UA events.


Method Summary
 boolean isMonitored(UaNode node)
          Used to determine if the node is being monitored for events by a MonitoredItem of a client application.
 void onEvent(UaNode node, EventData eventData)
          A notification of an event
 

Method Detail

isMonitored

boolean isMonitored(UaNode node)
Used to determine if the node is being monitored for events by a MonitoredItem of a client application. This is necessary to determine the hierarchical listening relations, if there are no explicit references that determine the event hierarchy.

Parameters:
node - the node to check
Returns:
true, if you know (in the listener) that the node is being monitored. If you do not know, just return false. The node will find it out with normal ways in that case.

onEvent

void onEvent(UaNode node,
             EventData eventData)
A notification of an event

Parameters:
node - The node that is triggering the event
eventData - EventData


Copyright © 2018. All rights reserved.