public class Catalina
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
protected class |
Catalina.CatalinaShutdownHook |
Shutdown hook which will perform a clean shutdown of Catalina if needed.
|
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
await |
Use await.
|
protected java.lang.String |
configFile |
Pathname to the server configuration file.
|
protected boolean |
loaded |
Prevent duplicate loads.
|
protected java.lang.ClassLoader |
parentClassLoader |
The shared extensions class loader for this server.
|
protected Server |
server |
The server component we are starting or stopping.
|
static java.lang.String |
SERVER_XML |
|
protected java.lang.Thread |
shutdownHook |
Shutdown hook.
|
protected static StringManager |
sm |
The string manager for this package.
|
protected boolean |
useNaming |
Is naming enabled ?
|
protected boolean |
useShutdownHook |
Use shutdown hook flag.
|
Constructor | Description |
---|---|
Catalina() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
arguments(java.lang.String[] args) |
Process the specified command line arguments.
|
void |
await() |
Await and shutdown.
|
protected java.io.File |
configFile() |
Return a File object representing our configuration file.
|
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.
|
java.lang.String |
getConfigFile() |
|
java.lang.ClassLoader |
getParentClassLoader() |
|
Server |
getServer() |
|
boolean |
getUseShutdownHook() |
|
protected void |
initDirs() |
|
protected void |
initNaming() |
|
protected void |
initStreams() |
|
boolean |
isAwait() |
|
boolean |
isUseNaming() |
|
void |
load() |
Start a new server instance.
|
void |
load(java.lang.String[] args) |
|
void |
setAwait(boolean b) |
|
void |
setConfigFile(java.lang.String file) |
|
void |
setParentClassLoader(java.lang.ClassLoader parentClassLoader) |
Set the shared extensions class loader.
|
protected void |
setSecurityProtection() |
Set the security package access/protection.
|
void |
setServer(Server server) |
|
void |
setUseNaming(boolean useNaming) |
Enables or disables naming support.
|
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.
|
protected static final StringManager sm
public static final java.lang.String SERVER_XML
protected boolean await
protected java.lang.String configFile
protected java.lang.ClassLoader parentClassLoader
protected Server server
protected boolean useShutdownHook
protected java.lang.Thread shutdownHook
protected boolean useNaming
protected boolean loaded
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 java.lang.ClassLoader getParentClassLoader()
public void setServer(Server server)
public Server getServer()
public boolean isUseNaming()
true
if naming is enabled.public void setUseNaming(boolean useNaming)
useNaming
- The new use naming valuepublic void setAwait(boolean b)
public boolean isAwait()
protected boolean arguments(java.lang.String[] args)
args
- Command line arguments to processtrue
if we should continue processingprotected java.io.File configFile()
protected Digester createStartDigester()
protected Digester createStopDigester()
public void stopServer()
public void stopServer(java.lang.String[] arguments)
public void load()
public void load(java.lang.String[] args)
public void start()
public void stop()
public void await()
protected void usage()
protected void initDirs()
protected void initStreams()
protected void initNaming()
protected void setSecurityProtection()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.