Search in sources :

Example 1 with MonitorOperations

use of alma.ACS.MonitorOperations in project ACS by ACS-Community.

the class CommonPropertyImpl method destroy.

/**
	 * @see alma.ACS.PropertyImpl#destroy()
	 */
public void destroy() {
    super.destroy();
    // destroy all monitors
    if (monitors.size() != 0) {
        MonitorOperations[] monitorArray = null;
        synchronized (monitors) {
            monitorArray = new MonitorOperations[monitors.size()];
            monitors.keySet().toArray(monitorArray);
        }
        for (int i = 0; i < monitorArray.length; i++) {
            try {
                monitorArray[i].destroy();
            } catch (Throwable th) {
                // TODO log
                m_logger.log(Level.WARNING, "jBaci::CommonPropertyImpl::destroy - cannot destroy monitorArray[].");
                throw new NO_RESOURCES(th.getMessage());
            }
        }
    }
}
Also used : MonitorOperations(alma.ACS.MonitorOperations) NO_RESOURCES(org.omg.CORBA.NO_RESOURCES)

Aggregations

MonitorOperations (alma.ACS.MonitorOperations)1 NO_RESOURCES (org.omg.CORBA.NO_RESOURCES)1