public final class Runtime extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Runtime.ProcOutputHandler |
static class |
Runtime.Version |
Modifier and Type | Field and Description |
---|---|
static Runtime.Version |
JAVA_PLATFORM |
static String |
JAVA_VERSION |
static String |
MAC_OS_X_OS_NAME |
static int |
NR_PROCESSORS |
static String |
OS_NAME |
static int |
PID |
static String |
PROCESS_NAME |
static String |
TMP_FOLDER |
static String |
USER_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
addHookAtBeginning(Runnable runnable) |
static void |
addHookAtEnd(Runnable runnable) |
static String |
getLsofOutput() |
static int |
getNrOpenFiles() |
static void |
goDownWithError(Throwable t,
int exitCode) |
static boolean |
isMacOsx() |
static boolean |
isWindows() |
static int |
run(String command,
Runtime.ProcOutputHandler handler) |
public static final Runtime.Version JAVA_PLATFORM
public static final String TMP_FOLDER
public static final int PID
public static final String OS_NAME
public static final String PROCESS_NAME
public static final int NR_PROCESSORS
public static final String JAVA_VERSION
public static final String USER_NAME
public static final String MAC_OS_X_OS_NAME
public static void goDownWithError(Throwable t, int exitCode)
public static boolean isMacOsx()
public static boolean isWindows()
public static int getNrOpenFiles() throws IOException, InterruptedException, ExecutionException
@Nullable public static String getLsofOutput() throws IOException, InterruptedException, ExecutionException
public static int run(String command, Runtime.ProcOutputHandler handler) throws IOException, InterruptedException, ExecutionException
public static void addHookAtBeginning(Runnable runnable)
public static void addHookAtEnd(Runnable runnable)
Copyright © 2014. All rights reserved.