|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.ear.internal.JOnASEARService
public class JOnASEARService
JOnAS EAR Service Implementation class. This class provides an implementation of the ear service.
| Field Summary | |
|---|---|
protected static String |
APPS_DIR
The name of the apps directory. |
protected static String |
JONAS_BASE
The name of the JONAS_BASE directory. |
protected static String |
WORK_APPS_DIR
The name of the working apps directory. |
protected static String |
WORK_DIR
The name of the working directory. |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
JOnASEARService()
Initialize some Maps at instantiation time. |
|
| Method Summary | |
|---|---|
void |
checkRequirements()
|
String |
deployEar(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. |
String |
deployEar(String fileName)
Deploy an ear with its given fileName. |
protected void |
doStart()
Start the EAR service. |
protected void |
doStop()
Stop the EAR service. |
String |
getAppsDirectory()
Return the Apps directory. |
List |
getAutoloadDirectories()
Return the list of "autoload" directories for applications. |
Integer |
getCurrentNumberOfEars()
|
List |
getDeployableEars()
Return the list of installed Applications ready to deploy. |
List |
getDeployedEars()
Return the list of all loaded Applications. |
Set |
getEarNames()
This method is added temporarily. |
List |
getInstalledEars()
Return the list of installed Applications. |
Boolean |
isEarDeployed(String fileName)
Test if the specified filename is already deployed or not. |
boolean |
isEarDeployedByUnpackName(String unpackName)
Test if the specified unpack name is already deployed or not. |
boolean |
isEarLoaded(String fileName)
Test if the specified filename is already deployed or not. |
void |
setAutoloaddir(String directoriesValue)
|
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setDescriptors(String descriptors)
|
void |
setEasyBeansService(org.ow2.jonas.ejb.easybeans.IEasyBeansService service)
|
void |
setEjbService(org.ow2.jonas.ejb.EJBService ejbService)
|
void |
setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
|
void |
setParsingwithvalidation(boolean validate)
|
void |
setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
|
void |
setWebContainerService(org.ow2.jonas.web.JWebContainerService webContainerService)
|
void |
setWsService(org.ow2.jonas.ws.WebServicesService wsService)
|
void |
unDeployEar(Context ctx)
Undeploy an EAR by sending the request to the EJB container and to the WEB container and the Resource service. |
void |
unDeployEar(String fileName)
Undeploy an EAR by delegating the operation to the unDeployEar() method. |
void |
unsetDeployerManager()
Unbind the IDeployerManager. |
void |
unsetEasyBeansService()
Unbind the IEasyBeansService. |
void |
unsetEjbService()
Unbind the EJBService. |
void |
unsetResourceService()
Unbind the ResourceService. |
void |
unsetWebContainerService()
Unbind the JWebContainerService. |
void |
unsetWsService()
Unbind the WebServicesService. |
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isOSGi, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.jonas.service.Service |
|---|
getName, init, isStarted, setName, start, stop |
| Field Detail |
|---|
protected static final String JONAS_BASE
protected static final String APPS_DIR
protected static final String WORK_DIR
protected static final String WORK_APPS_DIR
| Constructor Detail |
|---|
public JOnASEARService()
| Method Detail |
|---|
public void setParsingwithvalidation(boolean validate)
validate - Use a validating parser ?public void setDescriptors(String descriptors)
descriptors - EARs to be deployed at startup.public void setAutoloaddir(String directoriesValue)
directoriesValue - Autoload directories
public void checkRequirements()
throws org.ow2.jonas.service.ServiceException
checkRequirements in interface org.ow2.jonas.service.ServicecheckRequirements in class org.ow2.jonas.lib.service.AbsServiceImplorg.ow2.jonas.service.ServiceExceptionAbsServiceImpl.checkRequirements()
protected void doStop()
throws org.ow2.jonas.service.ServiceException
doStop in class org.ow2.jonas.lib.service.AbsServiceImplorg.ow2.jonas.service.ServiceException - if the stop failed.
public String deployEar(Context ctx)
throws org.ow2.jonas.ear.EarServiceException
deployEar in interface org.ow2.jonas.ear.EarServicectx - the context which contains the configuration in order to
deploy an EAR.
org.ow2.jonas.ear.EarServiceException - if the deployment of the EAR failed.
public String deployEar(String fileName)
throws Exception
deployEar in interface org.ow2.jonas.ear.EarServicefileName - file to deploy (ear)
Exception - if the deployment of the EAR failed.EarService.deployEar(java.lang.String)
protected void doStart()
throws org.ow2.jonas.service.ServiceException
doStart in class org.ow2.jonas.lib.service.AbsServiceImplorg.ow2.jonas.service.ServiceException - if the startup failed.
public void unDeployEar(Context ctx)
throws org.ow2.jonas.ear.EarServiceException
unDeployEar in interface org.ow2.jonas.ear.EarServicectx - the context which contains the configuration in order to
undeploy an EAR.
org.ow2.jonas.ear.EarServiceException - if the undeployment of the EAR failed.
public void unDeployEar(String fileName)
throws Exception
unDeployEar in interface org.ow2.jonas.ear.EarServicefileName - the fileName of the ear which must be be undeployed.
Exception - if the undeployment of the EAR failed.EarService.unDeployEar(java.lang.String)public Integer getCurrentNumberOfEars()
getCurrentNumberOfEars in interface JOnASEARServiceMBean
public List getInstalledEars()
throws Exception
getInstalledEars in interface JOnASEARServiceMBeanException - if the list can't be retrievedpublic Set getEarNames()
getEarNames in interface JOnASEARServiceMBeanpublic boolean isEarLoaded(String fileName)
isEarLoaded in interface JOnASEARServiceMBeanfileName - the name of the ear file.
public Boolean isEarDeployed(String fileName)
isEarDeployed in interface org.ow2.jonas.ear.EarServicefileName - the name of the ear file.
public boolean isEarDeployedByUnpackName(String unpackName)
isEarDeployedByUnpackName in interface org.ow2.jonas.ear.EarServiceunpackName - the name of the ear file.
public List getDeployedEars()
getDeployedEars in interface JOnASEARServiceMBean
public List getDeployableEars()
throws Exception
getDeployableEars in interface JOnASEARServiceMBeanException - if the list can't be builtpublic List getAutoloadDirectories()
getAutoloadDirectories in interface JOnASEARServiceMBeanpublic String getAppsDirectory()
getAppsDirectory in interface JOnASEARServiceMBeanpublic void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
jmxService - the jmxService to setpublic void setEjbService(org.ow2.jonas.ejb.EJBService ejbService)
ejbService - the ejbService to setpublic void unsetEjbService()
EJBService.
public void setWebContainerService(org.ow2.jonas.web.JWebContainerService webContainerService)
webContainerService - the webContainerService to setpublic void unsetWebContainerService()
JWebContainerService.
public void setWsService(org.ow2.jonas.ws.WebServicesService wsService)
wsService - the wsService to setpublic void unsetWsService()
WebServicesService.
public void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
resourceService - the resourceService to setpublic void unsetResourceService()
ResourceService.
public void setEasyBeansService(org.ow2.jonas.ejb.easybeans.IEasyBeansService service)
service - the EJB3 Service to be injected.public void unsetEasyBeansService()
IEasyBeansService.
public void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager - the deployerManager to setpublic void unsetDeployerManager()
IDeployerManager.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||