if ( args.length < 1 ) {
System.out.println(" Usage: <mbean name>");
}
AdminEventManager am = AdminEventManager.getAdminEventManager();
MBeanLocator mloc = am.getMBeanLocator();
// this test can be changed to take the diff query object
// to test the functionality
// this only tests null key
EventKey ek = new EventKey(args[0], null);
Set s = (Set) mloc.locate(ek);
System.out.println("The number of mbeans matched are " + s.size());