|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardEngine
public class StandardEngine
Standard implementation of the Engine interface. Each
child container must be a Host implementation to process the specific
fully qualified host name of that virtual host.
You can set the jvmRoute direct or with the System.property jvmRoute.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.catalina.core.ContainerBase |
|---|
ContainerBase.ContainerBackgroundProcessor, ContainerBase.NoopAccessLog, ContainerBase.PrivilegedAddChild |
| Field Summary |
|---|
| Fields inherited from class org.apache.catalina.core.ContainerBase |
|---|
accessLog, backgroundProcessorDelay, children, cluster, listeners, loader, logger, logName, manager, name, parent, parentClassLoader, pipeline, realm, resources, sm, startChildren, support |
| Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
|---|
mserver |
| Fields inherited from interface org.apache.catalina.Container |
|---|
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, DESTROY_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
StandardEngine()
Create a new StandardEngine component with the default basic Valve. |
|
| Method Summary | |
|---|---|
void |
addChild(Container child)
Add a child Container, only if the proposed child is an implementation of Host. |
String |
getBaseDir()
|
String |
getDefaultHost()
Return the default host. |
String |
getInfo()
Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>. |
String |
getJvmRoute()
Retrieve the cluster-wide unique identifier for this Engine. |
protected String |
getObjectNameKeyProperties()
Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component. |
ClassLoader |
getParentClassLoader()
Return the parent class loader for this component. |
Realm |
getRealm()
Provide a default in case no explicit configuration is set |
Service |
getService()
Return the Service with which we are associated (if any). |
void |
logAccess(Request request,
Response response,
long time,
boolean useDefault)
Override the default implementation. |
void |
setBaseDir(String baseDir)
|
void |
setDefaultHost(String host)
Set the default host. |
void |
setJvmRoute(String routeId)
Set the cluster-wide unique identifier for this Engine. |
void |
setParent(Container container)
Disallow any attempt to set a parent for this Container, since an Engine is supposed to be at the top of the Container hierarchy. |
void |
setService(Service service)
Set the Service with which we are associated (if any). |
protected void |
startInternal()
Start this component and implement the requirements of LifecycleBase.startInternal(). |
String |
toString()
Return a String representation of this component. |
| Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
|---|
getDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
| Methods inherited from class org.apache.catalina.util.LifecycleBase |
|---|
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Container |
|---|
addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getPipeline, getResources, invoke, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setName, setParentClassLoader, setRealm, setResources |
| Methods inherited from interface org.apache.catalina.Lifecycle |
|---|
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop |
| Constructor Detail |
|---|
public StandardEngine()
| Method Detail |
|---|
public Realm getRealm()
getRealm in interface ContainergetRealm in class ContainerBasepublic String getDefaultHost()
getDefaultHost in interface Enginepublic void setDefaultHost(String host)
setDefaultHost in interface Enginehost - The new default hostpublic void setJvmRoute(String routeId)
This property should not be changed once it is set.
setJvmRoute in interface EnginerouteId - the (new) JVM Route ID. Each Engine within a cluster
must have a unique JVM Route ID.public String getJvmRoute()
getJvmRoute in interface Enginepublic Service getService()
Service with which we are associated (if any).
getService in interface Enginepublic void setService(Service service)
Service with which we are associated (if any).
setService in interface Engineservice - The service that owns this Enginepublic String getBaseDir()
public void setBaseDir(String baseDir)
public void addChild(Container child)
addChild in interface ContaineraddChild in class ContainerBasechild - Child container to be addedpublic String getInfo()
<description>/<version>.
getInfo in interface ContainergetInfo in class ContainerBasepublic void setParent(Container container)
setParent in interface ContainersetParent in class ContainerBasecontainer - Proposed parent Container
protected void startInternal()
throws LifecycleException
LifecycleBase.startInternal().
startInternal in class ContainerBaseLifecycleException - if this component detects a fatal error
that prevents this component from being usedpublic String toString()
toString in class Object
public void logAccess(Request request,
Response response,
long time,
boolean useDefault)
logAccess in interface ContainerlogAccess in class ContainerBaserequest - Request (associated with the response) to logresponse - Response (associated with the request) to logtime - Time taken to process the request/response in
milliseconds (use 0 if not known)useDefault - Flag that indicates that the request/response should
be logged in the engine's default access logpublic ClassLoader getParentClassLoader()
getParentClassLoader in interface ContainergetParentClassLoader in class ContainerBaseprotected String getObjectNameKeyProperties()
LifecycleMBeanBaseObjectName that will be used to register this component.
getObjectNameKeyProperties in class LifecycleMBeanBaseObjectName
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||