public class InvokeUtils
extends java.lang.Object
| Constructor and Description |
|---|
InvokeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureLogging(int verbosity,
boolean debug)
Sets up the logging system.
|
static java.lang.String |
getJavaVersion()
Returns the JVM version, without throwing any exceptions.
|
static java.lang.String |
getJavaVM()
Returns the JVM name and version string, without throwing any exceptions.
|
static void |
main(java.lang.String[] args)
Invokes the main method of a named class with logging configuration
specified on the command line.
|
static Parameter[] |
sortParameters(Parameter[] params)
Sorts a list of Parameter objects.
|
static void |
summariseError(java.lang.Throwable error,
java.io.PrintStream out)
Writes a summary of a (possibly nested) exception to a given
output stream.
|
public static void configureLogging(int verbosity,
boolean debug)
verbosity - number of levels greater than default to setdebug - whether debugging mode is onpublic static java.lang.String getJavaVersion()
public static java.lang.String getJavaVM()
public static void summariseError(java.lang.Throwable error,
java.io.PrintStream out)
error - exceptionout - destination streampublic static Parameter[] sortParameters(Parameter[] params)
params - input listpublic static void main(java.lang.String[] args)
throws java.lang.Throwable
java.lang.ThrowableCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.