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