Package org.jolokia.request

Examples of org.jolokia.request.JmxExecRequest


    /**
     * Set a List field inside the composite argument
     */
    @Test
    public void compositeWithListField() throws MalformedObjectNameException, InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException {
        JmxExecRequest request = new JmxRequestBuilder(EXEC, oName).
            operation("compositeData").
            arguments("{ \"list\":[\"1\", \"2\"] }").
            build();
        handler.handleRequest(getMBeanServer(),request);     
    }   
View Full Code Here


    /**
     * Set a Map field inside the composite argument
     */
    @Test
    public void compositeWithMapField() throws MalformedObjectNameException, InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException {
        JmxExecRequest request = new JmxRequestBuilder(EXEC, oName).
            operation("compositeData").
            arguments("{ \"map\":{ \"5\":{\"nestedField\":\"value1\"}, \"7\":{\"nestedField\":\"value2\"} } }").
            build();
        handler.handleRequest(getMBeanServer(),request);     
    }
View Full Code Here

    /**
     * Set a Set field inside the composite argument
     */
    @Test
    public void compositeWithSetField() throws MalformedObjectNameException, InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException {
        JmxExecRequest request = new JmxRequestBuilder(EXEC, oName).
            operation("compositeData").
            arguments("{ \"set\": [\"value1\",\"value2\"] }").
            build();
        handler.handleRequest(getMBeanServer(),request);     
    }
View Full Code Here

    }
   
   
    @Test
    public void overloaded() throws MalformedObjectNameException, InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException {
        JmxExecRequest request = new JmxRequestBuilder(EXEC, oName).
        operation("overloaded(javax.management.openmbean.CompositeData)").
        arguments("{ \"stringField\": \"aString\" }").
        build();
        handler.handleRequest(getMBeanServer(),request);           
    }
View Full Code Here

TOP

Related Classes of org.jolokia.request.JmxExecRequest

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.