|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.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. |
protected static java.lang.String |
AUTOLOADDIR
Directories property for autoload |
protected static java.lang.String |
CLASS
Property for the class of the EAR service |
protected static java.lang.String |
DESCRIPTORS
Property for ear to deploy at runtime |
protected static java.lang.String |
JONAS_BASE
The name of the JONAS_BASE directory. |
protected static java.lang.String |
PARSINGWITHVALIDATION
Property for parsing with validation or not |
protected static java.lang.String |
WORK_APPS_DIR
The name of the working apps directory. |
protected static java.lang.String |
WORK_DIR
The name of the working directory. |
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
EarServiceImpl()
|
Method Summary | |
static java.lang.String |
buildJ2eeApplicationName(java.lang.String pFilename)
Build the J2EEApplication name. |
static java.lang.String |
buildJ2eeApplicationName(java.net.URL pUrl)
Build the J2EEApplication name. |
java.lang.String |
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. |
java.lang.String |
deployEar(java.lang.String fileName)
Deploy an ear with its given fileName |
java.lang.String |
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 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. |
java.lang.Boolean |
isEarDeployed(java.lang.String fileName)
Test if the specified filename is already deployed or not. |
boolean |
isEarDeployedByUnpackName(java.lang.String unpackName)
Test if the specified unpack name is already deployed or not. |
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 |
unDeployEar(java.lang.String fileName)
Undeploy an EAR by delegating the operation to the unDeployEar() method. |
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 |
getDomainName, getJonasServerName, 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 javax.management.NotificationBroadcasterSupport |
handleNotification, 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 java.lang.String JONAS_BASE
protected static final java.lang.String APPS_DIR
protected static final java.lang.String WORK_DIR
protected static final java.lang.String WORK_APPS_DIR
protected static final java.lang.String DESCRIPTORS
protected static final java.lang.String AUTOLOADDIR
protected static final java.lang.String PARSINGWITHVALIDATION
protected 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 java.lang.String 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 java.lang.String deployEar(java.lang.String fileName) throws java.lang.Exception
deployEar
in interface EarService
fileName
- file to deploy (ear)
java.lang.Exception
- if the deployment of the EAR failed.EarService.deployEar(java.lang.String)
public java.lang.String deployEarMBean(java.lang.String fileName) throws java.lang.Exception
deployEarMBean
in interface EarServiceImplMBean
fileName
- the fileName of the ear which must be be deployed.
java.lang.Exception
- 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 unDeployEar(java.lang.String fileName) throws java.lang.Exception
unDeployEar
in interface EarService
fileName
- the fileName of the ear which must be be undeployed.
java.lang.Exception
- if the undeployment of the EAR failed.EarService.unDeployEar(java.lang.String)
public void unDeployEarMBean(java.lang.String fileName) throws java.lang.Exception
unDeployEarMBean
in interface EarServiceImplMBean
fileName
- the fileName of the ear which must be be undeployed.
java.lang.Exception
- 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.lang.Boolean isEarDeployed(java.lang.String fileName)
isEarDeployed
in interface EarService
fileName
- the name of the ear file.
public boolean isEarDeployedByUnpackName(java.lang.String unpackName)
isEarDeployedByUnpackName
in interface EarService
unpackName
- 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
- if the list can't be builtpublic java.util.List getAutoloadDirectories()
getAutoloadDirectories
in interface EarServiceImplMBean
public java.lang.String getAppsDirectory()
getAppsDirectory
in interface EarService
public static java.lang.String buildJ2eeApplicationName(java.net.URL pUrl)
pUrl
- The URL of Ear file
public static java.lang.String buildJ2eeApplicationName(java.lang.String pFilename)
pFilename
- The name of Ear file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |