public class ApexProcessHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
protected static int |
OS_MARKER_LINUX |
protected static int |
OS_MARKER_MAC |
protected static int |
OS_MARKER_WINDOWS |
| Constructor and Description |
|---|
ApexProcessHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static OptionalLong |
extractMemory(int osFlag,
InputStream inputStream) |
static String |
getCommandAsString(List<String> command) |
static long |
getPidOfProcess(Process p) |
static OptionalLong |
getProcessResidentMemory(long pid) |
protected static final org.slf4j.Logger LOGGER
protected static final int OS_MARKER_LINUX
protected static final int OS_MARKER_WINDOWS
protected static final int OS_MARKER_MAC
public static long getPidOfProcess(Process p)
public static OptionalLong getProcessResidentMemory(long pid) throws IOException
pid - the PID of the process to considerIOExceptionprotected static OptionalLong extractMemory(int osFlag, InputStream inputStream) throws IOException
IOExceptionCopyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.