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


java.lang.Object
   com.sun.jbi.framework.ComponentRegistry

ComponentRegistry
public class ComponentRegistry implements com.sun.jbi.ServiceLifecycle,com.sun.jbi.ServiceUnitRegistration(Code)
This is the implementation of the Component Registry, which provides for registration of Shared Libraries, Binding Components, and Service Engines within the JBI environment.
author:
   Sun Microsystems, Inc.




Method Summary
 voidcommitComponent(String componentName)
     Commit a Binding Component or a Service Engine.
 ListgetAllComponents()
     Get a list of all installed Components (Binding Components and Service Engines).
 ListgetAllSharedLibraries()
     Get a list of all installed Shared Libraries.
 ComponentgetComponent(String componentName)
     Look up a component (Binding Component or Service Engine) using its unique name.
 List<String>getComponentIdsFromCache(ComponentType type, ComponentState status)
     Get a list of component IDs of the specified type, with the specified status.
Parameters:
  type - The type of component for which the IDs are requested.
Parameters:
  status - The status for which the IDs are requested.
 ListgetDependents(String sharedLibraryName)
     Return a list of all components dependent upon the specified Shared Library.
Parameters:
  sharedLibraryName - - the name of the Shared Library.
 SharedLibrarygetSharedLibrary(String sharedLibraryName)
     Look up a SharedLibrary object using its assigned name.
Parameters:
  sharedLibraryName - The unique name of the Shared Library.
public  ComponentStategetStatus(String componentName)
     Get the current state of a Binding Component or Service Engine.
public  voidinitService(com.sun.jbi.EnvironmentContext context)
     Initialize the Component Registry service.
 booleanisComponentRegistered(String componentName)
     Check to see if a component with the specified name is registered.
Parameters:
  componentName - is the component name to check for.
public  booleanisServiceUnitRegistered(String componentName, String serviceUnitName)
     Check to see if a Service Unit with the specified name is registered to the specified BC or SE.
Parameters:
  componentName - is the unique name of the BC or SE to check.
Parameters:
  serviceUnitName - is the unique name of the Service Unit to checkfor.
 booleanisSharedLibraryRegistered(String sharedLibraryName)
     Check to see if a Shared Library with the specified name is registered.
Parameters:
  sharedLibraryName - is the Shared Library to check for.
 voidregisterComponent(Component component)
     Register a Binding Component or a Service Engine.
public synchronized  voidregisterServiceUnit(String componentName, String serviceAssemblyName, String serviceUnitName, String serviceUnitFilePath)
     Register a Service Unit that has been deployed to a particular BC or SE.
 voidregisterSharedLibrary(SharedLibrary sharedLib)
     Register the unique name and class path for a Shared Library.
 voidremoveComponent(String componentName)
     Remove a Binding Component or a Service Engine from the registry after a failed installation This is used when the registry entry has not yet been propagated to the persistent registry.
public  voidstartService()
     Start the Component Registry service.
public  voidstopService()
     Stop the Component Registry service.
 voidunregisterComponent(String componentName)
     Unregister a Binding Component or a Service Engine.
public  voidunregisterServiceUnit(String componentName, String serviceUnitName)
     Unregister a Service Unit that has been undeployed from a particular BC or SE.
 voidunregisterSharedLibrary(String sharedLibraryName)
     Unregister a Shared Library.



Method Detail
commitComponent
void commitComponent(String componentName) throws javax.jbi.JBIException(Code)
Commit a Binding Component or a Service Engine. This causes the component to be permanently registered in the persistent registry after installation is complete.
Parameters:
  componentName - the unique component name.
throws:
  javax.jbi.JBIException - if any error occurs.



getAllComponents
List getAllComponents()(Code)
Get a list of all installed Components (Binding Components and Service Engines). A list of Component instances.



getAllSharedLibraries
List getAllSharedLibraries()(Code)
Get a list of all installed Shared Libraries. A list of SharedLibrary instances.



getComponent
Component getComponent(String componentName)(Code)
Look up a component (Binding Component or Service Engine) using its unique name.
Parameters:
  componentName - is the unique name of the BC or SE. Component contains all runtime information about the componentor null if no BC or SE was found with the specified name.
throws:
  java.lang.IllegalArgumentException - if the componentName parameteris null.



getComponentIdsFromCache
List<String> getComponentIdsFromCache(ComponentType type, ComponentState status)(Code)
Get a list of component IDs of the specified type, with the specified status.
Parameters:
  type - The type of component for which the IDs are requested.
Parameters:
  status - The status for which the IDs are requested. A list of Strings containing the component IDs. If no componentswere found, the list is empty.



getDependents
List getDependents(String sharedLibraryName)(Code)
Return a list of all components dependent upon the specified Shared Library.
Parameters:
  sharedLibraryName - - the name of the Shared Library. A list containing the Component instances of all componentsthat depend upon the Shared Library.



getSharedLibrary
SharedLibrary getSharedLibrary(String sharedLibraryName)(Code)
Look up a SharedLibrary object using its assigned name.
Parameters:
  sharedLibraryName - The unique name of the Shared Library. The SharedLibrary instance, or null if no Shared Library wasfound with the specified name.



