Search in sources :

Example 1 with Subscriber

use of cern.cmw.mom.pubsub.Subscriber in project ACS by ACS-Community.

the class AlarmSelectionHelper method resetSelection.

public void resetSelection() throws LaserException {
    try {
        Subscriber subscriber = getSubscriber();
        subscriber.unSubscribeAll();
    } catch (Exception e) {
        throw new LaserException("unable to unsubscribe all");
    }
    if (cmwSubscriber != null) {
        cmwSubscriber.close();
    //      cmwSubscriber = null;
    }
}
Also used : Subscriber(cern.cmw.mom.pubsub.Subscriber) LaserConnectionException(cern.laser.client.LaserConnectionException) LaserException(cern.laser.client.LaserException) UnknownHostException(java.net.UnknownHostException) JMSException(javax.jms.JMSException) MOMException(cern.cmw.mom.pubsub.MOMException) LaserSelectionException(cern.laser.client.services.selection.LaserSelectionException) LaserTimeOutException(cern.laser.client.LaserTimeOutException) LaserException(cern.laser.client.LaserException)

Aggregations

MOMException (cern.cmw.mom.pubsub.MOMException)1 Subscriber (cern.cmw.mom.pubsub.Subscriber)1 LaserConnectionException (cern.laser.client.LaserConnectionException)1 LaserException (cern.laser.client.LaserException)1 LaserTimeOutException (cern.laser.client.LaserTimeOutException)1 LaserSelectionException (cern.laser.client.services.selection.LaserSelectionException)1 UnknownHostException (java.net.UnknownHostException)1 JMSException (javax.jms.JMSException)1