Startup/Shutdown shell program for Catalina. The following command line options are recognized: -config {pathname} - Set the pathname of the configuration file to be processed. If a relative path is specified, it will be interpreted as relative to the directory pathname specified by
| 67 | * </ul> |
| 68 | */ |
| 69 | public class Catalina { |
| 70 | |
| 71 | |
| 72 | /** |
| 73 | * The string manager for this package. |
| 74 | */ |
| 75 | protected static final StringManager sm = StringManager.getManager(Constants.Package); |
| 76 | |
| 77 | /** |
| 78 | * Default path to the server configuration file. |
| 79 | */ |
| 80 | public static final String SERVER_XML = "conf/server.xml"; |
| 81 | |
| 82 | // ----------------------------------------------------- Instance Variables |
| 83 | |
| 84 | /** |
| 85 | * Use await. |
| 86 | */ |
| 87 | protected boolean await = false; |
| 88 | |
| 89 | /** |
| 90 | * Pathname to the server configuration file. |
| 91 | */ |
| 92 | protected String configFile = SERVER_XML; |
| 93 | |
| 94 | // XXX Should be moved to embedded |
| 95 | /** |
| 96 | * The shared extensions class loader for this server. |
| 97 | */ |
| 98 | protected ClassLoader parentClassLoader = Catalina.class.getClassLoader(); |
| 99 | |
| 100 | |
| 101 | /** |
| 102 | * The server component we are starting or stopping. |
| 103 | */ |
| 104 | protected Server server = null; |
| 105 | |
| 106 | |
| 107 | /** |
| 108 | * Use shutdown hook flag. |
| 109 | */ |
| 110 | protected boolean useShutdownHook = true; |
| 111 | |
| 112 | |
| 113 | /** |
| 114 | * Shutdown hook. |
| 115 | */ |
| 116 | protected Thread shutdownHook = null; |
| 117 | |
| 118 | |
| 119 | /** |
| 120 | * Is naming enabled ? |
| 121 | */ |
| 122 | protected boolean useNaming = true; |
| 123 | |
| 124 | |
| 125 | /** |
| 126 | * Prevent duplicate loads. |
nothing calls this directly
no test coverage detected