Method Summary |
|
public static T | convertFromCompositeData(CompositeData data, Class<T> realClass) Return a new instance of type T from the supplied
CompositeData object whose type maps to T . |
public static T | convertFromOpenType(Object data, Class> openClass, Class<T> realClass) Receive data of the type specified in openClass and return
it in an instance of the type specified in realClass . |
public static List<String> | convertStringArrayToList(String[] data) Convenience method to converts an array of String to a
List<String> . |
public static Object | convertTabularDataToMap(TabularData data) Receives an instance of a
TabularData whose data is wrapping a
Map and returns a new instance of Map
containing the input information.
Parameters: data - an instance of TabularData that may be mappedto a Map . |
public static T | convertToOpenType(Object data, Class<T> openClass, Class> realClass) Convenience method to convert an object, data from its
Java type realClass to the specified open MBean type
openClass . |
public static ClassLoadingMXBeanImpl | getClassLoadingBean() |
public static Class | getClassMaybePrimitive(String name) Convenience method that sets out to return the
Class object for
the specified type named name . |
public static CompilationMXBeanImpl | getCompliationBean() |
public static List<GarbageCollectorMXBean> | getGarbageCollectorMXBeans() Returns a list of all of the instances of
GarbageCollectorMXBean in this virtual machine. |
public static LoggingMXBeanImpl | getLoggingBean() |
static MBeanInfo | getMBeanInfo(String name) Convenenience method to return the
MBeanInfo object that
corresponds to the specified MXBean type.
Parameters: name - the fully qualified name of an MXBean if name has the value of a knownMXBean type then returns theMBeanInfo meta data for that type. |
public static MemoryMXBeanImpl | getMemoryBean() |
public static List<MemoryManagerMXBean> | getMemoryManagerMXBeans() Returns a list of all of the instances of
MemoryManagerMXBean in
this virtual machine. |
public static List<MemoryPoolMXBean> | getMemoryPoolMXBeans() Returns a list of all of the instances of
MemoryPoolMXBean in
this virtual machine. |
public static CompositeType | getMemoryUsageCompositeType() |
public static OperatingSystemMXBeanImpl | getOperatingSystemBean() |
public static RuntimeMXBeanImpl | getRuntimeBean() |
public static ThreadMXBeanImpl | getThreadBean() |
public static boolean | isANotificationEmitter(Class<T> mxbeanInterface) Convenience method that returns a boolean indication of whether or not
concrete instances of the the supplied interface type
mxbeanInterface should also be implementors of the
interface javax.management.NotificationEmitter .
< Parameters: T - > Parameters: mxbeanInterface - true if instances of typemxbeanInterface should also implementjavax.management.NotificationEmitter . |
public static boolean | isWrapperClass(Class<? extends Object> wrapper, Class primitive) Convenience method to determine if the wrapper
Class
object is really the wrapper class for the
primitive Class object.
Parameters: wrapper - Parameters: primitive - true if the wrapper class is thewrapper class for primitive . |
public static CompositeData | toMemoryNotificationInfoCompositeData(MemoryNotificationInfo info) Parameters: info - a java.lang.management.MemoryNotificationInfoobject. |
public static CompositeData | toMemoryUsageCompositeData(MemoryUsage usage) Parameters: usage - a MemoryUsageobject. |
public static CompositeData | toStackTraceElementCompositeData(StackTraceElement element) Parameters: element - a StackTraceElementobject. |
public static TabularData | toSystemPropertiesTabularData(Map<String, String> propsMap) Parameters: propsMap - a Map<String, String%gt; of the systemproperties. |
public static CompositeData | toThreadInfoCompositeData(ThreadInfo info) Parameters: info - a ThreadInfoobject. |
public static void | verifyFieldNames(CompositeData cd, String[] expected) Throws an
IllegalArgumentException if the
CompositeData argument cd does not have any of the attributes named in
the expected array of strings. |
public static void | verifyFieldNumber(CompositeData cd, int i) Throws an
IllegalArgumentException if the
CompositeData argument cd does not have the number of attributes
specified in i . |
public static void | verifyFieldTypes(CompositeData cd, String[] expectedNames, String[] expectedTypes) Throws an
IllegalArgumentException if the
CompositeData argument cd contains attributes that are not of the exact
types specified in the expectedTypes argument. |