org.apache.sling.testing.tools.jarexec
Class JarExecutor
java.lang.Object
org.apache.sling.testing.tools.jarexec.JarExecutor
public class JarExecutor
- extends java.lang.Object
Start a runnable jar by forking a JVM process,
and terminate the process when this VM exits.
|
Constructor Summary |
JarExecutor(java.util.Properties config)
Build a JarExecutor, locate the jar to run, etc |
|
Method Summary |
int |
getServerPort()
|
void |
start()
Start the jar if not done yet, and setup runtime hook
to stop it. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_JAR_FOLDER
public static final java.lang.String DEFAULT_JAR_FOLDER
- See Also:
- Constant Field Values
DEFAULT_JAR_NAME_REGEXP
public static final java.lang.String DEFAULT_JAR_NAME_REGEXP
- See Also:
- Constant Field Values
PROP_PREFIX
public static final java.lang.String PROP_PREFIX
- See Also:
- Constant Field Values
PROP_SERVER_PORT
public static final java.lang.String PROP_SERVER_PORT
- See Also:
- Constant Field Values
PROP_JAR_FOLDER
public static final java.lang.String PROP_JAR_FOLDER
- See Also:
- Constant Field Values
PROP_JAR_NAME_REGEXP
public static final java.lang.String PROP_JAR_NAME_REGEXP
- See Also:
- Constant Field Values
PROP_VM_OPTIONS
public static final java.lang.String PROP_VM_OPTIONS
- See Also:
- Constant Field Values
PROP_WORK_FOLDER
public static final java.lang.String PROP_WORK_FOLDER
- See Also:
- Constant Field Values
PROP_JAR_OPTIONS
public static final java.lang.String PROP_JAR_OPTIONS
- See Also:
- Constant Field Values
JarExecutor
public JarExecutor(java.util.Properties config)
throws JarExecutor.ExecutorException
- Build a JarExecutor, locate the jar to run, etc
- Throws:
JarExecutor.ExecutorException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getServerPort
public int getServerPort()
start
public void start()
throws java.lang.Exception
- Start the jar if not done yet, and setup runtime hook
to stop it.
- Throws:
java.lang.Exception
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.