com.caucho.server.e_app
Class EarDeployController

java.lang.Object
  extended by com.caucho.env.deploy.DeployController<I>
      extended by com.caucho.env.deploy.ExpandDeployController<I>
          extended by com.caucho.env.deploy.EnvironmentDeployController<EnterpriseApplication,EarConfig>
              extended by com.caucho.server.e_app.EarDeployController
All Implemented Interfaces:
DeployActionHandler, DeployControllerApi<EnterpriseApplication>, RepositoryTagListener, EnvironmentListener, Dependency

public class EarDeployController
extends EnvironmentDeployController<EnterpriseApplication,EarConfig>

A configuration entry for an Enterprise WebApp


Field Summary
 
Fields inherited from class com.caucho.env.deploy.ExpandDeployController
APPLICATION_HASH_PATH
 
Fields inherited from class com.caucho.env.deploy.DeployController
_lifecycle, REDEPLOY_CHECK_INTERVAL
 
Method Summary
protected  Path calculateRootDirectory()
           
 boolean destroy()
          Returns the application object.
 boolean equals(java.lang.Object o)
          Returns equality.
 WebAppController findWebAppController(java.lang.String name)
          Finds any web-app in the ear matching the contextPath.
protected  DeployControllerAdmin getDeployAdmin()
          Returns the deploy admin.
 Path getEarRootDir()
          Returns the ear directory set by the hosts-directory.
 java.lang.String getName()
           
protected  EnterpriseApplication instantiateDeployInstance()
          Creates the application.
 void setEarRootDir(Path rootDir)
          Sets the host directory by the resin.conf
 void setId(java.lang.String name)
          Sets the Resin host name.
 java.lang.String toString()
          Returns a printable view.
 
Methods inherited from class com.caucho.env.deploy.EnvironmentDeployController
addConfigDefault, configureInstance, configureInstanceVariables, environmentBind, environmentConfigure, environmentStart, environmentStop, extendJMXContext, fillInitList, getArchivePath, getConfig, getConfigException, getErrorMessage, getMBean, getMBeanId, getMBeanTypeName, getObjectName, getPrologue, getRepositoryMetaData, getVariableMap, initEnd, isNameMatch, merge, setConfig, setConfigException, setPrologue
 
Methods inherited from class com.caucho.env.deploy.ExpandDeployController
addDependencies, addExpandCleanupFileSet, addExpandPreserveFileset, addManifestClassPath, controllerLogModified, deploy, deployImpl, getAutoDeployStage, getAutoDeployTag, getManifest, getManifestAttributes, getRepository, getRootDirectory, getVersionDependency, hashCode, isAllowRepository, isControllerModified, isControllerModifiedNow, onActive, onDestroy, onError, onStop, onTagChange, postConfigureInstance, postExtract, preConfigureInstance, removeExpandDirectory, removeExpandDirectory, removeExpandFile, setAllowRepository, setArchivePath, setDependencyCheckInterval, setRootDirectory, setVersionDependency
 
Methods inherited from class com.caucho.env.deploy.DeployController
addLifecycleListener, alarm, close, createDeployInstance, destroyInstance, getActiveDeployInstance, getActiveWaitTime, getControllerType, getDeployInstance, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getLog, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, initBegin, isIdleTimeout, isModified, isModifiedNow, logModified, mergeRedeployCheckInterval, mergeRedeployMode, onStartComplete, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, stopImpl, stopLazyImpl, subrequest, toRestart, toStart, toStop, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

setId

public void setId(java.lang.String name)
Sets the Resin host name.


getEarRootDir

public Path getEarRootDir()
Returns the ear directory set by the hosts-directory.


setEarRootDir

public void setEarRootDir(Path rootDir)
Sets the host directory by the resin.conf


getDeployAdmin

protected DeployControllerAdmin getDeployAdmin()
Returns the deploy admin.

Overrides:
getDeployAdmin in class EnvironmentDeployController<EnterpriseApplication,EarConfig>

findWebAppController

public WebAppController findWebAppController(java.lang.String name)
Finds any web-app in the ear matching the contextPath.


instantiateDeployInstance

protected EnterpriseApplication instantiateDeployInstance()
Creates the application.

Specified by:
instantiateDeployInstance in class DeployController<EnterpriseApplication>

calculateRootDirectory

protected Path calculateRootDirectory()
                               throws ELException
Throws:
ELException

destroy

public boolean destroy()
Description copied from class: EnvironmentDeployController
Returns the application object.

Overrides:
destroy in class EnvironmentDeployController<EnterpriseApplication,EarConfig>

equals

public boolean equals(java.lang.Object o)
Returns equality.

Overrides:
equals in class ExpandDeployController<EnterpriseApplication>

toString

public java.lang.String toString()
Returns a printable view.

Overrides:
toString in class EnvironmentDeployController<EnterpriseApplication,EarConfig>