public final class OpenMBeanUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Serializable> |
compositeDataToMap(CompositeData data)
Convert a CompositeData to a Map.
|
static Map<String,Serializable> |
convertTypes(Map<String,Serializable> orig)
Convert certain types and return a new Map:
Collection converts to an array
Nulls are not eliminated.
|
static OpenType |
getOpenType(Object o)
Get the OpenType of an Object, which must conform to OpenType requirements.
|
static SimpleType |
getSimpleType(Class<?> c)
Get the SimpleType for a class which can be so-represented.
|
static OpenType |
getStackTraceElementOpenType()
Get a CompositeType describing a CompositeData which has no elements.
|
static OpenType |
getThrowableOpenType(Throwable t)
Get a CompositeType describing a CompositeData which has no elements.
|
static CompositeData |
mapToCompositeData(String typeName,
String description,
Map<String,Object> map)
Create a CompositeData from a Map.
|
static CompositeType |
mapToCompositeType(String typeName,
String description,
Map<String,?> map,
CompositeTypeFromNameCallback callback)
Create a CompositeType from a Map.
|
static ArrayType |
newArrayType(int numItems,
OpenType type)
Exists to avoid warnings from multiple call sites.
|
public static SimpleType getSimpleType(Class<?> c)
public static ArrayType newArrayType(int numItems, OpenType type) throws OpenDataException
OpenDataExceptionpublic static OpenType getOpenType(Object o) throws InvalidOpenTypeException, OpenDataException
public static Map<String,Serializable> convertTypes(Map<String,Serializable> orig)
public static CompositeType mapToCompositeType(String typeName, String description, Map<String,?> map, CompositeTypeFromNameCallback callback) throws OpenDataException
typeName - the arbitrary name of the OpenType to be useddescription - the arbitrary description of the OpenType to be usedmap - a Map keyed by String, whose values may not be nullOpenDataExceptionpublic static CompositeData mapToCompositeData(String typeName, String description, Map<String,Object> map) throws OpenDataException
typeName - the arbitrary name of the OpenType to be useddescription - the arbitrary description of the OpenType to be usedmap - a Map keyed by String, whose values may not be nullOpenDataExceptionpublic static Map<String,Serializable> compositeDataToMap(CompositeData data)
public static OpenType getStackTraceElementOpenType() throws OpenDataException
OpenDataExceptionpublic static OpenType getThrowableOpenType(Throwable t) throws OpenDataException
OpenDataExceptionCopyright © 2019. All rights reserved.