Package jmx

Examples of jmx.JEApplicationMBean


        try {
            /* Environment is not open, and we can open. */
            env = openEnv(false);
            env.close();

            DynamicMBean mbean = new JEApplicationMBean(environmentDir);
            validateGetters(mbean, 5);
            validateOperations(mbean, 1, false, null, null); // don't invoke
           
            /* Open the environment. */
            mbean.invoke(JEApplicationMBean.OP_OPEN, null, null);
                        
            validateGetters(mbean, 7 );
            validateOperations(mbean, 8, true, null, null);

            /*
 
View Full Code Here


        /* Create and close the environment. */
        Environment env = openEnv(false);
        env.close();

        /* Test without an open environment. */
        DynamicMBean mbean = new JEApplicationMBean(environmentDir);
        doTestSerializable(mbean);

        /* Test with an open environment. */
        mbean.invoke(JEApplicationMBean.OP_OPEN, null, null);
        doTestSerializable(mbean);

        /* Close. */
        mbean.invoke(JEApplicationMBean.OP_CLOSE, null, null);
    }
View Full Code Here

TOP

Related Classes of jmx.JEApplicationMBean

Copyright © 2018 www.massapicom. 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.