|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.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 |
AUTOLOADDIR
Directories property for autoload. |
protected static String |
CLASS
Property for the class of the EAR service. |
protected static String |
DESCRIPTORS
Property for ear to deploy at runtime. |
protected static String |
JONAS_BASE
The name of the JONAS_BASE directory. |
protected static String |
PARSINGWITHVALIDATION
Property for parsing with validation or not. |
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.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
JOnASEARService()
|
Method Summary | |
---|---|
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 |
doInit(Context ctx)
Init the EAR service. |
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 |
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. |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
---|
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.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, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.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
protected static final String DESCRIPTORS
protected static final String AUTOLOADDIR
protected static final String PARSINGWITHVALIDATION
protected static final String CLASS
Constructor Detail |
---|
public JOnASEARService()
Method Detail |
---|
protected void doInit(Context ctx) throws ServiceException
doInit
in class AbsServiceImpl
ctx
- the configuration of the Ear service.
ServiceException
- if the initialization failed.protected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- if the stop failed.public String deployEar(Context ctx) throws EarServiceException
deployEar
in interface EarService
ctx
- the context which contains the configuration in order to
deploy an EAR.
EarServiceException
- if the deployment of the EAR failed.public String deployEar(String fileName) throws Exception
deployEar
in interface EarService
fileName
- file to deploy (ear)
Exception
- if the deployment of the EAR failed.EarService.deployEar(java.lang.String)
protected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- if the startup failed.public void unDeployEar(Context ctx) throws EarServiceException
unDeployEar
in interface EarService
ctx
- the context which contains the configuration in order to
undeploy an EAR.
EarServiceException
- if the undeployment of the EAR failed.public void unDeployEar(String fileName) throws Exception
unDeployEar
in interface EarService
fileName
- 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 JOnASEARServiceMBean
Exception
- if the list can't be retrievedpublic Set getEarNames()
getEarNames
in interface JOnASEARServiceMBean
public boolean isEarLoaded(String fileName)
isEarLoaded
in interface JOnASEARServiceMBean
fileName
- the name of the ear file.
public Boolean isEarDeployed(String fileName)
isEarDeployed
in interface EarService
fileName
- the name of the ear file.
public boolean isEarDeployedByUnpackName(String unpackName)
isEarDeployedByUnpackName
in interface EarService
unpackName
- the name of the ear file.
public List getDeployedEars()
getDeployedEars
in interface JOnASEARServiceMBean
public List getDeployableEars() throws Exception
getDeployableEars
in interface JOnASEARServiceMBean
Exception
- if the list can't be builtpublic List getAutoloadDirectories()
getAutoloadDirectories
in interface JOnASEARServiceMBean
public String getAppsDirectory()
getAppsDirectory
in interface JOnASEARServiceMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |