Java Doc for ComponentManager.java in  » ESB » open-esb » com » sun » jbi » 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 » ESB » open esb » com.sun.jbi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.jbi.ComponentManager

All known Subclasses:   com.sun.jbi.messaging.NMRContext,  com.sun.jbi.management.system.ScaffoldEnvironmentContext,  com.sun.jbi.framework.ComponentFramework,
ComponentManager
public interface ComponentManager (Code)
This is the public interface to the Component Framework, which provides installation and management of Binding Components, Service Engines, and and Shared Libraries within the JBI environment.
author:
   Sun Microsystems, Inc.




Method Summary
 voidcancelComponentUpgrade(String componentName)
     Cancel a pending component upgrade.
 javax.jbi.component.ComponentgetComponentInstance(String componentName)
     Get the javax.jbi.component.Component instance for the component with the specified name.
 com.sun.jbi.framework.DeployerMBeangetDeployerInstance(String componentName)
     Get the com.sun.jbi.framework.DeployerMBean instance for the component with the specified name.
 voidinstallSharedLibrary(String name, String description, String componentRoot, boolean isSelfFirst, List elements)
     Install a Shared Library into the JBI framework.
Parameters:
  name - The unique name of the Shared Library.
Parameters:
  description - The description of the Shared Library.
Parameters:
  componentRoot - The root directory for this Shared Library.
Parameters:
  isSelfFirst - Set to true to force the class loader for this SharedLibrary to use a self-first hierarchy, or false for parent-first.
Parameters:
  elements - The list of jar files and class directories included inthis Shared Library, as a List of String objects in the order in whichthey should appear in the class path.
 ObjectNameloadBootstrap(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List bootClassPathElements, List sharedLibraryList)
     Load a component's bootstrap into the JBI framework.
 voiduninstallSharedLibrary(String id)
     Uninstall a Shared Library from the JBI framework.
 voidunloadBootstrap(String componentName)
     Unload a component's bootstrap from the JBI framework.
 voidupgradeComponent(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList)
     Upgrade an installed component.
 booleanvalidateComponentForUpgrade(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList)
     Validate a component for upgrade.



Method Detail
cancelComponentUpgrade
void cancelComponentUpgrade(String componentName) throws javax.jbi.JBIException(Code)
Cancel a pending component upgrade. This is called when some failure has occurred after validateComponentForUpgrade() has already been called but before upgradeComponent() is called. All this method does is return the component to the SHUTDOWN state and remove the busy indicator from the component entry in the runtime registry cache.
Parameters:
  componentName - The name of the component.
throws:
  javax.jbi.JBIException - if the component does not exist.



getComponentInstance
javax.jbi.component.Component getComponentInstance(String componentName)(Code)
Get the javax.jbi.component.Component instance for the component with the specified name. If no instance exists, returns null.
Parameters:
  componentName - The unique name of the component. The instance of javax.jbi.component.Component or null if noneis found.



getDeployerInstance
com.sun.jbi.framework.DeployerMBean getDeployerInstance(String componentName)(Code)
Get the com.sun.jbi.framework.DeployerMBean instance for the component with the specified name. If no instance exists, returns null.
Parameters:
  componentName - The unique name of the component. The instance of com.sun.jbi.framework.DeployerMBean or null ifnone is found.



installSharedLibrary
void installSharedLibrary(String name, String description, String componentRoot, boolean isSelfFirst, List elements) throws javax.jbi.JBIException(Code)
Install a Shared Library into the JBI framework.
Parameters:
  name - The unique name of the Shared Library.
Parameters:
  description - The description of the Shared Library.
Parameters:
  componentRoot - The root directory for this Shared Library.
Parameters:
  isSelfFirst - Set to true to force the class loader for this SharedLibrary to use a self-first hierarchy, or false for parent-first.
Parameters:
  elements - The list of jar files and class directories included inthis Shared Library, as a List of String objects in the order in whichthey should appear in the class path. Each list element contains the fullpath to either a jar file or a directory containing class files.
throws:
  javax.jbi.JBIException - if any error occurs.



loadBootstrap
ObjectName loadBootstrap(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List bootClassPathElements, List sharedLibraryList) throws javax.jbi.JBIException(Code)
Load a component's bootstrap into the JBI framework. This is the first step in the installation and uninstallation processes. It creates and registers the InstallerMBean that is used to complete the installation or uninstallation.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassName - The name of the bootstrap class for the component.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or a directorycontaining class files.
Parameters:
  sharedLibraryList - A list of String objects specifing the names ofthe Shared Libraries required by the component, in the order in whichthey should appear in the class path. The JMX object name of the installation configuration MBeanprovided by the component, if any is provided, or null otherwise.
throws:
  javax.jbi.JBIException - if the bootstrap cannot be loaded.



uninstallSharedLibrary
void uninstallSharedLibrary(String id) throws javax.jbi.JBIException(Code)
Uninstall a Shared Library from the JBI framework. A Shared Library cannot be uninstalled until all dependent components (BCs and SEs) have been shut down. If any active dependent components are found, the uninstall of the Shared Library is aborted.
Parameters:
  id - The component ID of the Shared Library.
throws:
  javax.jbi.JBIException - if the uninstall fails.



unloadBootstrap
void unloadBootstrap(String componentName) throws javax.jbi.JBIException(Code)
Unload a component's bootstrap from the JBI framework. This is the last step in the installation and uninstallation processes. It unregisters the InstallerMBean that was used to complete the installation or uninstallation, and calls the bootstrap cleanUp() method if it has not yet been called. Note that in the case where the this method is called after loadBootstrap() for a new component, without an intervening call to installComponent(), the Component instance is removed here.
Parameters:
  componentName - The unique name of the component.
throws:
  javax.jbi.JBIException - if the bootstrap cannot be unloaded.



upgradeComponent
void upgradeComponent(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList) throws javax.jbi.JBIException(Code)
Upgrade an installed component. This is used to upgrade a component to a newer version without requiring the component to be uninstalled (which requires undeployment of all Service Assemblies that have Service Units deployed to the component). There are two ways a component can be updated. If the component does not provide an upgrade() method in its bootstrap class, then the runtime jar files are updated and any changes to the component's installation descriptor in jbi.xml are propagated. If the component provides an upgrade() method, that method is called to give the component the opportunity to upgrade its workspace and all SUs deployed to it to a new version. In this case, it is the responsibility of the component to perform all version verification, and to provide any recovery processing required in the event of a failed upgrade.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassName - The name of the component's bootstrap class.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or adirectory containing class files.
Parameters:
  sharedLibraryList - A list of String objects specifingthe names of the Shared Libraries required by the component, in the orderin which they should appear in the class path.
throws:
  javax.jbi.JBIException - if the update fails for some reason.



validateComponentForUpgrade
boolean validateComponentForUpgrade(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList) throws javax.jbi.JBIException(Code)
Validate a component for upgrade. This validates that the runtime jar files provided for the upgrade contain valid implementations of the required interfaces and the component classes will load correctly. It also verifies that all Shared Library dependencies are met. Finally, it determines whether or not the component has provided an implementation of the upgrade() method and returns an indicator of that to the caller.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassName - The name of the bootstrap class for the component.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or adirectory containing class files.
Parameters:
  sharedLibraryList - A list of String objects specifingthe names of the Shared Libraries required by the component, in the orderin which they should appear in the class path. true if the component provided an upgrade() method, false if not.
throws:
  javax.jbi.JBIException - if there is a problem with the componentimplementation classes or with Shared Library dependencies.



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