public static CompositeType getThrowableCompositeType() throws JMException { if (THROWABLE_COMPOSITE_TYPE == null) { THROWABLE_COMPOSITE_TYPE = new CompositeType("Throwable", "Throwable", THROWABLE_COMPOSITE_INDEX_NAMES, THROWABLE_COMPOSITE_INDEX_DESCRIPTIONS, THROWABLE_COMPOSITE_INDEX_TYPES); } return THROWABLE_COMPOSITE_TYPE; }
public static CompositeType getCompositeType() throws JMException { OpenType<?>[] indexTypes = new OpenType<?>[] { SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.STRING, JMXUtils.getThrowableCompositeType(), SimpleType.DATE, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING }; return new CompositeType("ConnectionStatistic", "Connection Statistic", indexNames, indexDescriptions, indexTypes); }
protected <T> TabularType createTabularType(Class<T> type, OpenType openType) throws OpenDataException { String typeName = "java.util.Map<java.lang.String, " + type.getName() + ">"; String[] keyValue = new String[]{"key", "value"}; OpenType[] openTypes = new OpenType[]{SimpleType.STRING, openType}; CompositeType rowType = new CompositeType(typeName, typeName, keyValue, keyValue, openTypes); return new TabularType(typeName, typeName, rowType, new String[]{"key"}); }
protected CompositeType createCompositeType() throws OpenDataException { String[] itemNames = itemNamesList.toArray(new String[itemNamesList.size()]); String[] itemDescriptions = itemDescriptionsList.toArray(new String[itemDescriptionsList.size()]); OpenType[] itemTypes = itemTypesList.toArray(new OpenType[itemTypesList.size()]); return new CompositeType(getTypeName(), getDescription(), itemNames, itemDescriptions, itemTypes); }
COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames,
CompositeType compositeType = new CompositeType(c.getName(), c.getName(), itemNames, // field
private static OpenTypeConverter makeTabularConverter(Type objType, boolean sortedMap, Type keyType, Type valueType) throws OpenDataException { final String objTypeName = objType.toString(); final OpenTypeConverter keyConverter = toConverter(keyType); final OpenTypeConverter valueConverter = toConverter(valueType); final OpenType keyOpenType = keyConverter.getOpenType(); final OpenType valueOpenType = valueConverter.getOpenType(); final CompositeType rowType = new CompositeType(objTypeName, objTypeName, keyValueArray, keyValueArray, new OpenType[] {keyOpenType, valueOpenType}); final TabularType tabularType = new TabularType(objTypeName, objTypeName, rowType, keyArray); return new TableConverter(objType, sortedMap, tabularType, keyConverter, valueConverter); }
COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames, indexNames, indexTypes);
null, null, null ) ); when( jmxServer.getAttribute( beanName, "name" ) ).thenReturn( new CompositeDataSupport( new CompositeType( "myComposite", "Composite description",
COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes);
typeToOpenType(Long.class) }); CompositeType recordEntry = new CompositeType("Record Entry", "Record map entry", new String[]{"key", "value"}, CompositeType snapshot = new CompositeType("Snapshot", "Profiler snapshot", new String[]{"startTime", "lastRefresh", "interval", "data"}, OpenType valueType = typeToOpenType(argTypes[1]); if (keyType != null && valueType != null) { CompositeType rowType = new CompositeType("Map", "Map of data", new String[]{"key", "value"},
public static CompositeType getThrowableCompositeType() throws JMException { if (THROWABLE_COMPOSITE_TYPE == null) { THROWABLE_COMPOSITE_TYPE = new CompositeType("Throwable", "Throwable", THROWABLE_COMPOSITE_INDEX_NAMES, THROWABLE_COMPOSITE_INDEX_DESCRIPTIONS, THROWABLE_COMPOSITE_INDEX_TYPES); } return THROWABLE_COMPOSITE_TYPE; }
CompositeType rt = new CompositeType("a", "b", new String[] { "a" }, new String[] {
public static CompositeType getCompositeType() throws JMException { OpenType<?>[] indexTypes = new OpenType<?>[] { SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.STRING, JMXUtils.getThrowableCompositeType(), SimpleType.DATE, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING }; return new CompositeType("ConnectionStatistic", "Connection Statistic", indexNames, indexDescriptions, indexTypes); }
@Override public CompositeType getCompositeType() { try { return new CompositeType( "MessageStatistic", "message statistic struct", fieldNames, fieldNames, new OpenType[] {SimpleType.STRING, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG} ); } catch (OpenDataException e) { throw new CloudRuntimeException(e); } } }
protected static CompositeType getCompositeType() { if (SLOW_QUERY_TYPE==null) { try { SLOW_QUERY_TYPE = new CompositeType( SlowQueryReportJmx.class.getName(), "Composite data type for query statistics", QueryStats.getFieldNames(), QueryStats.getFieldDescriptions(), QueryStats.getFieldTypes()); }catch (OpenDataException x) { log.warn("Unable to initialize composite data type for JMX stats and notifications.",x); } } return SLOW_QUERY_TYPE; }
CompositeType compositeType = new CompositeType("SensorMetric", "Sensor metric data", COLUMN_NAMES, columnDescriptions, columnTypes); new CompositeType("updateRow","Row desc", new String[] { "Key", "Value", "Type"}, new String[] { "Key", "Value", "Type"},
COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames,
COMPOSITE_TYPE = new CompositeType("DataSourceStatistic", "DataSource Statistic", indexNames, indexNames, indexTypes);
COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes);