public class HostConfig extends java.lang.Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
appBase
App base.
|
protected java.io.File |
configBase
Config base.
|
protected java.lang.String |
configClass
The Java class name of the Context configuration class we should use.
|
protected java.lang.String |
contextClass
The Java class name of the Context implementation we should use.
|
protected Host |
host
The Host we are associated with.
|
protected static Logger |
log |
protected java.util.ArrayList<java.lang.String> |
serviced
List of applications which are being serviced, and shouldn't be
deployed/undeployed/redeployed at the moment.
|
protected static StringManager |
sm
The string resources for this package.
|
Constructor and Description |
---|
HostConfig() |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
appBase()
Return a File object representing the "application root" directory
for our associated Host.
|
protected void |
check()
Check status of all webapps.
|
protected java.io.File |
configBase()
Return a File object representing the "configuration root" directory
for our associated Host.
|
java.lang.String |
getConfigBaseName()
Get the name of the configBase.
|
java.lang.String |
getConfigClass()
Return the Context configuration class name.
|
protected java.lang.String |
getConfigFile(java.lang.String path)
Given a context path, get the config file name.
|
java.lang.String |
getContextClass()
Return the Context implementation class name.
|
protected java.lang.String |
getDocBase(java.lang.String path)
Given a context path, get the docBase.
|
void |
lifecycleEvent(LifecycleEvent event)
Process the START event for an associated Host.
|
void |
setConfigClass(java.lang.String configClass)
Set the Context configuration class name.
|
void |
setContextClass(java.lang.String contextClass)
Set the Context implementation class name.
|
void |
start()
Process a "start" event for this Host.
|
void |
stop()
Process a "stop" event for this Host.
|
protected void |
undeployApps()
Undeploy all deployed applications.
|
protected static Logger log
protected java.io.File appBase
protected java.io.File configBase
protected java.lang.String configClass
protected java.lang.String contextClass
protected Host host
protected static final StringManager sm
protected java.util.ArrayList<java.lang.String> serviced
public java.lang.String getConfigClass()
public void setConfigClass(java.lang.String configClass)
configClass
- The new Context configuration class name.public java.lang.String getContextClass()
public void setContextClass(java.lang.String contextClass)
contextClass
- The new Context implementation class name.public void lifecycleEvent(LifecycleEvent event)
lifecycleEvent
in interface LifecycleListener
event
- The lifecycle event that has occurredprotected java.io.File appBase()
protected java.io.File configBase()
public java.lang.String getConfigBaseName()
protected java.lang.String getConfigFile(java.lang.String path)
protected java.lang.String getDocBase(java.lang.String path)
public void start()
public void stop()
protected void undeployApps()
protected void check()