public abstract class AbstractProcessHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected static SeLionGridLogger |
LOGGER |
Constructor and Description |
---|
AbstractProcessHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
getCurrentProcessID()
Gets the PID for the SeLion-Grid (main) process
|
protected List<ProcessInfo> |
getProcessInfo(String[] cmd,
String delimiter,
OSPlatform platform) |
protected void |
killProcess(String[] killCommand,
List<ProcessInfo> process) |
protected abstract boolean |
matches(String image) |
protected static final SeLionGridLogger LOGGER
protected List<ProcessInfo> getProcessInfo(String[] cmd, String delimiter, OSPlatform platform) throws IOException, InterruptedException
IOException
InterruptedException
protected void killProcess(String[] killCommand, List<ProcessInfo> process) throws ProcessHandlerException
ProcessHandlerException
protected abstract boolean matches(String image)
image
- - A image name that should be checked against the image names represented by
ProcessNames
enum.true
if the image name matches for the given operating system.protected int getCurrentProcessID() throws ProcessHandlerException
ProcessHandlerException
Copyright © 2016 PayPal Open Source. All rights reserved.