Java Doc for JEMBeanHelper.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.JEMBeanHelper

JEMBeanHelper
public class JEMBeanHelper (Code)
JEMBeanHelper is a utility class for the MBean implementation which wants to add management of a JE environment to its capabilities. MBean implementations can contain a JEMBeanHelper instance to get MBean metadata for JE and to set attributes, get attributes, and invoke operations.

com.sleepycat.je.jmx.JEMonitor and the example program jmx.JEApplicationMBean are two MBean implementations which provide support different application use cases. See those classes for examples of how to use JEMBeanHelper.

This class was copied from the bdb je 2.0 jmx examples.



Field Summary
final public static  StringATT_CACHE_PERCENT
    
final public static  StringATT_CACHE_SIZE
    
final public static  StringATT_ENV_HOME
    
final public static  StringATT_IS_READ_ONLY
    
final public static  StringATT_IS_SERIALIZABLE
    
final public static  StringATT_IS_TRANSACTIONAL
    
final public static  StringATT_LOCK_TIMEOUT
    
final public static  StringATT_OPEN
    
final public static  StringATT_SET_READ_ONLY
    
final public static  StringATT_SET_SERIALIZABLE
    
final public static  StringATT_SET_TRANSACTIONAL
    
final public static  StringATT_TXN_TIMEOUT
    
final static  StringOP_CHECKPOINT
    
final static  StringOP_CLEAN
    
final static  StringOP_DB_NAMES
    
final static  StringOP_DB_STAT
    
final static  StringOP_ENV_STAT
    
final static  StringOP_ENV_STAT_STR
    
final static  StringOP_EVICT
    
final static  StringOP_LOCK_STAT
    
final static  StringOP_LOCK_STAT_STR
    
final static  StringOP_SYNC
    
final static  StringOP_TXN_STAT
    

Constructor Summary
public  JEMBeanHelper(EnvironmentConfig config, File environmentHome, boolean canConfigure)
     Instantiate a helper, specifying environment home and open capabilities.

Method Summary
public  ObjectgetAttribute(Environment targetEnv, String attributeName)
     Get an attribute value for the given environment.
public  List<MBeanAttributeInfo>getAttributeList(Environment targetEnv)
     Get MBean attribute metadata for this environment.
Parameters:
  targetEnv - The target JE environment.
public  FilegetEnvironmentHome()
     Return the target environment directory.
public  EnvironmentgetEnvironmentIfOpen()
     Return an Environment only if the environment has already been opened in this process.
public  EnvironmentConfiggetEnvironmentOpenConfig()
     If the helper was instantiated with canConfigure==true, it shows environment configuration attributes.
public synchronized  booleangetNeedReset()
     Tell the MBean if the available set of functionality has changed.
public  MBeanNotificationInfo[]getNotificationInfo(Environment targetEnv)
     No notifications are supported.
public  List<MBeanOperationInfo>getOperationList(Environment targetEnv)
     Get mbean operation metadata for this environment.
Parameters:
  targetEnv - The target JE environment.
public  Objectinvoke(Environment targetEnv, String actionName, Object[] params, String[] signature)
     Invoke an operation for the given environment.
Parameters:
  targetEnv - The target JE environment.
public  voidsetAttribute(Environment targetEnv, Attribute attribute)
     Set an attribute value for the given environment.
Parameters:
  targetEnv - The target JE environment.

Field Detail
ATT_CACHE_PERCENT
final public static String ATT_CACHE_PERCENT(Code)



ATT_CACHE_SIZE
final public static String ATT_CACHE_SIZE(Code)



ATT_ENV_HOME
final public static String ATT_ENV_HOME(Code)



ATT_IS_READ_ONLY
final public static String ATT_IS_READ_ONLY(Code)



ATT_IS_SERIALIZABLE
final public static String ATT_IS_SERIALIZABLE(Code)



ATT_IS_TRANSACTIONAL
final public static String ATT_IS_TRANSACTIONAL(Code)



ATT_LOCK_TIMEOUT
final public static String ATT_LOCK_TIMEOUT(Code)



ATT_OPEN
final public static String ATT_OPEN(Code)



ATT_SET_READ_ONLY
final public static String ATT_SET_READ_ONLY(Code)



ATT_SET_SERIALIZABLE
final public static String ATT_SET_SERIALIZABLE(Code)



ATT_SET_TRANSACTIONAL
final public static String ATT_SET_TRANSACTIONAL(Code)



ATT_TXN_TIMEOUT
final public static String ATT_TXN_TIMEOUT(Code)



OP_CHECKPOINT
final static String OP_CHECKPOINT(Code)



OP_CLEAN
final static String OP_CLEAN(Code)



OP_DB_NAMES
final static String OP_DB_NAMES(Code)



OP_DB_STAT
final static String OP_DB_STAT(Code)



OP_ENV_STAT
final static String OP_ENV_STAT(Code)



OP_ENV_STAT_STR
final static String OP_ENV_STAT_STR(Code)



OP_EVICT
final static String OP_EVICT(Code)



OP_LOCK_STAT
final static String OP_LOCK_STAT(Code)



OP_LOCK_STAT_STR
final static String OP_LOCK_STAT_STR(Code)



OP_SYNC
final static String OP_SYNC(Code)



OP_TXN_STAT
final static String OP_TXN_STAT(Code)




Constructor Detail
JEMBeanHelper
public JEMBeanHelper(EnvironmentConfig config, File environmentHome, boolean canConfigure)(Code)
Instantiate a helper, specifying environment home and open capabilities.
Parameters:
  environmentHome - home directory of the target JE environment.
Parameters:
  canConfigure - If true, the helper will show environmentconfiguration attributes.




Method Detail
getAttribute
public Object getAttribute(Environment targetEnv, String attributeName) throws AttributeNotFoundException, MBeanException(Code)
Get an attribute value for the given environment. Check JEMBeanHelper.getNeedReset() after this call because the helper may detect that the environment has changed and that the MBean metadata should be reset.
Parameters:
  targetEnv - The target JE environment. May be null if theenvironment is not open.
Parameters:
  attributeName - attribute name. attribute value.



getAttributeList
public List<MBeanAttributeInfo> getAttributeList(Environment targetEnv)(Code)
Get MBean attribute metadata for this environment.
Parameters:
  targetEnv - The target JE environment. May be null if theenvironment is not open. list of MBeanAttributeInfo objects describing the availableattributes.



getEnvironmentHome
public File getEnvironmentHome()(Code)
Return the target environment directory. the environment directory.



getEnvironmentIfOpen
public Environment getEnvironmentIfOpen()(Code)
Return an Environment only if the environment has already been opened in this process. A helper method for MBeans which want to only access open environments. Environment if already open, null if not open.



getEnvironmentOpenConfig
public EnvironmentConfig getEnvironmentOpenConfig()(Code)
If the helper was instantiated with canConfigure==true, it shows environment configuration attributes. Those attributes are returned within this EnvironmentConfig object for use in opening environments. EnvironmentConfig object which saves configuration attributesrecorded through MBean attributes.



getNeedReset
public synchronized boolean getNeedReset()(Code)
Tell the MBean if the available set of functionality has changed. true if the MBean should regenerate its JE metadata.



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo(Environment targetEnv)(Code)
No notifications are supported. List of MBeanNotificationInfo for available notifications.



getOperationList
public List<MBeanOperationInfo> getOperationList(Environment targetEnv)(Code)
Get mbean operation metadata for this environment.
Parameters:
  targetEnv - The target JE environment. May be null if theenvironment is not open. List of MBeanOperationInfo describing available operations.



invoke
public Object invoke(Environment targetEnv, String actionName, Object[] params, String[] signature) throws MBeanException(Code)
Invoke an operation for the given environment.
Parameters:
  targetEnv - The target JE environment. May be null if theenvironment is not open.
Parameters:
  actionName - operation name.
Parameters:
  params - operation parameters. May be null.
Parameters:
  signature - operation signature. May be null. the operation result



setAttribute
public void setAttribute(Environment targetEnv, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException(Code)
Set an attribute value for the given environment.
Parameters:
  targetEnv - The target JE environment. May be null if theenvironment is not open.
Parameters:
  attribute - name/value pair



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.