Package javax.management.openmbean

Examples of javax.management.openmbean.TabularDataSupport.entrySet()


        final CompositeData message = queueView.browse()[0];
        assertNotNull(message);
        TabularDataSupport stringProperties = (TabularDataSupport) message.get(CompositeDataConstants.STRING_PROPERTIES);
        assertNotNull(stringProperties);
        assertThat(stringProperties.size(), is(greaterThan(0)));
        Map.Entry<Object, Object> compositeDataEntry = (Map.Entry<Object, Object>) stringProperties.entrySet().toArray()[0];
        CompositeData stringEntry = (CompositeData) compositeDataEntry.getValue();
        assertThat(String.valueOf(stringEntry.get("key")), equalTo(KEY));
        assertThat(String.valueOf(stringEntry.get("value")), equalTo(VALUE));
    }
View Full Code Here


                    Object[] params = { 1, this.number };
                    String[] signature = { new String("int"), new String("int") };
                    TabularDataSupport data = (TabularDataSupport) this.mbsc.invoke(queue, this.method1, params,
                            signature);

                    Set entrySet = data.entrySet();
                    ArrayList<Map.Entry> list = new ArrayList<Map.Entry>(entrySet);
                    if (list.size() != 0)
                    {// no data}
                        for (int i = 0; i < list.size(); i++)
                        {
View Full Code Here

                    Object[] params = { 1, this.number };
                    String[] signature = { new String("int"), new String("int") };
                    TabularDataSupport data = (TabularDataSupport) this.mbsc.invoke(queue, this.method1, params,
                            signature);

                    Set entrySet = data.entrySet();
                    ArrayList<Map.Entry> list = new ArrayList<Map.Entry>(entrySet);
                    if (list.size() != 0)
                    {// no data}
                        for (int i = 0; i < list.size(); i++)
                        {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.