Package org.eclipse.jetty.start
Class Main
java.lang.Object
org.eclipse.jetty.start.Main
Main start class.
This class is intended to be the main class listed in the MANIFEST.MF of the start.jar archive. It allows the Jetty Application server to be started with the command "java -jar start.jar".
Argument processing steps:
- Directory Location: jetty.home=[directory] (the jetty.home location)
- Directory Location: jetty.base=[directory] (the jetty.base location)
- Start Logging behavior: --debug (debugging enabled)
- Start Logging behavior: --start-log-file=logs/start.log (output start logs to logs/start.log location)
- Module Resolution
- Properties Resolution
- Present Optional Informational Options
- Normal Startup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
void
invokeMain
(ClassLoader classloader, StartArgs args) void
listConfig
(PrintStream out, StartArgs args) void
listModules
(PrintStream out, StartArgs args) static void
static boolean
printTextResource
(String resourceName) processCommandLine
(String[] cmdLine) processCommandLine
(List<String> cmdLine) Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
void
showModules
(PrintStream out, StartArgs args) void
start()
void
void
stop()
void
Stop a running jetty instance.void
void
usage
(boolean exit)
-
Constructor Details
-
Main
- Throws:
IOException
-
-
Method Details
-
main
-
getBaseHome
-
invokeMain
public void invokeMain(ClassLoader classloader, StartArgs args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException -
listConfig
-
listModules
-
showModules
-
processCommandLine
Convenience forprocessCommandLine(cmdLine.toArray(new String[cmdLine.size()]))
- Parameters:
cmdLine
- the command line- Returns:
- the start args parsed from the command line
- Throws:
Exception
- if unable to process the command line
-
processCommandLine
- Throws:
Exception
-
start
- Throws:
IOException
InterruptedException
-
start
- Throws:
Exception
-
stop
Stop a running jetty instance.- Parameters:
host
- the hostport
- the portkey
- the key
-
stop
-
stop
- Throws:
Exception
-
usage
public void usage(boolean exit) -
printTextResource
-
init
- Throws:
Exception
-
destroy
public void destroy()
-