|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.ear.EarServiceImpl
JOnAS EAR Service Implementation class. This class provides an implementation of the ear service.
Field Summary | |
protected static java.lang.String |
APPS_DIR
The name of the apps directory. |
static java.lang.String |
AUTOLOADDIR
|
static java.lang.String |
CLASS
|
static java.lang.String |
DESCRIPTORS
The Ear service configuration properties |
protected static java.lang.String |
JONAS_BASE
The name of the JONAS_BASE directory. |
static java.lang.String |
PARSINGWITHVALIDATION
|
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
EarServiceImpl()
|
Method Summary | |
void |
deployEar(javax.naming.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. |
void |
deployEarMBean(java.lang.String fileName)
Deploy an EAR by delegating the operation to the deployEar() method. |
protected void |
doInit(javax.naming.Context ctx)
Init the EAR service. |
protected void |
doStart()
Start the EAR service. |
protected void |
doStop()
Stop the EAR service. |
java.lang.String |
getAppsDirectory()
Return the Apps directory. |
java.util.List |
getAutoloadDirectories()
Return the list of "autoload" directories for web applications. |
java.lang.Integer |
getCurrentNumberOfEars()
|
java.util.List |
getDeployableEars()
Return the list of installed Applications ready to deploy. |
java.util.List |
getDeployedEars()
Return the list of all loaded Applications. |
java.util.Set |
getEarNames()
This method is added temporarily. |
java.util.List |
getInstalledEars()
Return the list of installed Applications. |
boolean |
isEarLoaded(java.lang.String fileName)
Test if the specified filename is already deployed or not |
void |
unDeployEar(javax.naming.Context ctx)
Undeploy an EAR by sending the request to the EJB container and to the WEB container and the Resource service. |
void |
unDeployEarMBean(java.lang.String fileName)
Undeploy an EAR by delegating the operation to the unDeployEar() method. |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
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 java.lang.String JONAS_BASE
protected static final java.lang.String APPS_DIR
public static final java.lang.String DESCRIPTORS
public static final java.lang.String AUTOLOADDIR
public static final java.lang.String PARSINGWITHVALIDATION
public static final java.lang.String CLASS
Constructor Detail |
public EarServiceImpl()
Method Detail |
protected void doInit(javax.naming.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 void deployEar(javax.naming.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 void deployEarMBean(java.lang.String fileName) throws java.rmi.RemoteException, EarServiceException
deployEarMBean
in interface EarServiceImplMBean
fileName
- the fileName of the ear which must be be deployed.
java.rmi.RemoteException
- if rmi call failed.
EarServiceException
- if the deployment of the EAR failed.protected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- if the startup failed.public void unDeployEar(javax.naming.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 unDeployEarMBean(java.lang.String fileName) throws java.rmi.RemoteException, EarServiceException
unDeployEarMBean
in interface EarServiceImplMBean
fileName
- the fileName of the ear which must be be undeployed.
java.rmi.RemoteException
- if rmi call failed.
EarServiceException
- if the undeployment of the EAR failed.public java.lang.Integer getCurrentNumberOfEars()
getCurrentNumberOfEars
in interface EarServiceImplMBean
public java.util.List getInstalledEars() throws java.lang.Exception
getInstalledEars
in interface EarServiceImplMBean
java.lang.Exception
- if the list can't be retrievedpublic java.util.Set getEarNames()
getEarNames
in interface EarServiceImplMBean
public boolean isEarLoaded(java.lang.String fileName)
isEarLoaded
in interface EarServiceImplMBean
fileName
- the name of the ear file.
public java.util.List getDeployedEars()
getDeployedEars
in interface EarServiceImplMBean
public java.util.List getDeployableEars() throws java.lang.Exception
getDeployableEars
in interface EarServiceImplMBean
java.lang.Exception
public java.util.List getAutoloadDirectories()
getAutoloadDirectories
in interface EarServiceImplMBean
public java.lang.String getAppsDirectory()
getAppsDirectory
in interface EarServiceImplMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |