Modifier and Type | Method and Description |
---|---|
static String |
formatVariable(String variableName)
Formats the given variable for expansion by Windows (
%VARIABE% ) or Linux ($VARIABLE ) |
static long |
getPID() |
static boolean |
isLinux()
Determines whether the current JVM is running on the Linux OS.
|
static boolean |
isWindows()
Determines whether the current JVM is running on the Windows OS.
|
static void |
kill(long pid)
Applies `kill -9` to the process.
|
public static boolean isWindows()
public static boolean isLinux()
public static long getPID()
public static void kill(long pid) throws IOException, InterruptedException
pid
- IOException
InterruptedException
public static String formatVariable(String variableName)
%VARIABE%
) or Linux ($VARIABLE
)variableName
- Copyright © 2015 The Apache Software Foundation. All rights reserved.