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


javax.jbi.component.ServiceUnitManager

All known Subclasses:   com.sun.jbi.management.binding.ModelBindingComponent,  deploytest.ConsolidatedSchemaComponent,  deploytest.BadInstallBindingComponent,  com.sun.jbi.ui.ant.test.statistics.SimpleTestEngine,  com.sun.jbi.ui.ant.test.binding2.rt.Binding2Deployer,  com.sun.jbi.management.engine.ModelEngineComponent,  com.sun.jbi.ui.cli.test.engine2.rt.Engine2Deployer,  com.sun.jbi.ui.cli.test.engine4.rt.Engine4Deployer,  com.sun.jbi.ui.ant.test.engine3.rt.Engine3Deployer,  deploytest.BadUninstallBindingComponent,  com.sun.jbi.internal.security.test.binding1.rt.ServiceUnitMgrImpl,  deploytest.UpgradableComponent,  com.sun.jbi.ui.ant.test.engine2.rt.Engine2Deployer,  deploytest.BindingComponent,  deploytest.ExtensionBindingComponent,  com.sun.jbi.ui.ant.test.engine4.rt.Engine4Deployer,  com.sun.jbi.ui.cli.test.binding2.rt.Binding2Deployer,  com.sun.jbi.ui.cli.test.statistics.SimpleTestEngine,  com.sun.jbi.binding.jms.deploy.JMSBindingSUManager,  com.sun.jbi.binding.file.FileBindingSUManager,  com.sun.jbi.framework.AbstractComponent,  testcomponent.BindingComponent,  deploytest.DeployOnceBindingComponent,  java4ant.BindingComponent,  com.sun.jbi.ui.ant.test.engine1.rt.Engine1Deployer,  com.sun.jbi.engine.sequencing.SequencingEngineSUManager,  com.sun.jbi.engine.xslt.TransformationEngineSUManager,  deploytest.StartOneDeploymentComponent,  test.SimpleTestEngine,  deploytest.FileLockingComponent,  test.BindingComponent,  deploytest.DeployBinding,  com.sun.jbi.ui.cli.test.engine1.rt.Engine1Deployer,  com.sun.jbi.ui.cli.test.engine3.rt.Engine3Deployer,  testcomponent1.BindingComponent1,  com.sun.jbi.ui.cli.test.binding1.rt.Binding1Deployer,  com.sun.jbi.ui.ant.test.binding1.rt.Binding1Deployer,
ServiceUnitManager
public interface ServiceUnitManager (Code)
This interface defines component-supplied methods for managing service unit deployments, and is implemented by the component. The JBI implementation queries the component for the implementation of this interface using the Component.getServiceUnitManager method.
author:
   JSR208 Expert Group




Method Summary
 Stringdeploy(String serviceUnitName, String serviceUnitRootPath)
     Deploy a Service Unit to the component.
 voidinit(String serviceUnitName, String serviceUnitRootPath)
     Initialize the given deployed service unit.
 voidshutDown(String serviceUnitName)
     Shut down the deployment.
 voidstart(String serviceUnitName)
     Start the deployed service unit.
 voidstop(String serviceUnitName)
     Stop the deployed service unit.
 Stringundeploy(String serviceUnitName, String serviceUnitRootPath)
     Undeploy a service unit from the component.



Method Detail
deploy
String deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)
Deploy a Service Unit to the component. This is called by the JBI implementation in order to deploy the given artifact to the implementing component.

Upon successful deployment, a non-empty result string must be returned, that starts with the JBI-defined component-task-result element. For example:

 <component-task-result>
 <component-name>BC1</component-name>
 <component-task-result-details
 xmlns="http://java.sun.com/xml/ns/jbi/management-message">
 <task-result-details>
 <task-id>deploy</task-id>
 <task-result>SUCCESS</task-result>
 </task-result-details>
 </component-task-result-details>
 </component-task-result>
 
A failed deployment of the service unit must be reported using the component-task-result element as well; the task-result must be set to FAILED.
Parameters:
  serviceUnitName - name of the service unit being deployed; must benon-null and non-empty and unique among service units alreadydeployed to the component.
Parameters:
  serviceUnitRootPath - path of the service unit artifact root, inplatform specific format; must be non-null and non-empty. a deployment status message, which is an XML string that conformsto the schema given in the MBean Status and Result Stringssection of the Management chapter of the JBIspecification; must be non-null and non-empty.
exception:
  DeploymentException - if the deployment operation isunsuccessful.



init
void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)
Initialize the given deployed service unit. This is the first phase of a two-phase start, where the component must prepare to receive service requests related to the deployment (if any).

The serviceUnitRootPath parameter is provided to facilitate restart of the component. This allows simple components to rely entirely on JBI's ability to persist deployment information, avoiding the need for the component to provide its own persistence mechanism.
Parameters:
  serviceUnitName - name of the service unit being initialized; mustbe non-null, non-empty, and match the name of a previouslydeployed (but not yet undeployed) service unit.
Parameters:
  serviceUnitRootPath - path of the service unit artifact root, inplatform specific format; must be non-null and non-empty.
exception:
  DeploymentException - if the service unit is not deployed, orif it is in an incorrect state.




shutDown
void shutDown(String serviceUnitName) throws DeploymentException(Code)
Shut down the deployment. This causes the deployment to return to the to the state it was in after ServiceUnitManager.deploy(String,String) , and before ServiceUnitManager.init(String,String) .
Parameters:
  serviceUnitName - name of the service unit being shut down; mustbe non-null, non-empty, and match the name of a previouslydeployed (but not yet undeployed) service unit.
exception:
  DeploymentException - if the service unit is not deployed, orif it is in an incorrect state.



start
void start(String serviceUnitName) throws DeploymentException(Code)
Start the deployed service unit. This is the second phase of a two-phase start, where the component can now initiate service requests related to the deployment.
Parameters:
  serviceUnitName - the name of the service unit being started; mustbe non-null, non-empty, and match the name of a previouslydeployed (but not yet undeployed) service unit.
exception:
  DeploymentException - if the service unit is not deployed, orif it is in an incorrect state.



stop
void stop(String serviceUnitName) throws DeploymentException(Code)
Stop the deployed service unit. This causes the component to cease generating service requests related to the given service unit. This returns the service unit to a state equivalent to after ServiceUnitManager.init(String,String) was called.
Parameters:
  serviceUnitName - name of the service unit being stopped; mustbe non-null, non-empty, and match the name of a previouslydeployed (but not yet undeployed) service unit.
exception:
  DeploymentException - if the service unit is not deployed, orif it is in an incorrect state.



undeploy
String undeploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException(Code)
Undeploy a service unit from the component. The service unit must be shut down to undeploy it.
Parameters:
  serviceUnitName - name of the service unit being undeployed; mustbe non-null, non-empty, and match the name of a previouslydeployed (but not yet undeployed) service unit.
Parameters:
  serviceUnitRootPath - path of the service unit artifact root, inplatform specific format; must be non-null and non-empty. deployment status message, which is an XML string that conformsto the component-task-result type fromthe schema given in the MBean Status and Result Stringssection of the Management chapter of the JBIspecification; must be non-null and non-empty.
exception:
  DeploymentException - if undeployment operation is unsuccessful,or if the service unit is in an incorrect state.



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