public class StandardHost extends ContainerBase implements Host
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChildLifecycle.SingleUseaccessLog, backgroundProcessorDelay, children, cluster, listeners, loader, logger, logName, manager, name, parent, parentClassLoader, pipeline, resources, sm, startChildren, startStopExecutor, supportmserverADD_ALIAS_EVENT, REMOVE_ALIAS_EVENTADD_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| Constructor and Description |
|---|
StandardHost()
Create a new StandardHost component with the default basic Valve.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(java.lang.String alias)
Add an alias name that should be mapped to this same Host.
|
void |
addChild(Container child)
Add a child Container, only if the proposed child is an implementation
of Context.
|
java.lang.String[] |
findAliases()
Return the set of alias names for this Host.
|
java.lang.String[] |
findReloadedContextMemoryLeaks()
Attempt to identify the contexts that have a class loader memory leak.
|
java.lang.String[] |
getAliases() |
java.lang.String |
getAppBase()
Return the application root for this Host.
|
boolean |
getAutoDeploy()
Return the value of the auto deploy flag.
|
java.lang.String |
getConfigClass()
Return the Java class name of the context configuration class
for new web applications.
|
java.lang.String |
getContextClass()
Return the Java class name of the Context implementation 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.
|
java.lang.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. |
java.util.regex.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.
|
java.lang.String |
getErrorReportValveClass()
Return the Java class name of the error report valve class
for new web applications.
|
java.lang.String |
getInfo()
Return descriptive information about this Container implementation and
the corresponding version number, in the format
<description>/<version>. |
java.lang.String |
getName()
Return the canonical, fully qualified, name of the virtual host
this Container represents.
|
protected java.lang.String |
getObjectNameKeyProperties()
Allow sub-classes to specify the key properties component of the
ObjectName that will be used to register this component. |
java.util.concurrent.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.
|
java.lang.String[] |
getValveNames()
Return the MBean Names of the Valves associated with this Host
|
java.lang.String |
getWorkDir()
Host work directory base.
|
java.lang.String |
getXmlBase()
Return the XML root for this Host.
|
boolean |
isCopyXML()
Return the copy XML config file flag for this component.
|
boolean |
isDeployXML()
Deploy XML Context config files flag accessor.
|
boolean |
isFailCtxIfServletStartFails() |
boolean |
isUnpackWARs()
Unpack WARs flag accessor.
|
void |
removeAlias(java.lang.String alias)
Remove the specified alias name from the aliases for this Host.
|
void |
setAppBase(java.lang.String appBase)
Set the application root for this Host.
|
void |
setAutoDeploy(boolean autoDeploy)
Set the auto deploy flag value for this host.
|
void |
setConfigClass(java.lang.String configClass)
Set the Java class name of the context configuration class
for new web applications.
|
void |
setContextClass(java.lang.String contextClass)
Set the Java class name of the Context implementation class
for new web applications.
|
void |
setCopyXML(boolean copyXML)
Set the copy XML config file flag for this component.
|
void |
setCreateDirs(boolean createDirs)
Set to true if the Host should attempt to create directories for xmlBase and appBase upon startup
|
void |
setDeployIgnore(java.lang.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 |
setDeployXML(boolean deployXML)
Deploy XML Context config files flag mutator.
|
void |
setErrorReportValveClass(java.lang.String errorReportValveClass)
Set the Java class name of the error report valve class
for new web applications.
|
void |
setFailCtxIfServletStartFails(boolean failCtxIfServletStartFails) |
void |
setName(java.lang.String name)
Set the canonical, fully qualified, name of the virtual host
this Container represents.
|
void |
setUndeployOldVersions(boolean undeployOldVersions)
Set to true if the Host should automatically undeploy old versions of
applications deployed using parallel deployment.
|
void |
setUnpackWARs(boolean unpackWARs)
Unpack WARs flag mutator.
|
void |
setWorkDir(java.lang.String workDir)
Host work directory base.
|
void |
setXmlBase(java.lang.String xmlBase)
Set the Xml root for this Host.
|
protected void |
startInternal()
Start this component and implement the requirements
of
LifecycleBase.startInternal(). |
java.lang.String |
toString()
Return a String representation of this component.
|
addContainerListener, addPropertyChangeListener, addValve, backgroundProcess, destroyInternal, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getChildren, getCluster, getClusterInternal, getDomainInternal, getLoader, getLoaderInternal, getLogger, getManager, getManagerInternal, getMappingObject, getParent, getParentClassLoader, getPipeline, getRealm, getRealmInternal, getResources, getResourcesInternal, getStartChildren, getStartStopThreads, initInternal, invoke, logAccess, logName, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setParent, setParentClassLoader, setRealm, setResources, setStartChildren, setStartStopThreads, stopInternal, threadStart, threadStopgetDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisteraddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getManager, getMappingObject, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getStartStopThreads, invoke, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setParent, setParentClassLoader, setRealm, setResources, setStartStopThreadsaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stoppublic StandardHost()
public boolean getUndeployOldVersions()
HostHost.getAutoDeploy() also returns true.getUndeployOldVersions in interface Hostpublic void setUndeployOldVersions(boolean undeployOldVersions)
HostHost.getAutoDeploy() returns true.setUndeployOldVersions in interface Hostpublic java.util.concurrent.ExecutorService getStartStopExecutor()
HostgetStartStopExecutor in interface Hostpublic java.lang.String getAppBase()
getAppBase in interface Hostpublic void setAppBase(java.lang.String appBase)
setAppBase in interface HostappBase - The new application rootpublic java.lang.String getXmlBase()
getXmlBase in interface Hostpublic void setXmlBase(java.lang.String xmlBase)
setXmlBase in interface HostxmlBase - The new XML rootpublic boolean getCreateDirs()
getCreateDirs in interface Hostpublic void setCreateDirs(boolean createDirs)
setCreateDirs in interface HostcreateDirs - public boolean getAutoDeploy()
getAutoDeploy in interface Hostpublic void setAutoDeploy(boolean autoDeploy)
setAutoDeploy in interface HostautoDeploy - The new auto deploy flagpublic java.lang.String getConfigClass()
getConfigClass in interface Hostpublic void setConfigClass(java.lang.String configClass)
setConfigClass in interface HostconfigClass - The new context configuration classpublic java.lang.String getContextClass()
public void setContextClass(java.lang.String contextClass)
contextClass - The new context implementation classpublic boolean getDeployOnStartup()
getDeployOnStartup in interface Hostpublic void setDeployOnStartup(boolean deployOnStartup)
setDeployOnStartup in interface HostdeployOnStartup - The new deploy on startup flagpublic boolean isDeployXML()
public void setDeployXML(boolean deployXML)
public boolean isCopyXML()
public void setCopyXML(boolean copyXML)
copyXML - The new copy XML flagpublic java.lang.String getErrorReportValveClass()
public void setErrorReportValveClass(java.lang.String errorReportValveClass)
errorReportValveClass - The new error report valve classpublic java.lang.String getName()
getName in interface ContainergetName in class ContainerBasepublic void setName(java.lang.String name)
setName in interface ContainersetName in class ContainerBasename - Virtual host namejava.lang.IllegalArgumentException - if name is nullpublic boolean isUnpackWARs()
public void setUnpackWARs(boolean unpackWARs)
public java.lang.String getWorkDir()
public void setWorkDir(java.lang.String workDir)
public java.lang.String getDeployIgnore()
appBase that will be ignored by the automatic
deployment process.getDeployIgnore in interface Hostpublic java.util.regex.Pattern getDeployIgnorePattern()
appBase that will be ignored by the
automatic deployment process.getDeployIgnorePattern in interface Hostpublic void setDeployIgnore(java.lang.String deployIgnore)
appBase that will be ignored by the automatic
deployment process.setDeployIgnore in interface Hostpublic boolean isFailCtxIfServletStartFails()
public void setFailCtxIfServletStartFails(boolean failCtxIfServletStartFails)
public void addAlias(java.lang.String alias)
public void addChild(Container child)
addChild in interface ContaineraddChild in class ContainerBasechild - Child container to be addedpublic java.lang.String[] findReloadedContextMemoryLeaks()
public java.lang.String[] findAliases()
findAliases in interface Hostpublic java.lang.String getInfo()
<description>/<version>.getInfo in interface ContainergetInfo in class ContainerBasepublic void removeAlias(java.lang.String alias)
removeAlias in interface Hostalias - Alias name to be removedpublic java.lang.String toString()
toString in class java.lang.Objectprotected void startInternal()
throws LifecycleException
LifecycleBase.startInternal().startInternal in class ContainerBaseLifecycleException - if this component detects a fatal error
that prevents this component from being usedpublic java.lang.String[] getValveNames()
throws java.lang.Exception
java.lang.Exception - if an MBean cannot be created or registeredpublic java.lang.String[] getAliases()
protected java.lang.String getObjectNameKeyProperties()
LifecycleMBeanBaseObjectName that will be used to register this component.getObjectNameKeyProperties in class LifecycleMBeanBaseObjectNameCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.