Java Doc for RegistryMBean.java in  » Library » Apache-commons-modeler-2.0.1-src » org » apache » commons » modeler » 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 » Library » Apache commons modeler 2.0.1 src » org.apache.commons.modeler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.modeler.RegistryMBean

All known Subclasses:   org.apache.commons.modeler.Registry,
RegistryMBean
public interface RegistryMBean (Code)
Interface for modeler MBeans. This is the main entry point into modeler. It provides methods to create and manipulate model mbeans and simplify their use. Starting with version 1.1, this is no longer a singleton and the static methods are strongly deprecated. In a container environment we can expect different applications to use different registries.
author:
   Craig R. McClanahan
author:
   Costin Manolache
since:
   1.1




Method Summary
public  intgetId(String domain, String name)
     Return an int ID for faster access.
public  voidinvoke(List mbeans, String operation, boolean failFirst)
     Invoke an operation on a set of mbeans.
public  ListloadMBeans(Object source, ClassLoader cl)
     Load an extended mlet file.
public  voidloadMetadata(Object source)
     Load descriptors.
public  voidregisterComponent(Object bean, String oname, String type)
     Register a bean by creating a modeler mbean and adding it to the MBeanServer. If metadata is not loaded, we'll look up and read a file named "mbeans-descriptors.ser" or "mbeans-descriptors.xml" in the same package or parent. If the bean is an instance of DynamicMBean.
public  voidstop()
     Reset all metadata cached by this registry.
public  voidunregisterComponent(String oname)
     Unregister a component.



Method Detail
getId
public int getId(String domain, String name)(Code)
Return an int ID for faster access. Will be used for notifications and for other operations we want to optimize.
Parameters:
  domain - Namespace
Parameters:
  name - Type of the notification An unique id for the domain:name combination
since:
   1.1



invoke
public void invoke(List mbeans, String operation, boolean failFirst) throws Exception(Code)
Invoke an operation on a set of mbeans.
Parameters:
  mbeans - List of ObjectNames
Parameters:
  operation - Operation to perform. Typically "init" "start" "stop" or "destroy"
Parameters:
  failFirst - Behavior in case of exceptions - if false we'll ignoreerrors
throws:
  Exception -



loadMBeans
public List loadMBeans(Object source, ClassLoader cl) throws Exception(Code)
Load an extended mlet file. The source can be an URL, File or InputStream. All mbeans will be instantiated, registered and the attributes will be set. The result is a list of ObjectNames.
Parameters:
  source - InputStream or URL of the file
Parameters:
  cl - ClassLoader to be used to load the mbeans, or null to use thedefault JMX mechanism ( i.e. all registered loaders ) List of ObjectName for the loaded mbeans
throws:
  Exception -
since:
   1.1



loadMetadata
public void loadMetadata(Object source) throws Exception(Code)
Load descriptors. The source can be a File, URL pointing to an mbeans-descriptors.xml. Also ( experimental for now ) a ClassLoader - in which case META-INF/ will be used.
Parameters:
  source -



registerComponent
public void registerComponent(Object bean, String oname, String type) throws Exception(Code)
Register a bean by creating a modeler mbean and adding it to the MBeanServer. If metadata is not loaded, we'll look up and read a file named "mbeans-descriptors.ser" or "mbeans-descriptors.xml" in the same package or parent. If the bean is an instance of DynamicMBean. it's metadata will be converted to a model mbean and we'll wrap it - so modeler services will be supported If the metadata is still not found, introspection will be used to extract it automatically. If an mbean is already registered under this name, it'll be first unregistered. If the component implements MBeanRegistration, the methods will be called. If the method has a method "setRegistry" that takes a RegistryMBean as parameter, it'll be called with the current registry.
Parameters:
  bean - Object to be registered
Parameters:
  oname - Name used for registration
Parameters:
  type - The type of the mbean, as declared in mbeans-descriptors. Ifnull, the name of the class will be used. This can be used as a hint orby subclasses.
since:
   1.1



stop
public void stop()(Code)
Reset all metadata cached by this registry. Should be called to support reloading. Existing mbeans will not be affected or modified. It will be called automatically if the Registry is unregistered.
since:
   1.1



unregisterComponent
public void unregisterComponent(String oname)(Code)
Unregister a component. We'll first check if it is registered, and mask all errors. This is mostly a helper.
Parameters:
  oname -
since:
   1.1



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