org.apache.catalina.startup
public class Catalina extends Embedded
Modifier and Type | Class and Description |
---|---|
protected class |
Catalina.CatalinaShutdownHook
Shutdown hook which will perform a clean shutdown of Catalina if needed.
|
Modifier and Type | Field and Description |
---|---|
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 Server |
server
The server component we are starting or stopping
|
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.
|
authenticators, await, engines, info, lifecycle, realm, redirectStreams, sm, started, useNaming
connectors, container, controller, domain, executors, initialized, mserver, oname, suffix, support, type
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
Catalina() |
Modifier and Type | Method and Description |
---|---|
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 |
setServer(Server server)
Set the server instance we are configuring.
|
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.
|
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
addExecutor, addPropertyChangeListener, findConnectors, findExecutors, getConnectorNames, getContainer, getContainerName, getDomain, getExecutor, getName, getObjectName, getServer, init, initialize, postDeregister, postRegister, preDeregister, preRegister, removeConnector, removeExecutor, removePropertyChangeListener, setContainer, setName, toString
protected java.lang.String configFile
protected java.lang.ClassLoader parentClassLoader
protected Server server
protected boolean starting
protected boolean stopping
protected boolean useShutdownHook
protected java.lang.Thread shutdownHook
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 void setServer(Server server)
setServer
in interface Service
setServer
in class StandardService
server
- The new serverpublic 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()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.