|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.core.StandardService org.apache.catalina.startup.Embedded org.apache.catalina.startup.Catalina
public class Catalina
Startup/Shutdown shell program for Catalina. The following command line options are recognized:
Nested Class Summary | |
---|---|
protected class |
Catalina.CatalinaShutdownHook
Shutdown hook which will perform a clean shutdown of Catalina if needed. |
Field Summary | |
---|---|
protected java.lang.String |
configFile
Pathname to the server configuration file. |
protected java.lang.ClassLoader |
parentClassLoader
The shared extensions class loader for this server. |
protected java.lang.Thread |
shutdownHook
Shutdown hook. |
protected boolean |
starting
Are we starting a new server? |
protected boolean |
stopping
Are we stopping an existing server? |
protected boolean |
useShutdownHook
Use shutdown hook flag. |
Fields inherited from class org.apache.catalina.startup.Embedded |
---|
authenticators, await, engines, info, lifecycle, realm, redirectStreams, sm, started, useNaming |
Fields inherited from class org.apache.catalina.core.StandardService |
---|
connectors, container, controller, domain, executors, initialized, mserver, oname, suffix, support, type |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
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 . |
void |
await()
Await and shutdown. |
protected java.io.File |
configFile()
Return a File object representing our configuration file. |
void |
create()
|
protected Digester |
createStartDigester()
Create and configure the Digester we will be using for startup. |
protected Digester |
createStopDigester()
Create and configure the Digester we will be using for shutdown. |
void |
destroy()
|
java.lang.String |
getConfigFile()
|
boolean |
getUseShutdownHook()
|
void |
load()
Start a new server instance. |
void |
load(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
The application main program. |
void |
process(java.lang.String[] args)
The instance main program. |
void |
setCatalinaBase()
Deprecated. Use initDirs() |
void |
setCatalinaHome()
Deprecated. Use initDirs() |
void |
setConfig(java.lang.String file)
|
void |
setConfigFile(java.lang.String file)
|
void |
setParentClassLoader(java.lang.ClassLoader parentClassLoader)
Set the shared extensions class loader. |
void |
setUseShutdownHook(boolean useShutdownHook)
|
void |
start()
Start a new server instance. |
void |
stop()
Stop an existing server instance. |
void |
stopServer()
|
void |
stopServer(java.lang.String[] arguments)
|
protected void |
usage()
Print usage information for this application. |
Methods inherited from class org.apache.catalina.startup.Embedded |
---|
addAuthenticator, addConnector, addEngine, addLifecycleListener, createConnector, createConnector, createConnector, createConnector, createContext, createEngine, createHost, createLoader, findLifecycleListeners, getCatalinaBase, getCatalinaHome, getInfo, getRealm, initDirs, initNaming, initStreams, isAwait, isRedirectStreams, isUseNaming, removeContext, removeEngine, removeHost, removeLifecycleListener, setAwait, setCatalinaBase, setCatalinaHome, setRealm, setRedirectStreams, setSecurityProtection, setUseNaming |
Methods inherited from class org.apache.catalina.core.StandardService |
---|
addExecutor, addPropertyChangeListener, findConnectors, findExecutors, getConnectorNames, getContainer, getContainerName, getDomain, getExecutor, getName, getObjectName, getServer, init, initialize, postDeregister, postRegister, preDeregister, preRegister, removeConnector, removeExecutor, removePropertyChangeListener, setContainer, setName, setServer, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String configFile
protected java.lang.ClassLoader parentClassLoader
protected boolean starting
protected boolean stopping
protected boolean useShutdownHook
protected java.lang.Thread shutdownHook
Constructor Detail |
---|
public Catalina()
Method Detail |
---|
public void setConfig(java.lang.String file)
public void setConfigFile(java.lang.String file)
public java.lang.String getConfigFile()
public void setUseShutdownHook(boolean useShutdownHook)
public boolean getUseShutdownHook()
public void setParentClassLoader(java.lang.ClassLoader parentClassLoader)
parentClassLoader
- The shared extensions class loader.public static void main(java.lang.String[] args)
args
- Command line argumentspublic void process(java.lang.String[] args)
args
- Command line argumentsprotected 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 Digester createStartDigester()
protected Digester createStopDigester()
public void stopServer()
public void stopServer(java.lang.String[] arguments)
public void setCatalinaBase()
catalina.base
System property to the current
working directory if it has not been set.
public void setCatalinaHome()
catalina.home
System property to the current
working directory if it has not been set.
public void load()
public void load(java.lang.String[] args)
public void create()
public void destroy()
destroy
in class StandardService
public void start()
public void stop()
public void await()
protected void usage()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |