Java Doc for JmxUtils.java in  » Web-Crawler » heritrix » org » archive » util » 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 » Web Crawler » heritrix » org.archive.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.archive.util.JmxUtils

JmxUtils
public class JmxUtils (Code)
Static utility used by JMX.
author:
   stack
version:
   $Date: 2005-12-15 00:35:44 +0000 (Thu, 15 Dec 2005) $, $Revision: 4022 $


Field Summary
final public static  StringGUI_PORT
    
final public static  StringHOST
    
final public static  StringJMX_PORT
    
final public static  StringJOB
    
final public static  StringKEY
    
final public static  ObjectNameMBEAN_SERVER_DELEGATE
    
final public static  StringMOTHER
     Key for name of the Heritrix instance hosting a Job: i.e.
final public static  StringNAME
    
final public static  StringSERVICE
    
final public static  StringTYPE
    

Constructor Summary
protected  JmxUtils()
    

Method Summary
public static  voidcheckParamsCount(String operationName, Object[] params, int count)
    
public static  intconvertImpact(int impact)
    
public static  OpenMBeanAttributeInfoconvertToOpenMBeanAttribute(MBeanAttributeInfo in)
    
Parameters:
  in - AttributeInfo to convert.
public static  OpenMBeanAttributeInfoconvertToOpenMBeanAttribute(MBeanAttributeInfo in, String prefix)
    
Parameters:
  in - AttributeInfo to convert.
Parameters:
  prefix - Prefix to add to names of new attributes.
public static  OpenMBeanOperationInfoconvertToOpenMBeanOperation(MBeanOperationInfo in)
    
Parameters:
  in - MBeanOperation to convert.
public static  OpenMBeanOperationInfoconvertToOpenMBeanOperation(MBeanOperationInfo in, String prefix, OpenType returnType)
    
Parameters:
  in - MBeanOperation to convert.
Parameters:
  prefix - A prefix to add to the name of new operation.
Parameters:
  returnType - Return type to use in new operation.
public static  OpenMBeanParameterInfoconvertToOpenMBeanOperationInfo(MBeanParameterInfo in)
    
Parameters:
  in - MBeanParameterInfo to convert to an OpenMBeanParameterInfo.
public static  CompositeTypecreateCompositeType(Map m, String compositeTypeName, String compositeTypeDescription)
    
Parameters:
  m - A map to make a CompositeType of (Assumption is that order doesnot matter.
public static  OpenMBeanAttributeInfocreateOpenMBeanAttributeInfo(OpenType type, MBeanAttributeInfo in, String prefix)
    
Parameters:
  type - Type of new OpenMBeanAttributeInfo.
Parameters:
  in - The MBeanAttributeInfo we're converting.
Parameters:
  prefix - Prefix to add to name of new Attribute (If null, nothingis added).
public static  InetSocketAddressextractAddress(ObjectName name)
    
public static  StringgetLogRegistrationMsg(String mbeanName, MBeanServer mbeanServer, boolean registrationDone)
     Return a string suitable for logging on registration.
Parameters:
  mbeanName - Mbean that got registered.
Parameters:
  mbeanServer - Server we were registered to.
Parameters:
  registrationDone - Whether we registered successfully or not.
public static  StringgetLogUnregistrationMsg(String mbeanName, MBeanServer mbeanServer)
    
public static  OpenTypegetOpenType(String classString)
    
Parameters:
  classString - Java class name.
public static  OpenTypegetOpenType(String classString, OpenType defaultType)
    
Parameters:
  classString - Java class name.
Parameters:
  defaultType - If no equivalent found, use passed defaultType.
public static  StringgetServerDetail(MBeanServer server)
    
public static  StringgetUid(ObjectName on)
     Returns the UID portion of the name key property of an object name representing a "CrawlService.Job" bean. It is assumed that the name will have the format {crawl name}-{uid}.
Parameters:
  on - A CrawlServer.Job object name.
public static  booleanisOpenType(Class c)
    
public static  booleanisOpenType(String classname)
    

Field Detail
GUI_PORT
final public static String GUI_PORT(Code)



HOST
final public static String HOST(Code)



JMX_PORT
final public static String JMX_PORT(Code)



JOB
final public static String JOB(Code)



KEY
final public static String KEY(Code)



MBEAN_SERVER_DELEGATE
final public static ObjectName MBEAN_SERVER_DELEGATE(Code)



MOTHER
final public static String MOTHER(Code)
Key for name of the Heritrix instance hosting a Job: i.e. the CrawlJob's host/'mother'.



NAME
final public static String NAME(Code)



SERVICE
final public static String SERVICE(Code)



TYPE
final public static String TYPE(Code)




Constructor Detail
JmxUtils
protected JmxUtils()(Code)




Method Detail
checkParamsCount
public static void checkParamsCount(String operationName, Object[] params, int count)(Code)

Parameters:
  operationName - Name of operation we're checking params on (Used in exceptionif one thrown).
Parameters:
  params - Amount of params passed.
Parameters:
  count - Count of params expected.



convertImpact
public static int convertImpact(int impact)(Code)



convertToOpenMBeanAttribute
public static OpenMBeanAttributeInfo convertToOpenMBeanAttribute(MBeanAttributeInfo in)(Code)

Parameters:
  in - AttributeInfo to convert. OpenMBeanAttributeInfo version of in.



convertToOpenMBeanAttribute
public static OpenMBeanAttributeInfo convertToOpenMBeanAttribute(MBeanAttributeInfo in, String prefix)(Code)

Parameters:
  in - AttributeInfo to convert.
Parameters:
  prefix - Prefix to add to names of new attributes. If null, nothingis added. OpenMBeanAttributeInfo version of in.



convertToOpenMBeanOperation
public static OpenMBeanOperationInfo convertToOpenMBeanOperation(MBeanOperationInfo in)(Code)

Parameters:
  in - MBeanOperation to convert. An OpenMBeanOperation version of the passed MBeanOperation.



convertToOpenMBeanOperation
public static OpenMBeanOperationInfo convertToOpenMBeanOperation(MBeanOperationInfo in, String prefix, OpenType returnType)(Code)

Parameters:
  in - MBeanOperation to convert.
Parameters:
  prefix - A prefix to add to the name of new operation.
Parameters:
  returnType - Return type to use in new operation. Use thisparameter to override the passed in return type. An OpenMBeanOperation version of the passed MBeanOperation.



convertToOpenMBeanOperationInfo
public static OpenMBeanParameterInfo convertToOpenMBeanOperationInfo(MBeanParameterInfo in)(Code)

Parameters:
  in - MBeanParameterInfo to convert to an OpenMBeanParameterInfo. OpenMBeanParameterInfo version of in



createCompositeType
public static CompositeType createCompositeType(Map m, String compositeTypeName, String compositeTypeDescription) throws OpenDataException(Code)

Parameters:
  m - A map to make a CompositeType of (Assumption is that order doesnot matter. If it does, pass a map of sorted keys).
Parameters:
  compositeTypeName - Name to give created compositeType.
Parameters:
  compositeTypeDescription - Description. CompositeType made by examination of passed TreeMap.
throws:
  OpenDataException -



createOpenMBeanAttributeInfo
public static OpenMBeanAttributeInfo createOpenMBeanAttributeInfo(OpenType type, MBeanAttributeInfo in, String prefix)(Code)

Parameters:
  type - Type of new OpenMBeanAttributeInfo.
Parameters:
  in - The MBeanAttributeInfo we're converting.
Parameters:
  prefix - Prefix to add to name of new Attribute (If null, nothingis added). New OpenMBeanAttributeInfo based on in.



extractAddress
public static InetSocketAddress extractAddress(ObjectName name)(Code)



getLogRegistrationMsg
public static String getLogRegistrationMsg(String mbeanName, MBeanServer mbeanServer, boolean registrationDone)(Code)
Return a string suitable for logging on registration.
Parameters:
  mbeanName - Mbean that got registered.
Parameters:
  mbeanServer - Server we were registered to.
Parameters:
  registrationDone - Whether we registered successfully or not. String suitable for logging.



getLogUnregistrationMsg
public static String getLogUnregistrationMsg(String mbeanName, MBeanServer mbeanServer)(Code)



getOpenType
public static OpenType getOpenType(String classString)(Code)

Parameters:
  classString - Java class name. Its OpenType equivalent.



getOpenType
public static OpenType getOpenType(String classString, OpenType defaultType)(Code)

Parameters:
  classString - Java class name.
Parameters:
  defaultType - If no equivalent found, use passed defaultType. Its OpenType equivalent.



getServerDetail
public static String getServerDetail(MBeanServer server)(Code)



getUid
public static String getUid(ObjectName on)(Code)
Returns the UID portion of the name key property of an object name representing a "CrawlService.Job" bean. It is assumed that the name will have the format {crawl name}-{uid}.
Parameters:
  on - A CrawlServer.Job object name. Uid for a CrawlServer.Job.



isOpenType
public static boolean isOpenType(Class c)(Code)



isOpenType
public static boolean isOpenType(String classname)(Code)



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.