MonitoringManagerImpl(String nameOfTheRoot, String description) { MonitoredObjectFactory f = MonitoringFactories.getMonitoredObjectFactory(); rootMonitoredObject = f.createMonitoredObject(nameOfTheRoot, description); }
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(); } } }
new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface)}; monitoringManager = MonitoringFactories.getMonitoringManagerFactory().createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION);
public void addAttribute(MonitoredAttribute value) { if (value != null) { synchronized (this) { monitoredAttributes.put(value.getName(), value); } } }
MonitoringManagerImpl(String nameOfTheRoot, String description) { MonitoredObjectFactory f = MonitoringFactories.getMonitoredObjectFactory(); rootMonitoredObject = f.createMonitoredObject(nameOfTheRoot, description); }
/** * 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(); } } }
new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface)}; monitoringManager = MonitoringFactories.getMonitoringManagerFactory().createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION);
public void clearState() { rootMonitoredObject.clearState(); }
public void addAttribute(MonitoredAttribute value) { if (value != null) { synchronized (this) { monitoredAttributes.put(value.getName(), value); } } }