Package org.rhq.enterprise.agent

Examples of org.rhq.enterprise.agent.AgentManagement


        PrintWriter out = agent.getOut();

        // There are other, easier ways to do this, but I want to go through the JMX interface.
        // Since this is the interface used by the agent plugin to get metric data, this prompt
        // command can be used to verify the exact data the agent plugin is getting.
        AgentManagement agent_mbean = agent.getAgentManagementMBean();

        if (agent_mbean != null) {
            try {
                MBeanServer the_mbs = agent_mbean.getMBeanServer();
                displayMetrics(agent_mbean.getObjectName(), out, the_mbs);
            } catch (Exception e) {
                out.println(MSG.getMsg(AgentI18NResourceKeys.METRICS_EXCEPTION, e));
            }
        } else {
            out.println(MSG.getMsg(AgentI18NResourceKeys.METRICS_NO_SERVICES));
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.agent.AgentManagement

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.