Examples of AMXStringMonitor


Examples of com.sun.appserv.management.monitor.AMXStringMonitor

  testCreateRemoveStringMonitor()
    throws IOException
  {
    final JMXMonitorMgr  mgr  = getMgr();
   
    final AMXStringMonitor  mon  = mgr.createStringMonitor( getClass().getName() + "Test" );
    final ObjectName  objectName  = Util.getObjectName( mon );
   
    mon.setObservedAttribute( "Group" );
    final ObjectName  observee  = Util.getObjectName( mgr );
    assert( observee != null );
    mon.addObservedObject( observee );
    assert mon.containsObservedObject( observee );
    mon.removeObservedObject( observee );
   
    assert( getConnection().isRegistered( objectName ) );
    mgr.remove( mon.getName() );
    assert( ! getConnection().isRegistered( objectName ) );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.