Java Doc for ManagementUtils.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » lang » management » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.lang.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.lang.management.ManagementUtils

ManagementUtils
public class ManagementUtils (Code)
Support methods for org.apache.harmony.lang.management classes.


Field Summary
final public static  booleanVERBOSE_MODE
     System property setting used to decide if non-fatal exceptions should be written out to console.


Method Summary
public static  TconvertFromCompositeData(CompositeData data, Class<T> realClass)
     Return a new instance of type T from the supplied CompositeData object whose type maps to T.
public static  TconvertFromOpenType(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  ObjectconvertTabularDataToMap(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  TconvertToOpenType(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  ClassLoadingMXBeanImplgetClassLoadingBean()
    
public static  ClassgetClassMaybePrimitive(String name)
     Convenience method that sets out to return the Class object for the specified type named name.
public static  CompilationMXBeanImplgetCompliationBean()
    
public static  List<GarbageCollectorMXBean>getGarbageCollectorMXBeans()
     Returns a list of all of the instances of GarbageCollectorMXBean in this virtual machine.
public static  LoggingMXBeanImplgetLoggingBean()
    
static  MBeanInfogetMBeanInfo(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  MemoryMXBeanImplgetMemoryBean()
    
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  CompositeTypegetMemoryUsageCompositeType()
    
public static  OperatingSystemMXBeanImplgetOperatingSystemBean()
    
public static  RuntimeMXBeanImplgetRuntimeBean()
    
public static  ThreadMXBeanImplgetThreadBean()
    
public static  booleanisANotificationEmitter(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  booleanisWrapperClass(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  CompositeDatatoMemoryNotificationInfoCompositeData(MemoryNotificationInfo info)
    
Parameters:
  info - a java.lang.management.MemoryNotificationInfoobject.
public static  CompositeDatatoMemoryUsageCompositeData(MemoryUsage usage)
    
Parameters:
  usage - a MemoryUsageobject.
public static  CompositeDatatoStackTraceElementCompositeData(StackTraceElement element)
    
Parameters:
  element - a StackTraceElementobject.
public static  TabularDatatoSystemPropertiesTabularData(Map<String, String> propsMap)
    
Parameters:
  propsMap - a Map<String, String%gt; of the systemproperties.
public static  CompositeDatatoThreadInfoCompositeData(ThreadInfo info)
    
Parameters:
  info - a ThreadInfoobject.
public static  voidverifyFieldNames(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  voidverifyFieldNumber(CompositeData cd, int i)
     Throws an IllegalArgumentException if the CompositeData argument cd does not have the number of attributes specified in i.
public static  voidverifyFieldTypes(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.

Field Detail
VERBOSE_MODE
final public static boolean VERBOSE_MODE(Code)
System property setting used to decide if non-fatal exceptions should be written out to console.





Method Detail
convertFromCompositeData
public static T convertFromCompositeData(CompositeData data, Class<T> realClass) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException(Code)
Return a new instance of type T from the supplied CompositeData object whose type maps to T. <
Parameters:
  T - >the type of object wrapped by the CompositeData.
Parameters:
  data - an instance of CompositeData that maps to aninstance of T
Parameters:
  realClass - the Class object for type T a new instance of T
throws:
  NoSuchMethodException -
throws:
  SecurityException -
throws:
  InvocationTargetException -
throws:
  IllegalAccessException -
throws:
  IllegalArgumentException -



convertFromOpenType
public static T convertFromOpenType(Object data, Class openClass, Class<T> realClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SecurityException, IllegalArgumentException, NoSuchMethodException, InvocationTargetException(Code)
Receive data of the type specified in openClass and return it in an instance of the type specified in realClass. <
Parameters:
  T - >
Parameters:
  data - an instance of the type named openTypeName
Parameters:
  openClass -
Parameters:
  realClass - a new instance of the type realTypeName containingall the state in the input data object.
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -
throws:
  InstantiationException -
throws:
  InvocationTargetException -
throws:
  NoSuchMethodException -
throws:
  IllegalArgumentException -
throws:
  SecurityException -



convertStringArrayToList
public static List<String> convertStringArrayToList(String[] data)(Code)
Convenience method to converts an array of String to a List<String>.
Parameters:
  data - an array of String a new List<String>



convertTabularDataToMap
public static Object convertTabularDataToMap(TabularData data)(Code)
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. a new Mapcontaining the information originally wrappedin the data input.
throws:
  IllegalArgumentException - if data has a CompositeTypethat does not contain exactly two items (i.e. a key and avalue).



convertToOpenType
public static T convertToOpenType(Object data, Class<T> openClass, Class realClass)(Code)
Convenience method to convert an object, data from its Java type realClass to the specified open MBean type openClass. <
Parameters:
  T - >the open MBean class
Parameters:
  data - the object to be converted
Parameters:
  openClass - the open MBean class
Parameters:
  realClass - the real Java type of data a new instance of type openClass



getClassLoadingBean
public static ClassLoadingMXBeanImpl getClassLoadingBean()(Code)
the singleton ClassLoadingMXBean instance.



getClassMaybePrimitive
public static Class getClassMaybePrimitive(String name) throws ClassNotFoundException(Code)
Convenience method that sets out to return the Class object for the specified type named name. Unlike the Class.forName(java.lang.String) method, this will work even for primitive types.
Parameters:
  name - the name of a Java type the Class object for the type name
throws:
  ClassNotFoundException - if name does not correspond to any known type(including primitive types).



getCompliationBean
public static CompilationMXBeanImpl getCompliationBean()(Code)
the singleton CompilationMXBean if available.



getGarbageCollectorMXBeans
public static List<GarbageCollectorMXBean> getGarbageCollectorMXBeans()(Code)
Returns a list of all of the instances of GarbageCollectorMXBean in this virtual machine. Owing to the dynamic nature of this kind of MXBean, it is possible that instances may be created or destroyed between the invocation and return of this method. a list of all known GarbageCollectorMXBean s inthis virtual machine.



getLoggingBean
public static LoggingMXBeanImpl getLoggingBean()(Code)
the singleton LoggingMXBean instance.



getMBeanInfo
static MBeanInfo getMBeanInfo(String name)(Code)
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. Ifname is not the name of a knownMXBean kind then returns null.



getMemoryBean
public static MemoryMXBeanImpl getMemoryBean()(Code)
the singleton MemoryMXBean instance.



getMemoryManagerMXBeans
public static List<MemoryManagerMXBean> getMemoryManagerMXBeans()(Code)
Returns a list of all of the instances of MemoryManagerMXBean in this virtual machine. Owing to the dynamic nature of this kind of MXBean, it is possible that instances may be created or destroyed between the invocation and return of this method. a list of all known MemoryManagerMXBean s in thisvirtual machine.



getMemoryPoolMXBeans
public static List<MemoryPoolMXBean> getMemoryPoolMXBeans()(Code)
Returns a list of all of the instances of MemoryPoolMXBean in this virtual machine. Owing to the dynamic nature of this kind of MXBean, it is possible that instances may be created or destroyed between the invocation and return of this method. a list of all known MemoryPoolMXBean s in thisvirtual machine.



getMemoryUsageCompositeType
public static CompositeType getMemoryUsageCompositeType()(Code)
an instance of CompositeTypefor the MemoryUsageclass.



getOperatingSystemBean
public static OperatingSystemMXBeanImpl getOperatingSystemBean()(Code)
the singleton RuntimeMXBean instance.



getRuntimeBean
public static RuntimeMXBeanImpl getRuntimeBean()(Code)
the singleton RuntimeMXBean instance.



getThreadBean
public static ThreadMXBeanImpl getThreadBean()(Code)
the singleton ThreadMXBean instance.



isANotificationEmitter
public static boolean isANotificationEmitter(Class<T> mxbeanInterface)(Code)
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. Otherwise,false.



isWrapperClass
public static boolean isWrapperClass(Class<? extends Object> wrapper, Class primitive)(Code)
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. Otherwisefalse.



toMemoryNotificationInfoCompositeData
public static CompositeData toMemoryNotificationInfoCompositeData(MemoryNotificationInfo info)(Code)

Parameters:
  info - a java.lang.management.MemoryNotificationInfoobject. a CompositeDataobject that represents the suppliedinfo object.



toMemoryUsageCompositeData
public static CompositeData toMemoryUsageCompositeData(MemoryUsage usage)(Code)

Parameters:
  usage - a MemoryUsageobject. a CompositeDataobject that represents the suppliedusage object.



toStackTraceElementCompositeData
public static CompositeData toStackTraceElementCompositeData(StackTraceElement element)(Code)

Parameters:
  element - a StackTraceElementobject. a CompositeDataobject that represents the suppliedelement object.



toSystemPropertiesTabularData
public static TabularData toSystemPropertiesTabularData(Map<String, String> propsMap)(Code)

Parameters:
  propsMap - a Map<String, String%gt; of the systemproperties. the system properties (e.g. as obtained fromRuntimeMXBean.getSystemProperties) wrapped in aTabularData.



toThreadInfoCompositeData
public static CompositeData toThreadInfoCompositeData(ThreadInfo info)(Code)

Parameters:
  info - a ThreadInfoobject. a CompositeDataobject that represents the suppliedinfo object.



verifyFieldNames
public static void verifyFieldNames(CompositeData cd, String[] expected)(Code)
Throws an IllegalArgumentException if the CompositeData argument cd does not have any of the attributes named in the expected array of strings.
Parameters:
  cd - a CompositeData object
Parameters:
  expected - an array of attribute names expected in cd.



verifyFieldNumber
public static void verifyFieldNumber(CompositeData cd, int i)(Code)
Throws an IllegalArgumentException if the CompositeData argument cd does not have the number of attributes specified in i.
Parameters:
  cd - a CompositeData object
Parameters:
  i - the number of expected attributes in cd



verifyFieldTypes
public static void verifyFieldTypes(CompositeData cd, String[] expectedNames, String[] expectedTypes)(Code)
Throws an IllegalArgumentException if the CompositeData argument cd contains attributes that are not of the exact types specified in the expectedTypes argument. The attribute types of cd must also match the order of types in expectedTypes.
Parameters:
  cd - a CompositeData object
Parameters:
  expectedNames - an array of expected attribute names
Parameters:
  expectedTypes - an array of type names



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.