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 String |
configFile
Pathname to the server configuration file.
|
protected ClassLoader |
parentClassLoader
The shared extensions class loader for this server.
|
protected Server |
server
The server component we are starting or stopping
|
protected Thread |
shutdownHook
Shutdown hook.
|
protected boolean |
starting
Are we starting a new server?
|
protected boolean |
stopping
Are we stopping an existing server?
|
authenticators, await, embeddedDirectoryListing, engines, info, lifecycle, log, logger, rb, realm, socketFactory, started, useNaming
connectors, connectorsMonitor, container, debug, domain, initialized, oname, support
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
Catalina() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
arguments(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 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() |
String |
getConfigFile() |
void |
load()
Start a new server instance.
|
void |
load(String[] args) |
static void |
main(String[] args)
The application main program.
|
void |
process(String[] args)
The instance main program.
|
void |
setCatalinaBase()
Deprecated.
Use initDirs()
|
void |
setCatalinaHome()
Deprecated.
Use initDirs()
|
void |
setConfig(String file) |
void |
setConfigFile(String file) |
void |
setParentClassLoader(ClassLoader parentClassLoader)
Set the shared extensions class loader.
|
void |
setServer(Server server)
Set the server instance we are configuring.
|
void |
start()
Start a new server instance.
|
void |
stop()
Stop an existing server instance.
|
void |
stopServer() |
protected void |
usage()
Print usage information for this application.
|
addAuthenticator, addConnector, addEngine, addLifecycleListener, createConnector, createConnector, createConnector, createConnector, createContext, createEngine, createHost, createLoader, findLifecycleListeners, getCatalinaBase, getCatalinaHome, getEngines, getInfo, getLogger, getRealm, getSocketFactory, initDirs, initNaming, isAwait, isDirectoryListing, isUseNaming, removeContext, removeEngine, removeHost, removeLifecycleListener, setAwait, setCatalinaBase, setCatalinaHome, setDirectoryListing, setLogger, setRealm, setSecurityProtection, setSocketFactory, setUseNaming
addPropertyChangeListener, findConnector, findConnectors, getBroadcaster, getConnectorNames, getContainer, getContainerName, getDebug, getDomain, getName, getObjectName, getServer, init, initialize, removeConnector, removePropertyChangeListener, setBroadcaster, setContainer, setDebug, setName, toString
protected String configFile
protected ClassLoader parentClassLoader
protected Server server
protected boolean starting
protected boolean stopping
protected Thread shutdownHook
public void setConfig(String file)
public void setConfigFile(String file)
public String getConfigFile()
public void setParentClassLoader(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(String[] args)
args
- Command line argumentspublic void process(String[] args)
args
- Command line argumentsprotected boolean arguments(String[] args)
true
if we should continue processing; otherwise
return false
.args
- Command line arguments to processprotected File configFile()
protected Digester createStartDigester()
protected Digester createStopDigester()
public void stopServer()
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(String[] args)
public void create()
public void start()
public void stop()
public void await()
protected void usage()
Copyright © 2019. All rights reserved.