Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeType


        verify(_store).updateAddress(TEST_NODE_NAME, newHostName, newPort);
    }

    private void assertTableHasHeadingsNamed(final TabularData resultsTable, String... headingNames)
    {
        CompositeType headingsRow = resultsTable.getTabularType().getRowType();
        for (final String headingName : headingNames)
        {
            assertTrue("Table should have column with heading " + headingName, headingsRow.containsKey(headingName));
        }
    }
View Full Code Here


    private static CompositeType getCompositeType(Type type) throws OpenDataException {
        ArrayType<int[]> longArrayType = new ArrayType<int[]>(SimpleType.LONG, true);
        OpenType<?>[] itemTypes = new OpenType[] {
                longArrayType, longArrayType, longArrayType, longArrayType};
        String name = type.toString();
        return new CompositeType(name, name + " time series", ITEM_NAMES, ITEM_NAMES, itemTypes);
    }
View Full Code Here

            descriptions[6] = "The location of the instance.";

            itemTypes[7] = SimpleType.STRING;
            descriptions[7] = "The java options of the instance.";

            return new CompositeType("Instance", desc, itemNames, descriptions, itemTypes);
        } catch (OpenDataException e) {
            throw new IllegalStateException("Unable to build instance type", e);
        }
    }
View Full Code Here

 
  public void test(TestHarness h)
  {
    try
      {
  CompositeType type = new CompositeType("Person", "A person",
                 new String[] {"name","Birthday","alive"},
                 new String[] {"name","birthday","death status"},
                 new OpenType[] { SimpleType.STRING,
                SimpleType.DATE,
                SimpleType.BOOLEAN });
View Full Code Here

          bkrInfo.get(BrokerClusterInfo.ADDRESS),
          id
      };

        if (configCompType == null)  {
            configCompType = new CompositeType("BrokerClusterInfoConfig", "BrokerClusterInfoConfig",
                        configBrokerInfoItemNames, configBrokerInfoItemDesc, configItemTypes);
        }

  cds = new CompositeDataSupport(configCompType,
      configBrokerInfoItemNames, brokerInfoItemValues);
View Full Code Here

                            getWildcard(pid)
      };
  CompositeData cd = null;

        if (monitorCompType == null)  {
            monitorCompType = new CompositeType("ProducerMonitorInfo", "ProducerMonitorInfo",
                        producerInfoMonitorItemNames, producerInfoMonitorItemDesc,
        producerInfoMonitorItemTypes);
        }

  cd = new CompositeDataSupport(monitorCompType,
View Full Code Here

          bkrInfo.get(BrokerClusterInfo.TAKEOVER_BROKER_ID),
          bkrInfo.get(BrokerClusterInfo.STATUS_TIMESTAMP)
      };

        if (compType == null)  {
            compType = new CompositeType("BrokerClusterInfo", "BrokerClusterInfo",
            brokerInfoItemNames, brokerInfoItemDesc, itemTypes);
        }

  cds = new CompositeDataSupport(compType, brokerInfoItemNames, brokerInfoItemValues);
 
View Full Code Here

      };
  CompositeData cd = null;
        Consumer con = Consumer.getConsumer(cid);

        if (monitorCompType == null)  {
            monitorCompType = new CompositeType("ConsumerMonitorInfo", "ConsumerMonitorInfo",
                        consumerInfoMonitorItemNames, consumerInfoMonitorItemDesc,
        consumerInfoMonitorItemTypes);
        }

  cd = new CompositeDataSupport(monitorCompType,
View Full Code Here

    }


    public final TabularData getCacheEntries() throws OpenDataException {

        final CompositeType cacheEntryType = new CompositeType(
                "cacheEntry",
                "Cache Entry",
                new String[]{"errorPage", "hit", "miss", "hitRate", "missRate", "sizeInKB" },
                new String[]{"Error Page", "Hit", "Miss", "Hit Rate", "Miss Rate", "Size in KB" },
                new OpenType[]{SimpleType.STRING, SimpleType.INTEGER, SimpleType.INTEGER, SimpleType.FLOAT,
View Full Code Here

               
               
        //
        };
        String[] indexDescriptions = indexNames;
        COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes);

        return COMPOSITE_TYPE;
    }
View Full Code Here

TOP

Related Classes of javax.management.openmbean.CompositeType

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.