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


javax.jbi.management.DeploymentServiceMBean

DeploymentServiceMBean
public interface DeploymentServiceMBean (Code)
The deployment service MBean allows administrative tools to manage service assembly deployments. The tasks supported are:
  • Deploying a service assembly.
  • Undeploying a previously deployed service assembly.
  • Querying deployed service assemblies:
    • For all components in the system.
    • For a particular component.
  • Control the state of deployed service assemblies:
    • Start the service units that contained in the SA.
    • Stop the service units that contained in the SA.
    • Shut down the service units that contained in the SA.
  • Query the service units deployed to a particular component.
  • Check if a service unit is deployed to a particular component.
  • Query the deployment descriptor for a particular service assembly.

author:
   JSR208 Expert Group


Field Summary
final static  StringSHUTDOWN
    
final static  StringSTARTED
     The service assembly is started.
final static  StringSTOPPED
     The service assembly is stopped.


Method Summary
 booleancanDeployToComponent(String componentName)
     Returns true if the the given component accepts the deployment of service units.
public  Stringdeploy(String serviceAssemblyZipUrl)
     Deploys the given Service Assembly to the JBI environment.
 String[]getComponentsForDeployedServiceAssembly(String serviceAssemblyName)
     Returns an array of component names, where for each the given assembly contains a service unit for the component.
 String[]getDeployedServiceAssemblies()
     Returns a list of Service Assemblies deployed to the JBI environment.
 String[]getDeployedServiceAssembliesForComponent(String componentName)
     Returns an array of Service Assembly names, where each assembly contains Service Units for the given component.
 String[]getDeployedServiceUnitList(String componentName)
     Returns an array of service unit names that are currently deployed to the named component.
 StringgetServiceAssemblyDescriptor(String serviceAssemblyName)
     Returns the deployment descriptor of the Service Assembly that was deployed to the JBI enviroment, serialized to a String.
 StringgetState(String serviceAssemblyName)
     Get the running state of a service assembly.
 booleanisDeployedServiceUnit(String componentName, String serviceUnitName)
     Queries if the named Service Unit is currently deployed to the named component.
 StringshutDown(String serviceAssemblyName)
     Shut down the service assembly.
 Stringstart(String serviceAssemblyName)
     Start the service assembly.
 Stringstop(String serviceAssemblyName)
     Stop the service assembly.
 Stringundeploy(String serviceAssemblyName)
     Undeploys the given Service Assembly from the JBI environment.

Field Detail
SHUTDOWN
final static String SHUTDOWN(Code)
The service assembly has been deployed, or shutdown



STARTED
final static String STARTED(Code)
The service assembly is started. This means that the assembly's offered services can accept message exchanges, and it can send exchanges to consume services.



STOPPED
final static String STOPPED(Code)
The service assembly is stopped. This means that the assembly's offered services can accept message exchanges, but it will not send any.





Method Detail
canDeployToComponent
boolean canDeployToComponent(String componentName)(Code)
Returns true if the the given component accepts the deployment of service units. This is used by admin tools to determine which components can be named in service assembly deployment descriptors.
Parameters:
  componentName - name of the component; must be non-null and non-empty true if the named component accepts deployments;false if the named component does not acceptdeployments or it does not exist



deploy
public String deploy(String serviceAssemblyZipUrl) throws Exception(Code)
Deploys the given Service Assembly to the JBI environment.

Note that the implementation must not automatically start the service assembly after deployment; it must wait for the DeploymentServiceMBean.start(String) method to be invoked by the administrative tool.
Parameters:
  serviceAssemblyZipUrl - String containing the location URL of theService Assembly ZIP file; must be non-null, non-empty, and alegal URL Result/Status of the current deployment; must conform to JBI management result/status XML schema; must be non-null andnon-empty
exception:
  Exception - if complete deployment fails




getComponentsForDeployedServiceAssembly
String[] getComponentsForDeployedServiceAssembly(String serviceAssemblyName) throws Exception(Code)
Returns an array of component names, where for each the given assembly contains a service unit for the component.
Parameters:
  serviceAssemblyName - the service assembly to be queried; must benon-null and non-empty array of component names, where for each name the given assemblycontains a service unit from the given service assembly; mustbe non-null; may be empty
exception:
  Exception - if a processing error occurs



getDeployedServiceAssemblies
String[] getDeployedServiceAssemblies() throws Exception(Code)
Returns a list of Service Assemblies deployed to the JBI environment. list of Service Assembly names; must be non-null; may beempty
exception:
  Exception - if a processing error occurs



getDeployedServiceAssembliesForComponent
String[] getDeployedServiceAssembliesForComponent(String componentName) throws Exception(Code)
Returns an array of Service Assembly names, where each assembly contains Service Units for the given component.
Parameters:
  componentName - name of the component to query; must be non-nulland non-empty array of of Service Assembly names, where each assembly containsa Service Unit for the named component; must be non-null; maybe empty
exception:
  Exception - if a processing error occurs



getDeployedServiceUnitList
String[] getDeployedServiceUnitList(String componentName) throws Exception(Code)
Returns an array of service unit names that are currently deployed to the named component.
Parameters:
  componentName - the name of the component to query; must be non-null and non-empty array of service unit names deployed in the named component;must be non-null; may be empty
exception:
  Exception - if a processing error occurs



getServiceAssemblyDescriptor
String getServiceAssemblyDescriptor(String serviceAssemblyName) throws Exception(Code)
Returns the deployment descriptor of the Service Assembly that was deployed to the JBI enviroment, serialized to a String.
Parameters:
  serviceAssemblyName - name of the service assembly to be queried;must be non-null and non-empty descriptor of the Assembly Unit; must be non-null
exception:
  Exception - if a processing error occurs



getState
String getState(String serviceAssemblyName) throws Exception(Code)
Get the running state of a service assembly. The possible result values of this query are enumerated by the following set of constants: DeploymentServiceMBean.SHUTDOWN , DeploymentServiceMBean.STOPPED , DeploymentServiceMBean.STARTED .
Parameters:
  serviceAssemblyName - name of the assembly to query; must be non-null and non-empty the state of the service assembly, as a string value; must be oneof the enumerated string values provided by this interface:DeploymentServiceMBean.SHUTDOWN, DeploymentServiceMBean.STOPPED, or DeploymentServiceMBean.STARTED
exception:
  Exception - if there is no such assembly



isDeployedServiceUnit
boolean isDeployedServiceUnit(String componentName, String serviceUnitName) throws Exception(Code)
Queries if the named Service Unit is currently deployed to the named component.
Parameters:
  componentName - name of the component to query; must be non-nulland non-empty
Parameters:
  serviceUnitName - name of the subject service unit; must be non-nulland non-empty true if the named service unit is currently deployedto the named component



shutDown
String shutDown(String serviceAssemblyName) throws Exception(Code)
Shut down the service assembly. This puts the assembly back into the DeploymentServiceMBean.SHUTDOWN state.
Parameters:
  serviceAssemblyName - name of the assembly to be shut down; must benon-null and non-empty result / status string giving the results of shutting down each service unit in the assembly; must be non-null and non-empty
exception:
  Exception - if there is no such assembly
exception:
  Exception - if the assembly fails to shut down



start
String start(String serviceAssemblyName) throws Exception(Code)
Start the service assembly. This puts the assembly into the DeploymentServiceMBean.STARTED state.
Parameters:
  serviceAssemblyName - name of the assembly to be started; must benon-null and non-empty result / status string giving the results of starting (and possibly initializing) each service unit in the assembly; mustbe non-null and non-empty
exception:
  Exception - if there is no such assembly
exception:
  Exception - if the assembly fails to start



stop
String stop(String serviceAssemblyName) throws Exception(Code)
Stop the service assembly. This puts the assembly into the DeploymentServiceMBean.STOPPED state.
Parameters:
  serviceAssemblyName - name of the assembly to be stopped; must be non-null and non-empty result / status string giving the results of stopping each service unit in the assembly; must be non-null and non-empty
exception:
  Exception - if there is no such assembly
exception:
  Exception - if the assembly fails to stop



undeploy
String undeploy(String serviceAssemblyName) throws Exception(Code)
Undeploys the given Service Assembly from the JBI environment.
Parameters:
  serviceAssemblyName - name of the Service Assembly that is to be undeployed; must be non-null and non-empty Result/Status of the current undeployment; must conform to JBI management result/status XML schema; must be non-null andnon-empty
exception:
  Exception - if compelete undeployment fails



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