public class JarExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JarExecutor.ExecutorException |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EXIT_TIMEOUT |
static String |
DEFAULT_JAR_FOLDER |
static String |
DEFAULT_JAR_NAME_REGEXP |
static int |
DEFAULT_PORT |
static String |
PROP_EXIT_TIMEOUT_SECONDS |
static String |
PROP_JAR_FOLDER |
static String |
PROP_JAR_NAME_REGEXP |
static String |
PROP_JAR_OPTIONS |
static String |
PROP_JAVA_PATH |
static String |
PROP_PREFIX |
static String |
PROP_SERVER_PORT |
static String |
PROP_SYNC_EXEC |
static String |
PROP_SYNC_EXEC_EXPECTED |
static String |
PROP_VM_OPTIONS |
static String |
PROP_WAIT_ONSHUTDOWN |
static String |
PROP_WORK_FOLDER |
Constructor and Description |
---|
JarExecutor(Properties config)
Build a JarExecutor, locate the jar to run, etc
|
Modifier and Type | Method and Description |
---|---|
int |
getServerPort() |
void |
start()
Start the jar if not done yet, and setup runtime hook
to stop it.
|
void |
stop()
Stop the process that we started, if any, and wait for it to exit before returning
|
String |
toString() |
public static final int DEFAULT_PORT
public static final int DEFAULT_EXIT_TIMEOUT
public static final String DEFAULT_JAR_FOLDER
public static final String DEFAULT_JAR_NAME_REGEXP
public static final String PROP_PREFIX
public static final String PROP_SERVER_PORT
public static final String PROP_JAR_FOLDER
public static final String PROP_JAR_NAME_REGEXP
public static final String PROP_VM_OPTIONS
public static final String PROP_WORK_FOLDER
public static final String PROP_JAR_OPTIONS
public static final String PROP_EXIT_TIMEOUT_SECONDS
public static final String PROP_WAIT_ONSHUTDOWN
public static final String PROP_JAVA_PATH
public static final String PROP_SYNC_EXEC
public static final String PROP_SYNC_EXEC_EXPECTED
public JarExecutor(Properties config) throws JarExecutor.ExecutorException
JarExecutor.ExecutorException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.