if (m != null){
synchronized( this ) {
children.put( m.getName(), m);
m.setParent( this );
}
}
public void
clearState()
calls clearState() on all the registered children MonitoredObjects and
MonitoredAttributes.
synchronized( this ) {
Iterator i = monitoredAttributes.values().iterator();
// First call clearState on all the local attributes
while( i.hasNext( ) ) {
((MonitoredAttribute)i.next()).clearState();
}
i = children.values().iterator();
// next call clearState on all the children MonitoredObjects
while( i.hasNext() ) {
((MonitoredObject)i.next()).clearState();
}
}