public void clearState() { rootMonitoredObject.clearState(); }
public void clearState() { rootMonitoredObject.clearState(); }
/** * calls clearState() on all the registered children MonitoredObjects and MonitoredAttributes. */ public void clearState() { synchronized (this) { Iterator<MonitoredAttribute> i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while (i.hasNext()) { i.next().clearState(); } Iterator<MonitoredObject> i2 = children.values().iterator(); // next call clearState on all the children MonitoredObjects while (i2.hasNext()) { ((MonitoredObject) i.next()).clearState(); } } }
/** * calls clearState() on all the registered children MonitoredObjects and MonitoredAttributes. */ public void clearState() { synchronized (this) { Iterator<MonitoredAttribute> i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while (i.hasNext()) { i.next().clearState(); } Iterator<MonitoredObject> i2 = children.values().iterator(); // next call clearState on all the children MonitoredObjects while (i2.hasNext()) { ((MonitoredObject) i.next()).clearState(); } } }