Package javax.management.openmbean

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


            //verify the DLE exchange exists, has the expected type, and a single binding for the DLQ
            ManagedExchange exchange = jmxUtils.getManagedExchange(QUEUE_WITH_DLQ_NAME + "_DLE");
            assertEquals("Wrong exchange type", "fanout", exchange.getExchangeType());
            TabularDataSupport bindings = (TabularDataSupport) exchange.bindings();
            assertEquals(1, bindings.size());
            for(Object o : bindings.values())
            {
                CompositeData binding = (CompositeData) o;

                String bindingKey = (String) binding.get(ManagedExchange.BINDING_KEY);
                String[] queueNames = (String[]) binding.get(ManagedExchange.QUEUE_NAMES);
View Full Code Here


    JMXInput jmxInput = new JMXInput(quartzInstance, null, "AllJobDetails", null,
        scheduler.getObjectName());
    TabularDataSupport tdata = (TabularDataSupport) JMXUtil.callJMXAttribute(jmxInput);
    if (tdata != null) {
      jobs = new ArrayList<Job>();
      for (Iterator<Object> it = tdata.values().iterator(); it.hasNext();) {
        Object object = (Object) it.next();
        if (!(object instanceof CompositeDataSupport)) {
          continue;
        }
        CompositeDataSupport compositeDataSupport = (CompositeDataSupport) object;
View Full Code Here

        {
            return null;
        }
       
        TabularDataSupport tabularData = (TabularDataSupport)result;
        Collection<Object> records = tabularData.values();
        List<String> list = new ArrayList<String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            if (data.containsKey(USERNAME))
View Full Code Here

        try
        {
            TabularDataSupport confLoggers = (TabularDataSupport) _lmmb.viewConfigFileLoggerLevels();
            ArrayList<String> confLoggerNames = new ArrayList<String>();
           
            for(Object obj : confLoggers.values())
            {
                CompositeData comp = (CompositeData) obj;
                confLoggerNames.add((String) comp.get(LOGGER_NAME));
            }
           
View Full Code Here

      toPut.put(new Object(), compData);
      toPut.put(new Object(), compData2);
      toPut.put(new Object(), compData3);
      data.putAll(toPut);

      Collection values = data.values();
      assertTrue("Values should contain 3 elements", values.size() == 3);
      assertTrue("Values should contain index compData", values.contains(compData));
      assertTrue("Values should contain index compData2", values.contains(compData2));
      assertTrue("Values should contain index compData3", values.contains(compData3));
   }
View Full Code Here

      toPut.put(new Object(), compData);
      toPut.put(new Object(), compData2);
      toPut.put(new Object(), compData3);
      data.putAll(toPut);

      Collection values = data.values();
      assertTrue("Values should contain 3 elements", values.size() == 3);
      assertTrue("Values should contain index compData", values.contains(compData));
      assertTrue("Values should contain index compData2", values.contains(compData2));
      assertTrue("Values should contain index compData3", values.contains(compData3));
   }
View Full Code Here

        Logger log = Logger.getLogger(TEST_LOGGER);
        log.setLevel(Level.toLevel("info"));
       
        //retrieve the current effective runtime logger level values
        TabularDataSupport levels = (TabularDataSupport) lm.viewEffectiveRuntimeLoggerLevels();
        Collection<Object> records = levels.values();
        Map<String,String> list = new HashMap<String,String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            list.put(data.get(NAME_INDEX).toString(), data.get(LEVEL_INDEX).toString());
View Full Code Here

        //create child2 test logger
        Logger log2 = Logger.getLogger(TEST_LOGGER_CHILD2);
       
        //retrieve the current effective runtime logger level values
        levels = (TabularDataSupport) lm.viewEffectiveRuntimeLoggerLevels();
        records = levels.values();
        list = new HashMap<String,String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            list.put(data.get(NAME_INDEX).toString(), data.get(LEVEL_INDEX).toString());
View Full Code Here

        //now change its level explicitly to "warn"
        log2.setLevel(Level.toLevel("warn"));
       
        //retrieve the current effective runtime logger level values
        levels = (TabularDataSupport) lm.viewEffectiveRuntimeLoggerLevels();
        records = levels.values();
        list = new HashMap<String,String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            list.put(data.get(NAME_INDEX).toString(), data.get(LEVEL_INDEX).toString());
View Full Code Here

            fail("Could not create test LoggingManagementMBean");
        }

        //retrieve the current values
        TabularDataSupport levels = (TabularDataSupport) lm.viewConfigFileLoggerLevels();
        Collection<Object> records = levels.values();
        Map<String,String> list = new HashMap<String,String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            list.put(data.get(NAME_INDEX).toString(), data.get(LEVEL_INDEX).toString());
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.