public interface Host extends Container
The parent Container attached to a Host is generally an Engine, but may be some other implementation, or may be omitted if it is not necessary.
The child containers attached to a Host are generally implementations of Context (representing an individual servlet context).
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_ALIAS_EVENT
The ContainerEvent event type sent when a new alias is added
by
addAlias(). |
static String |
REMOVE_ALIAS_EVENT
The ContainerEvent event type sent when an old alias is removed
by
removeAlias(). |
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENTAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias)
Add an alias name that should be mapped to this same Host.
|
String[] |
findAliases()
Return the set of alias names for this Host.
|
String |
getAppBase()
Return the application root for this Host.
|
boolean |
getAutoDeploy()
Return the value of the auto deploy flag.
|
String |
getConfigClass()
Return the Java class name of the context configuration class
for new web applications.
|
boolean |
getCreateDirs()
Returns true if the Host will attempt to create directories for appBase and xmlBase
unless they already exist.
|
String |
getDeployIgnore()
Return the regular expression that defines the files and directories in
the host's appBase that will be ignored by the automatic deployment
process.
|
Pattern |
getDeployIgnorePattern()
Return the compiled regular expression that defines the files and
directories in the host's appBase that will be ignored by the automatic
deployment process.
|
boolean |
getDeployOnStartup()
Return the value of the deploy on startup flag.
|
ExecutorService |
getStartStopExecutor()
Return the executor that is used for starting and stopping contexts.
|
boolean |
getUndeployOldVersions()
Returns true of the Host is configured to automatically undeploy old
versions of applications deployed using parallel deployment.
|
String |
getXmlBase()
Return the XML root for this Host.
|
void |
removeAlias(String alias)
Remove the specified alias name from the aliases for this Host.
|
void |
setAppBase(String appBase)
Set the application root for this Host.
|
void |
setAutoDeploy(boolean autoDeploy)
Set the auto deploy flag value for this host.
|
void |
setConfigClass(String configClass)
Set the Java class name of the context configuration class
for new web applications.
|
void |
setCreateDirs(boolean createDirs)
Set to true if the Host should attempt to create directories for xmlBase and appBase upon startup
|
void |
setDeployIgnore(String deployIgnore)
Set the regular expression that defines the files and directories in
the host's appBase that will be ignored by the automatic deployment
process.
|
void |
setDeployOnStartup(boolean deployOnStartup)
Set the deploy on startup flag value for this host.
|
void |
setUndeployOldVersions(boolean undeployOldVersions)
Set to true if the Host should automatically undeploy old versions of
applications deployed using parallel deployment.
|
void |
setXmlBase(String xmlBase)
Set the Xml root for this Host.
|
addChild, addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCluster, getInfo, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getStartStopThreads, invoke, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setName, setParent, setParentClassLoader, setRealm, setResources, setStartStopThreadsaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stopstatic final String ADD_ALIAS_EVENT
addAlias().static final String REMOVE_ALIAS_EVENT
removeAlias().String getXmlBase()
void setXmlBase(String xmlBase)
xmlBase - The new XML rootString getAppBase()
void setAppBase(String appBase)
appBase - The new application rootboolean getAutoDeploy()
void setAutoDeploy(boolean autoDeploy)
autoDeploy - The new auto deploy flagString getConfigClass()
void setConfigClass(String configClass)
configClass - The new context configuration classboolean getDeployOnStartup()
void setDeployOnStartup(boolean deployOnStartup)
deployOnStartup - The new deploy on startup flagString getDeployIgnore()
Pattern getDeployIgnorePattern()
void setDeployIgnore(String deployIgnore)
ExecutorService getStartStopExecutor()
boolean getUndeployOldVersions()
getAutoDeploy() also returns true.void setUndeployOldVersions(boolean undeployOldVersions)
getAutoDeploy() returns true.void addAlias(String alias)
alias - The alias to be addedString[] findAliases()
void removeAlias(String alias)
alias - Alias name to be removedboolean getCreateDirs()
void setCreateDirs(boolean createDirs)
createDirs - Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.