public class X_Shell extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getResourceMaybeUnzip(String resource,
ClassLoader cl) |
static ShellService |
globalService() |
static void |
launchExternal(Class<?> mainClass,
String[] classpath,
String[] vmFlags,
String[] args)
Attempts to launch a process external to our own.
|
static HasLiveness |
liveChecker(Process process) |
static ShellService |
newService() |
static void |
rememberArgs(Class<?> mainClass,
String... args) |
static void |
restartSelf() |
public static ShellService newService()
public static ShellService globalService()
public static HasLiveness liveChecker(Process process)
public static void launchExternal(Class<?> mainClass, String[] classpath, String[] vmFlags, String[] args)
mainClass - - The class name with the main method to runclasspath - - The classpath for this execution.vmFlags - - Flags to pass to jvm (like system properties)args - - Arguments to pass to main method
TODO: pipe external process to a known file, so we can stream back logs.public static void restartSelf()
public static String getResourceMaybeUnzip(String resource, ClassLoader cl)
Copyright © 2012-2013 The Internet Party. All Rights Reserved.