getStatus
public ComponentState getStatus(String componentName) throws javax.jbi.JBIException(Code)
Get the current state of a Binding Component or Service Engine. The returned value is one of the component state values defined in the com.sun.jbi.ComponentState enumerator: LOADED, SHUTDOWN, STOPPED, or or STARTED.
Parameters:
  componentName - the unique component name assigned to the BC or SE. the current state of the BC or SE.
throws:
  javax.jbi.JBIException - if the component name is not found.



initService
public void initService(com.sun.jbi.EnvironmentContext context) throws javax.jbi.JBIException(Code)
Initialize the Component Registry service.
Parameters:
  context - The JBI environment context created by the JBI framework.
throws:
  javax.jbi.JBIException - if an error occurs



isComponentRegistered
boolean isComponentRegistered(String componentName) throws javax.jbi.JBIException(Code)
Check to see if a component with the specified name is registered.
Parameters:
  componentName - is the component name to check for. boolean is true if the component is registered, false if not.
throws:
  javax.jbi.JBIException - if any error occurs.



isServiceUnitRegistered
public boolean isServiceUnitRegistered(String componentName, String serviceUnitName) throws javax.jbi.JBIException(Code)
Check to see if a Service Unit with the specified name is registered to the specified BC or SE.
Parameters:
  componentName - is the unique name of the BC or SE to check.
Parameters:
  serviceUnitName - is the unique name of the Service Unit to checkfor. boolean is true if the Service Unit is registered, false if not.
throws:
  javax.jbi.JBIException - if no component exists with the specifiedcomponent name.



isSharedLibraryRegistered
boolean isSharedLibraryRegistered(String sharedLibraryName) throws javax.jbi.JBIException(Code)
Check to see if a Shared Library with the specified name is registered.
Parameters:
  sharedLibraryName - is the Shared Library to check for. boolean is true if the Shared Library is registered, false if not.
throws:
  javax.jbi.JBIException - if any error occurs.



registerComponent
void registerComponent(Component component) throws javax.jbi.JBIException(Code)
Register a Binding Component or a Service Engine.
Parameters:
  component - contains the component runtime information.
throws:
  javax.jbi.JBIException - if any error occurs.



registerServiceUnit
public synchronized void registerServiceUnit(String componentName, String serviceAssemblyName, String serviceUnitName, String serviceUnitFilePath) throws javax.jbi.JBIException(Code)
Register a Service Unit that has been deployed to a particular BC or SE. This is done after a successful deployment operation.
Parameters:
  componentName - The unique name of the BC or SE.
Parameters:
  serviceAssemblyName - The unique name of the Service Assembly.
Parameters:
  serviceUnitName - The unique name of the Service Unit.
Parameters:
  serviceUnitFilePath - The fully-qualified path to the Service Unitdeployment descriptor.
throws:
  javax.jbi.JBIException - if no component exists with the specifiedcomponent name or if there is already a Service Unit with the specifiedservice unit name registered to the component.



registerSharedLibrary
void registerSharedLibrary(SharedLibrary sharedLib) throws javax.jbi.JBIException(Code)
Register the unique name and class path for a Shared Library.
Parameters:
  sharedLib - The Shared Library instance.
throws:
  javax.jbi.JBIException - if any error occurs.



removeComponent
void removeComponent(String componentName) throws javax.jbi.JBIException(Code)
Remove a Binding Component or a Service Engine from the registry after a failed installation This is used when the registry entry has not yet been propagated to the persistent registry.
Parameters:
  componentName - the unique name of the BC or SE.
throws:
  javax.jbi.JBIException - if any error occurs.



startService
public void startService() throws javax.jbi.JBIException(Code)
Start the Component Registry service.
throws:
  javax.jbi.JBIException - if an error occurs



stopService
public void stopService() throws javax.jbi.JBIException(Code)
Stop the Component Registry service.
throws:
  javax.jbi.JBIException - if an error occurs



unregisterComponent
void unregisterComponent(String componentName) throws javax.jbi.JBIException(Code)
Unregister a Binding Component or a Service Engine.
Parameters:
  componentName - the unique name of the BC or SE.
throws:
  javax.jbi.JBIException - if any error occurs.



unregisterServiceUnit
public void unregisterServiceUnit(String componentName, String serviceUnitName) throws javax.jbi.JBIException(Code)
Unregister a Service Unit that has been undeployed from a particular BC or SE. This is done after a successful undeployment operation.
Parameters:
  componentName - The unique name of the BC or SE.
Parameters:
  serviceUnitName - The unique name of the Service Unit.
throws:
  javax.jbi.JBIException - if no component exists with the specifiedcomponent name or if there is no Service Unit with the specifiedservice unit name registered to the component.



unregisterSharedLibrary
void unregisterSharedLibrary(String sharedLibraryName) throws javax.jbi.JBIException(Code)
Unregister a Shared Library.
Parameters:
  sharedLibraryName - is the name of the Shared Library.
throws:
  javax.jbi.JBIException - if any error occurs.



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.