addChild
public void addChild(Container child)
Add a child Container, only if the proposed child is an implementation
of Host.
- addChild in interface Container
- addChild in interface ContainerBase
child
- Child container to be added
addDefaultContext
public void addDefaultContext(DefaultContext defaultContext)
Set the DefaultContext
for new web applications.
- addDefaultContext in interface Engine
defaultContext
- The new DefaultContext
createObjectName
public ObjectName createObjectName(String domain,
ObjectName parent)
throws Exception
- createObjectName in interface ContainerBase
getBaseDir
public String getBaseDir()
getDefaultHost
public String getDefaultHost()
Return the default host.
- getDefaultHost in interface Engine
getDomain
public String getDomain()
- getDomain in interface ContainerBase
getInfo
public String getInfo()
Return descriptive information about this Container implementation and
the corresponding version number, in the format
<description>/<version>
.
- getInfo in interface Container
- getInfo in interface ContainerBase
getJvmRoute
public String getJvmRoute()
Retrieve the cluster-wide unique identifier for this Engine.
This value is only useful in a load-balancing scenario.
- getJvmRoute in interface Engine
getMbeansFile
public String getMbeansFile()
getParentName
public ObjectName getParentName()
throws MalformedObjectNameException
- getParentName in interface ContainerBase
getRealm
public Realm getRealm()
Provide a default in case no explicit configuration is set
- getRealm in interface Container
- getRealm in interface ContainerBase
- configured realm, or a JAAS realm by default
getService
public Service getService()
Return the Service
with which we are associated (if any).
- getService in interface Engine
importDefaultContext
public void importDefaultContext(Context context)
Import the DefaultContext config into a web application context.
- importDefaultContext in interface Engine
context
- web application context to import default context
installDefaultContext
public void installDefaultContext(Context context)
Install the StandardContext portion of the DefaultContext
configuration into current Context.
context
- current web application context
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- preRegister in interface ContainerBase
setBaseDir
public void setBaseDir(String baseDir)
setDefaultHost
public void setDefaultHost(String host)
Set the default host.
- setDefaultHost in interface Engine
host
- The new default host
setDomain
public void setDomain(String domain)
- setDomain in interface ContainerBase
setJvmRoute
public void setJvmRoute(String routeId)
Set the cluster-wide unique identifier for this Engine.
This value is only useful in a load-balancing scenario.
This property should not be changed once it is set.
- setJvmRoute in interface Engine
setMbeansFile
public void setMbeansFile(String mbeansFile)
setName
public void setName(String name)
Set a name string (suitable for use by humans) that describes this
Container. Within the set of child containers belonging to a particular
parent, Container names must be unique.
- setName in interface Container
- setName in interface ContainerBase
name
- New name of this container
setParent
public 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.
- setParent in interface Container
- setParent in interface ContainerBase
container
- Proposed parent Container
setService
public void setService(Service service)
Set the Service
with which we are associated (if any).
- setService in interface Engine
service
- The service that owns this Engine
toString
public String toString()
Return a String representation of this component.