public synchronized void addObservedObject(ObjectName object) throws IllegalArgumentException {
  if (object == null) {
    throw new IllegalArgumentException("Null observed object");
  }
  if (containsObservedObject(object))   return;
  ObservedObject o=createObservedObject(object);
  o.setAlreadyNotified(RESET_FLAGS_ALREADY_NOTIFIED);
  o.setDerivedGauge(INTEGER_ZERO);
  o.setDerivedGaugeTimeStamp(System.currentTimeMillis());
  observedObjects.add(o);
  createAlreadyNotified();
}

public synchronized void addObservedObject ( ObjectName object ) throws IllegalArgumentException { if ( object == null ) { throw new IllegalArgumentException ( "Null observed object" ) ; } if ( containsObservedObject ( object ) ) return ; ObservedObject o = createObservedObject ( object ) ; o . setAlreadyNotified ( RESET_FLAGS_ALREADY_NOTIFIED ) ; o . setDerivedGauge ( INTEGER_ZERO ) ; o . setDerivedGaugeTimeStamp ( System . currentTimeMillis ( ) ) ; observedObjects . add ( o ) ; createAlreadyNotified ( ) ; }
adds the specified object in the set of observed mbeans , if this object is not already present .
