|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.task.InvokeUtils
public class InvokeUtils
Provides some utility functions used by classes which invoke tasks.
Constructor Summary | |
---|---|
InvokeUtils()
|
Method Summary | |
---|---|
static void |
configureLogging(int verbosity,
boolean debug)
Sets up the logging system. |
static String |
getJavaVersion()
Returns the JVM version, without throwing any exceptions. |
static String |
getJavaVM()
Returns the JVM name and version string, without throwing any exceptions. |
static Parameter[] |
sortParameters(Parameter[] params)
Sorts a list of Parameter objects. |
static void |
summariseError(Throwable error,
PrintStream out)
Writes a summary of a (possibly nested) exception to a given output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvokeUtils()
Method Detail |
---|
public static void configureLogging(int verbosity, boolean debug)
verbosity
- number of levels greater than default to setdebug
- whether debugging mode is onpublic static String getJavaVersion()
public static String getJavaVM()
public static void summariseError(Throwable error, PrintStream out)
error
- exceptionout
- destination streampublic static Parameter[] sortParameters(Parameter[] params)
params
- input list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |