public class JavaLauncher extends Object
CommandRunner.| Constructor and Description |
|---|
JavaLauncher()
Creates a new java launcher.
|
| Modifier and Type | Method and Description |
|---|---|
List<URL> |
find_current_classpath()
Obtains the URLs in the current class path.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
File w_dir,
List<String> arguments,
int limit)
Runs a java program but doesn't wait for completion.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
File w_dir,
List<String> arguments,
List<URL> class_path,
int limit,
Short debug_port)
Runs a java program but doesn't wait for completion.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
int limit,
String... arguments)
Runs a java program but doesn't wait for its completion.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
List<String> arguments,
int limit)
Runs a java program but doesn't wait for its completion.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
List<String> arguments,
List<URL> class_path,
int limit)
Runs a java program but doesn't wait for completion.
|
CommandRunner.ProcessInterface |
launch_java_async(String class_name,
List<String> arguments,
List<URL> class_path,
int limit,
Short debug_port)
Runs a java program but doesn't wait for completion.
|
CommandRunner.CommandOutput |
launch_java(String class_name,
int limit,
String... arguments)
Runs a java program and waits for its completion.
|
CommandRunner.CommandOutput |
launch_java(String class_name,
List<String> arguments,
int limit)
Runs a java program and waits for its completion.
|
CommandRunner.CommandOutput |
launch_java(String class_name,
List<String> arguments,
List<URL> class_path,
int limit)
Runs a java program and waits for completion.
|
CommandRunner.CommandOutput |
launch_java(String class_name,
List<String> arguments,
List<URL> class_path,
int limit,
Short debug_port)
Runs a java program and waits for completion.
|
CommandRunner.CommandOutput |
launchJava(String class_name,
int limit,
String... arguments)
Deprecated.
|
CommandRunner.CommandOutput |
launchJava(String className,
List<String> arguments,
int limit)
Deprecated.
|
CommandRunner.CommandOutput |
launchJava(String class_name,
List<String> arguments,
List<URL> class_path,
int limit)
Deprecated.
|
CommandRunner.CommandOutput |
launchJava(String class_name,
List<String> arguments,
List<URL> class_path,
int limit,
Short debug_port)
Deprecated.
|
CommandRunner.ProcessInterface |
launchJavaAsync(String className,
int limit,
String... arguments)
Deprecated.
|
CommandRunner.ProcessInterface |
launchJavaAsync(String className,
List<String> arguments,
int limit)
Deprecated.
|
CommandRunner.ProcessInterface |
launchJavaAsync(String class_name,
List<String> arguments,
List<URL> class_path,
int limit)
Deprecated.
|
CommandRunner.ProcessInterface |
launchJavaAsync(String class_name,
List<String> arguments,
List<URL> class_path,
int limit,
Short debug_port)
Deprecated.
|
@Deprecated public CommandRunner.CommandOutput launchJava(String class_name, int limit, String... arguments) throws IOException
launch_java(String, int, String...)class_name - deprecatedlimit - deprecatedarguments - deprecatedIOException - deprecatedpublic CommandRunner.CommandOutput launch_java(String class_name, int limit, String... arguments) throws IOException
launch_java(String, List, List, int) using the current
class path.class_name - the Java class namelimit - the time limit (in seconds) for the program to executearguments - the program argumentsIOException - failed to launch the programpublic CommandRunner.ProcessInterface launch_java_async(String class_name, int limit, String... arguments) throws IOException
launch_java_async(String, List, List, int)
using the current JVM's class path.class_name - the Java class namearguments - the program argumentslimit - the time limit (in seconds) for the program to executeIOException - failed to launch the program@Deprecated public CommandRunner.ProcessInterface launchJavaAsync(String className, int limit, String... arguments) throws IOException
launch_java_async(String, int, String...)className - deprecatedlimit - deprecatedarguments - deprecatedIOException - deprecatedpublic CommandRunner.CommandOutput launch_java(String class_name, List<String> arguments, int limit) throws IOException
launch_java(String, List, List, int) using the current
class path.class_name - the Java class namearguments - the program argumentslimit - the time limit (in seconds) for the program to executeIOException - failed to launch the program@Deprecated public CommandRunner.CommandOutput launchJava(String className, List<String> arguments, int limit) throws IOException
launch_java(String, List, int)className - deprecatedarguments - deprecatedlimit - deprecatedIOException - deprecatedpublic CommandRunner.ProcessInterface launch_java_async(String class_name, List<String> arguments, int limit) throws IOException
launch_java_async(String, List, List, int)
using the current JVM's class path.class_name - the Java class namearguments - the program argumentslimit - the time limit (in seconds) for the program to executeIOException - failed to launch the program@Deprecated public CommandRunner.ProcessInterface launchJavaAsync(String className, List<String> arguments, int limit) throws IOException
launch_java_async(String, List, int)className - deprecatedarguments - deprecatedlimit - deprecatedIOException - deprecatedpublic CommandRunner.ProcessInterface launch_java_async(String class_name, List<String> arguments, List<URL> class_path, int limit) throws IOException
class_name - the Java class namearguments - the program argumentsclass_path - the program's class pathlimit - the time limit (in seconds) for the program to executeIOException - failed to launch the program@Deprecated public CommandRunner.ProcessInterface launchJavaAsync(String class_name, List<String> arguments, List<URL> class_path, int limit) throws IOException
launch_java_async(String, List, List, int)class_name - deprecatedarguments - deprecatedclass_path - deprecatedlimit - deprecatedIOException - deprecatedpublic CommandRunner.ProcessInterface launch_java_async(String class_name, List<String> arguments, List<URL> class_path, int limit, Short debug_port) throws IOException
class_name - the Java class namearguments - the program argumentsclass_path - the program's class pathlimit - the time limit (in seconds) for the program to executedebug_port - if not null, a java debug port will
be open in this portIOException - failed to launch the programpublic CommandRunner.ProcessInterface launch_java_async(String class_name, File w_dir, List<String> arguments, int limit) throws IOException
class_name - the Java class namew_dir - the working directory to run the programarguments - the program argumentslimit - the time limit (in seconds) for the program to executeIOException - failed to launch the programpublic CommandRunner.ProcessInterface launch_java_async(String class_name, File w_dir, List<String> arguments, List<URL> class_path, int limit, Short debug_port) throws IOException
class_name - the Java class namew_dir - the working directory to run the programarguments - the program argumentsclass_path - the program's class pathlimit - the time limit (in seconds) for the program to executedebug_port - if not null, a java debug port will
be open in this portIOException - failed to launch the program@Deprecated public CommandRunner.ProcessInterface launchJavaAsync(String class_name, List<String> arguments, List<URL> class_path, int limit, Short debug_port) throws IOException
launch_java_async(String, List, List, int, Short)class_name - deprecatedarguments - deprecatedclass_path - deprecatedlimit - deprecateddebug_port - deprecatedIOException - deprecatedpublic CommandRunner.CommandOutput launch_java(String class_name, List<String> arguments, List<URL> class_path, int limit) throws IOException
class_name - the Java class name.arguments - the program argumentsclass_path - the program's class pathlimit - the time limit (in seconds) for the program to executeIOException - failed to launch the program@Deprecated public CommandRunner.CommandOutput launchJava(String class_name, List<String> arguments, List<URL> class_path, int limit) throws IOException
launch_java(String, List, List, int)class_name - deprecatedarguments - deprecatedclass_path - deprecatedlimit - deprecatedIOException - deprecatedpublic CommandRunner.CommandOutput launch_java(String class_name, List<String> arguments, List<URL> class_path, int limit, Short debug_port) throws IOException
class_name - the Java class name.arguments - the program argumentsclass_path - the program's class pathlimit - the time limit (in seconds) for the program to executedebug_port - if not null, the jvm will open a debug
port in this addressIOException - failed to launch the program@Deprecated public CommandRunner.CommandOutput launchJava(String class_name, List<String> arguments, List<URL> class_path, int limit, Short debug_port) throws IOException
launch_java(String, List, List, int, Short)class_name - deprecatedarguments - deprecatedclass_path - deprecatedlimit - deprecateddebug_port - deprecatedIOException - deprecatedCopyright © 2015. All rights reserved.