FileDocCategorySizeDatePackage
QueryTest.javaAPI DocGlassfish v2 API2738Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.event

QueryTest

public class QueryTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


        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());