public class StandardEngine extends ContainerBase implements Engine
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChildbackgroundProcessorDelay, checkIfRequestIsSecure, children, controller, debug, domain, hasCustomPipeline, initialized, lifecycle, listeners, loader, log, logger, manager, name, notifyContainerListeners, oname, parent, parentClassLoader, pipeline, rb, readLock, realm, resources, started, support, writeLockADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENTAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
StandardEngine()
Create a new StandardEngine component with the default basic Valve.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Container child)
Add a child Container, only if the proposed child is an implementation
of Host.
|
ObjectName |
createObjectName(String domain,
ObjectName parent) |
void |
destroy()
Stops the component and any children and removes all listeners
|
String |
getBaseDir() |
String |
getDefaultHost()
Return the default host.
|
String |
getDomain() |
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.
|
ObjectName |
getParentName()
Gets the name of the parent container
|
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 |
init()
Init method, part of the MBean lifecycle.
|
void |
setBaseDir(String baseDir) |
void |
setDefaultHost(String host)
Set the default host.
|
void |
setDomain(String domain) |
void |
setJvmRoute(String routeId)
Set the cluster-wide unique identifier for this Engine.
|
void |
setName(String name)
Set a name string (suitable for use by humans) that describes this
Container.
|
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). |
void |
start()
Start this Engine component.
|
void |
stop()
Gracefully shut down active use of the public methods of this Component.
|
String |
toString()
Return a String representation of this component.
|
addContainerListener, addLifecycleListener, addPropertyChangeListener, addValve, addValve, backgroundProcess, findChild, findChildren, findContainerListeners, findLifecycleListeners, fireContainerEvent, getBackgroundProcessorDelay, getBasic, getChildren, getContainerSuffix, getDebug, getJmxName, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getResources, getValveObjectNames, getValves, hasCustomPipeline, hasNonBasicValves, invoke, isCheckIfRequestIsSecure, log, log, logName, removeChild, removeContainerListener, removeLifecycleListener, removeLifecycleListeners, removePropertyChangeListener, removeValve, setBackgroundProcessorDelay, setBasic, setCheckIfRequestIsSecure, setDebug, setLoader, setLogger, setManager, setParentClassLoader, setRealm, setResources, startChildren, threadStart, threadStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getBackgroundProcessorDelay, getLoader, getLogger, getManager, getMappingObject, getName, getParent, getParentClassLoader, getPipeline, getResources, hasCustomPipeline, invoke, isCheckIfRequestIsSecure, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCheckIfRequestIsSecure, setLoader, setLogger, setManager, setParentClassLoader, setRealm, setResourcespublic StandardEngine()
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 setName(String name)
ContainerBasesetName in interface ContainersetName in class ContainerBasename - New name of this containerpublic 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 Containerpublic void init()
ContainerBaseinit in class ContainerBasepublic void destroy()
throws Exception
ContainerBasedestroy in class ContainerBaseExceptionpublic void start()
throws LifecycleException
start in interface Lifecyclestart in class ContainerBaseLifecycleException - if a startup error occurspublic void stop()
throws LifecycleException
ContainerBasestop in interface Lifecyclestop in class ContainerBaseLifecycleException - if this component detects a fatal error
that needs to be reportedpublic String toString()
public ObjectName getParentName() throws MalformedObjectNameException
ContainerBasegetParentName in class ContainerBaseMalformedObjectNameExceptionpublic ObjectName createObjectName(String domain, ObjectName parent) throws Exception
createObjectName in class ContainerBaseExceptionpublic String getDomain()
getDomain in class ContainerBasepublic void setDomain(String domain)
setDomain in class ContainerBaseCopyright © 2017. All rights reserved.