public final class Bootstrap extends Object
Constructor and Description |
---|
Bootstrap() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the Catalina Daemon.
|
boolean |
getAwait() |
static String |
getCatalinaBase()
Obtain the name of the configured base (instance) directory.
|
static File |
getCatalinaBaseFile()
Obtain the configured base (instance) directory.
|
static String |
getCatalinaHome()
Obtain the name of configured home (binary) directory.
|
static File |
getCatalinaHomeFile()
Obtain the configured home (binary) directory.
|
protected static String[] |
getPaths(String value) |
void |
init()
Initialize daemon.
|
void |
init(String[] arguments)
Load the Catalina daemon.
|
static void |
main(String[] args)
Main method and entry point when starting Tomcat via the provided
scripts.
|
protected String |
replace(String str)
System property replacement in the given string.
|
void |
setAwait(boolean await)
Set flag.
|
void |
start()
Start the Catalina daemon.
|
void |
stop()
Stop the Catalina Daemon.
|
void |
stopServer()
Stop the standalone server.
|
void |
stopServer(String[] arguments)
Stop the standalone server.
|
protected String replace(String str)
str
- The original stringpublic void init() throws Exception
Exception
- Fatal initialization errorpublic void init(String[] arguments) throws Exception
arguments
- Initialization argumentsException
- Fatal initialization errorpublic void start() throws Exception
Exception
- Fatal start errorpublic void stop() throws Exception
Exception
- Fatal stop errorpublic void stopServer() throws Exception
Exception
- Fatal stop errorpublic void stopServer(String[] arguments) throws Exception
arguments
- Command line argumentsException
- Fatal stop errorpublic void setAwait(boolean await) throws Exception
await
- true
if the daemon should blockException
- Reflection errorpublic void destroy()
public static void main(String[] args)
args
- Command line arguments to be processedpublic static String getCatalinaHome()
public static String getCatalinaBase()
getCatalinaHome()
will be used.public static File getCatalinaHomeFile()
public static File getCatalinaBaseFile()
getCatalinaHomeFile()
will be used.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.