public class HostConfig extends Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected File |
appBase
App base.
|
protected File |
configBase
Config base.
|
protected String |
configClass
The Java class name of the Context configuration class we should use.
|
protected String |
contextClass
The Java class name of the Context implementation we should use.
|
protected Host |
host
The Host we are associated with.
|
protected ArrayList<String> |
serviced
List of applications which are being serviced, and shouldn't be
deployed/undeployed/redeployed at the moment.
|
Constructor and Description |
---|
HostConfig() |
Modifier and Type | Method and Description |
---|---|
protected File |
appBase()
Return a File object representing the "application root" directory
for our associated Host.
|
protected void |
check()
Check status of all webapps.
|
protected File |
configBase()
Return a File object representing the "configuration root" directory
for our associated Host.
|
String |
getConfigBaseName()
Get the name of the configBase.
|
String |
getConfigClass()
Return the Context configuration class name.
|
protected String |
getConfigFile(String path)
Given a context path, get the config file name.
|
String |
getContextClass()
Return the Context implementation class name.
|
protected String |
getDocBase(String path)
Given a context path, get the docBase.
|
void |
lifecycleEvent(LifecycleEvent event)
Process the START event for an associated Host.
|
void |
setConfigClass(String configClass)
Set the Context configuration class name.
|
void |
setContextClass(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 File appBase
protected File configBase
protected String configClass
protected String contextClass
protected Host host
public String getConfigClass()
public void setConfigClass(String configClass)
configClass
- The new Context configuration class name.public String getContextClass()
public void setContextClass(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 File appBase()
protected File configBase()
public String getConfigBaseName()
protected String getConfigFile(String path)
public void start()
public void stop()
protected void undeployApps()
protected void check()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.