org.apache.catalina.startup
Class CatalinaService
java.lang.Object
|
+--org.apache.catalina.startup.Catalina
|
+--org.apache.catalina.startup.CatalinaService
- public class CatalinaService
- extends Catalina
Startup/Shutdown shell program for Catalina. The following command line
options are recognized:
- -config {pathname} - Set the pathname of the configuration file
to be processed. If a relative path is specified, it will be
interpreted as relative to the directory pathname specified by the
"catalina.base" system property. [conf/server.xml]
- -help - Display usage information.
- -stop - Stop the currently running instance of Catalina.
Special version of the Catalina bootstrap, designed to be invoked with JNI,
and designed to allow easier wrapping by system level components, which
would otherwise be confused by the asychronous startup and shutdown Catalina
uses. This class should be used to run Catalina as a system service under
Windows NT and clones.
- Version:
- $Revision: 1.4 $ $Date: 2002/08/21 03:31:18 $
- Author:
- Craig R. McClanahan, Remy Maucherat
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 . |
void |
execute()
Execute the processing that has been configured from the command line. |
protected void |
initHomeAndBase()
|
void |
load()
Start a new server instance. |
void |
load(java.lang.String[] args)
|
void |
setBase(java.lang.String s)
|
void |
setCompiler(java.lang.String s)
|
void |
setConfig(java.lang.String file)
|
void |
setDo(java.lang.String action)
|
void |
setHome(java.lang.String s)
|
void |
setUseNaming(boolean b)
|
void |
setWait(boolean b)
|
void |
start()
Start a new server instance. |
void |
stop()
Stop an existing server instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalinaService
public CatalinaService()
arguments
protected boolean arguments(java.lang.String[] args)
- Process the specified command line arguments, and return
true
if we should continue processing; otherwise
return false
.
- Overrides:
arguments
in class Catalina
- Parameters:
args
- Command line arguments to process
setHome
public void setHome(java.lang.String s)
setBase
public void setBase(java.lang.String s)
initHomeAndBase
protected void initHomeAndBase()
setUseNaming
public void setUseNaming(boolean b)
setConfig
public void setConfig(java.lang.String file)
setDo
public void setDo(java.lang.String action)
setWait
public void setWait(boolean b)
setCompiler
public void setCompiler(java.lang.String s)
execute
public void execute()
throws java.lang.Exception
- Execute the processing that has been configured from the command line.
- Overrides:
execute
in class Catalina
java.lang.Exception
load
public void load()
- Start a new server instance.
load
public void load(java.lang.String[] args)
start
public void start()
- Start a new server instance.
- Overrides:
start
in class Catalina
stop
public void stop()
- Stop an existing server instance.
- Overrides:
stop
in class Catalina
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.