Java Doc for EarServiceImpl.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » ear » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.ear 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.service.AbsServiceImpl
   org.objectweb.jonas.ear.EarServiceImpl

EarServiceImpl
public class EarServiceImpl extends AbsServiceImpl implements EarService,EarServiceImplMBean(Code)
JOnAS EAR Service Implementation class. This class provides an implementation of the ear service.
author:
   Florent Benoit
author:
   Ludovic Bert Contributor(s): Adriana Danes: highlight configuration
author:
   properties Eric Hardesty: added ability to include rar files in an
author:
   ear Michel-Ange Anton : new JSR77 MBean


Field Summary
final protected static  StringAPPS_DIR
     The name of the apps directory.
final protected static  StringAUTOLOADDIR
    
final protected static  StringCLASS
    
final protected static  StringDESCRIPTORS
    
final protected static  StringJONAS_BASE
     The name of the JONAS_BASE directory.
final protected static  StringPARSINGWITHVALIDATION
    
final protected static  StringWORK_APPS_DIR
     The name of the working apps directory.
final protected static  StringWORK_DIR
     The name of the working directory.


Method Summary
public static  StringbuildJ2eeApplicationName(URL pUrl)
     Build the J2EEApplication name.
public static  StringbuildJ2eeApplicationName(String pFilename)
     Build the J2EEApplication name.
public  StringdeployEar(Context ctx)
     Deploy an EAR file with sending JAR file to the EJB container and WAR file to the WEB container and RAR file to the resource service.
Parameters:
  ctx - the context which contains the configuration in order todeploy an EAR.
public  StringdeployEar(String fileName)
    
public  StringdeployEarMBean(String fileName)
     Deploy an EAR by delegating the operation to the deployEar() method.
protected  voiddoInit(Context ctx)
     Init the EAR service.
protected  voiddoStart()
     Start the EAR service.
protected  voiddoStop()
     Stop the EAR service.
public  StringgetAppsDirectory()
     Return the Apps directory.
public  ListgetAutoloadDirectories()
     Return the list of "autoload" directories for applications.
public  IntegergetCurrentNumberOfEars()
    
public  ListgetDeployableEars()
     Return the list of installed Applications ready to deploy.
public  ListgetDeployedEars()
     Return the list of all loaded Applications.
public  SetgetEarNames()
     This method is added temporarily.
public  ListgetInstalledEars()
     Return the list of installed Applications.
public  BooleanisEarDeployed(String fileName)
     Test if the specified filename is already deployed or not.
public  booleanisEarDeployedByUnpackName(String unpackName)
     Test if the specified unpack name is already deployed or not.
public  booleanisEarLoaded(String fileName)
     Test if the specified filename is already deployed or not.
public  voidunDeployEar(Context ctx)
     Undeploy an EAR by sending the request to the EJB container and to the WEB container and the Resource service.
public  voidunDeployEar(String fileName)
     Undeploy an EAR by delegating the operation to the unDeployEar() method.
public  voidunDeployEarMBean(String fileName)
     Undeploy an EAR by delegating the operation to the unDeployEar() method.

Field Detail
APPS_DIR
final protected static String APPS_DIR(Code)
The name of the apps directory.



AUTOLOADDIR
final protected static String AUTOLOADDIR(Code)
Directories property for autoload



CLASS
final protected static String CLASS(Code)
Property for the class of the EAR service



DESCRIPTORS
final protected static String DESCRIPTORS(Code)
Property for ear to deploy at runtime



JONAS_BASE
final protected static String JONAS_BASE(Code)
The name of the JONAS_BASE directory.



PARSINGWITHVALIDATION
final protected static String PARSINGWITHVALIDATION(Code)
Property for parsing with validation or not



WORK_APPS_DIR
final protected static String WORK_APPS_DIR(Code)
The name of the working apps directory.



WORK_DIR
final protected static String WORK_DIR(Code)
The name of the working directory.





Method Detail
buildJ2eeApplicationName
public static String buildJ2eeApplicationName(URL pUrl)(Code)
Build the J2EEApplication name.
Parameters:
  pUrl - The URL of Ear file The J2EEApplication name



buildJ2eeApplicationName
public static String buildJ2eeApplicationName(String pFilename)(Code)
Build the J2EEApplication name.
Parameters:
  pFilename - The name of Ear file The J2EEApplication name



deployEar
public String deployEar(Context ctx) throws EarServiceException(Code)
Deploy an EAR file with sending JAR file to the EJB container and WAR file to the WEB container and RAR file to the resource service.
Parameters:
  ctx - the context which contains the configuration in order todeploy an EAR. The ObjectName of the J2EE Application MBean associated to thedeployed EAR the Application Container
throws:
  EarServiceException - if the deployment of the EAR failed.



deployEar
public String deployEar(String fileName) throws Exception(Code)
Deploy an ear with its given fileName
Parameters:
  fileName - file to deploy (ear) The ObjectName of the J2EE Application MBean associated to thedeployed EAR
throws:
  Exception - if the deployment of the EAR failed.
See Also:   org.objectweb.jonas.ear.EarService.deployEar(java.lang.String)



deployEarMBean
public String deployEarMBean(String fileName) throws Exception(Code)
Deploy an EAR by delegating the operation to the deployEar() method. This is used by jonasAdmin management application.
Parameters:
  fileName - the fileName of the ear which must be be deployed. The ObjectName of the J2EE Application MBean associated to thedeployed EAR
throws:
  Exception - if the deployment of the EAR failed.



doInit
protected void doInit(Context ctx) throws ServiceException(Code)
Init the EAR service.
Parameters:
  ctx - the configuration of the Ear service.
throws:
  ServiceException - if the initialization failed.



doStart
protected void doStart() throws ServiceException(Code)
Start the EAR service.
throws:
  ServiceException - if the startup failed.



doStop
protected void doStop() throws ServiceException(Code)
Stop the EAR service.
throws:
  ServiceException - if the stop failed.



getAppsDirectory
public String getAppsDirectory()(Code)
Return the Apps directory. The Apps directory



getAutoloadDirectories
public List getAutoloadDirectories()(Code)
Return the list of "autoload" directories for applications. The list of all "autoload" directories



getCurrentNumberOfEars
public Integer getCurrentNumberOfEars()(Code)
current number of ears deployed in the JOnAS server



getDeployableEars
public List getDeployableEars() throws Exception(Code)
Return the list of installed Applications ready to deploy. The list of deployable Applications
throws:
  Exception - if the list can't be built



getDeployedEars
public List getDeployedEars()(Code)
Return the list of all loaded Applications. The list of deployed Applications



getEarNames
public Set getEarNames()(Code)
This method is added temporarily. It will disapear when Ears will have their associated MBeans (when Ears will become manageable) the names of the ears currently deployed in the JOnAS server



getInstalledEars
public List getInstalledEars() throws Exception(Code)
Return the list of installed Applications. The EAR files or the directories with expanded Applications are searched in JONAS_BASE/apps and all Applications directories 'autoload'. The list of EAR files or the directories with expandedApplications found
throws:
  Exception - if the list can't be retrieved



isEarDeployed
public Boolean isEarDeployed(String fileName)(Code)
Test if the specified filename is already deployed or not. This method is defined in the EarService interface.
Parameters:
  fileName - the name of the ear file. true if the ear is deployed, else false.



isEarDeployedByUnpackName
public boolean isEarDeployedByUnpackName(String unpackName)(Code)
Test if the specified unpack name is already deployed or not. This method is defined in the EarService interface.
Parameters:
  unpackName - the name of the ear file. true if the ear is deployed, else false.



isEarLoaded
public boolean isEarLoaded(String fileName)(Code)
Test if the specified filename is already deployed or not. This method is a management method provided by the EarServerice MBean.
Parameters:
  fileName - the name of the ear file. true if the ear is deployed, else false.



unDeployEar
public void unDeployEar(Context ctx) throws EarServiceException(Code)
Undeploy an EAR by sending the request to the EJB container and to the WEB container and the Resource service.
Parameters:
  ctx - the context which contains the configuration in order toundeploy an EAR.
throws:
  EarServiceException - if the undeployment of the EAR failed.



unDeployEar
public void unDeployEar(String fileName) throws Exception(Code)
Undeploy an EAR by delegating the operation to the unDeployEar() method. This is used for JMX management.
Parameters:
  fileName - the fileName of the ear which must be be undeployed.
throws:
  Exception - if the undeployment of the EAR failed.
See Also:   org.objectweb.jonas.ear.EarService.unDeployEar(java.lang.String)



unDeployEarMBean
public void unDeployEarMBean(String fileName) throws Exception(Code)
Undeploy an EAR by delegating the operation to the unDeployEar() method. This is used for JMX management.
Parameters:
  fileName - the fileName of the ear which must be be undeployed.
throws:
  Exception - if the undeployment of the EAR failed.



Methods inherited from org.objectweb.jonas.service.AbsServiceImpl
abstract protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doStart() throws ServiceException(Code)(Java Doc)
abstract protected void doStop() throws ServiceException(Code)(Java Doc)
public String getDomainName()(Code)(Java Doc)
public String getJonasServerName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void init(Context ctx) throws ServiceException(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void start() throws ServiceException(Code)(Java Doc)
public void stop() throws ServiceException(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.