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());
}
Aggregations