|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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_ROOT
The name of the JONAS_ROOT directory. |
static java.lang.String |
PARSINGWITHVALIDATION
|
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. |
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.Integer |
getCurrentNumberOfEars()
|
java.util.Set |
getEarNames()
This method is added temporarily. |
void |
unDeployEar(javax.naming.Context ctx)
Undeploy an EAR by sending the request to the EJB container and to the WEB container. |
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 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_ROOT
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.Set getEarNames()
getEarNames
in interface EarServiceImplMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |