Search in sources :

Example 1 with GuardSubscriptionListener

use of com.jbm.framework.opcua.listener.GuardSubscriptionListener in project JBM by numen06.

the class OpcUaTemplate method addClient.

/**
 * tianjia
 *
 * @param opcUaClientBean
 */
public synchronized void addClient(OpcUaClientBean opcUaClientBean) {
    OpcUaClient opcUaClient = this.getOpcUaClient(opcUaClientBean.getDeviceId(), opcUaClientBean.getOpcUaSource());
    opcUaClientBean.setOpcUaClient(opcUaClient);
    this.clientMap.put(opcUaClientBean.getDeviceId(), opcUaClientBean);
    opcUaClient.getSubscriptionManager().addSubscriptionListener(new GuardSubscriptionListener(this, opcUaClientBean));
// this.loadPoints(opcUaClientBean.getOpcUaSource());
}
Also used : GuardSubscriptionListener(com.jbm.framework.opcua.listener.GuardSubscriptionListener) OpcUaClient(org.eclipse.milo.opcua.sdk.client.OpcUaClient)

Aggregations

GuardSubscriptionListener (com.jbm.framework.opcua.listener.GuardSubscriptionListener)1 OpcUaClient (org.eclipse.milo.opcua.sdk.client.OpcUaClient)1