|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.startup.Catalina
Startup/Shutdown shell program for Catalina. The following command line options are recognized:
Field Summary | |
protected java.lang.String |
configFile
Pathname to the server configuration file. |
protected boolean |
debug
Set the debugging detail level on our XmlMapper. |
protected java.lang.ClassLoader |
parentClassLoader
The shared extensions class loader for this server. |
protected Server |
server
The server component we are starting or stopping |
protected boolean |
starting
Are we starting a new server? |
protected boolean |
stopping
Are we stopping an existing server? |
protected boolean |
useNaming
Are we using naming ? |
Constructor Summary | |
Catalina()
|
Method Summary | |
protected boolean |
arguments(java.lang.String[] args)
Process the specified command line arguments, and return true if we should continue processing; otherwise
return false . |
protected java.io.File |
configFile()
Return a File object representing our configuration file. |
protected void |
createContextCommon(java.lang.String prefix,
XmlMapper mapper)
Create the mapper rules for a Context which are common to both a Context and a DefaultContext, based on the specified prefix. |
protected XmlMapper |
createStartMapper()
Create and configure the XmlMapper we will be using for startup. |
protected void |
createStartMapperContext(java.lang.String prefix,
XmlMapper mapper)
Create the mapper rules for a Context, based on the specified prefix. |
protected void |
createStartMapperDefaultContext(java.lang.String prefix,
XmlMapper mapper)
Create the mapper rules for a DefaultContext, based on the specified prefix. |
protected XmlMapper |
createStopMapper()
Create and configure the XmlMapper we will be using for shutdown. |
protected void |
execute()
Execute the processing that has been configured from the command line. |
static void |
main(java.lang.String[] args)
The application main program. |
void |
process(java.lang.String[] args)
The instance main program. |
protected void |
setCatalinaBase()
Set the catalina.base System property to the current
working directory if it has not been set. |
protected void |
setCatalinaHome()
Set the catalina.home System property to the current
working directory if it has not been set. |
void |
setParentClassLoader(java.lang.ClassLoader parentClassLoader)
Set the shared extensions class loader. |
void |
setServer(Server server)
Set the server instance we are configuring. |
protected void |
start()
Start a new server instance. |
protected void |
stop()
Stop an existing server instance. |
protected void |
usage()
Print usage information for this application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String configFile
protected boolean debug
protected java.lang.ClassLoader parentClassLoader
protected Server server
protected boolean starting
protected boolean stopping
protected boolean useNaming
Constructor Detail |
public Catalina()
Method Detail |
public static void main(java.lang.String[] args)
args
- Command line argumentspublic void process(java.lang.String[] args)
args
- Command line argumentspublic void setParentClassLoader(java.lang.ClassLoader parentClassLoader)
parentClassLoader
- The shared extensions class loader.public void setServer(Server server)
server
- The new serverprotected boolean arguments(java.lang.String[] args)
true
if we should continue processing; otherwise
return false
.
args
- Command line arguments to processprotected java.io.File configFile()
protected XmlMapper createStartMapper()
protected void createStartMapperContext(java.lang.String prefix, XmlMapper mapper)
prefix
- Prefix to rule selectors to be createdmapper
- The mapper we are updatingprotected void createStartMapperDefaultContext(java.lang.String prefix, XmlMapper mapper)
prefix
- Prefix to rule selectors to be createdmapper
- The mapper we are updatingprotected void createContextCommon(java.lang.String prefix, XmlMapper mapper)
prefix
- Prefix to rule selectors to be createdmapper
- The mapper we are updatingprotected XmlMapper createStopMapper()
protected void execute() throws java.lang.Exception
java.lang.Exception
protected void setCatalinaBase()
catalina.base
System property to the current
working directory if it has not been set.
protected void setCatalinaHome()
catalina.home
System property to the current
working directory if it has not been set.
protected void start()
protected void stop()
protected void usage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |