public class UnixProcessHandler extends AbstractProcessHandler implements ProcessHandler
ProcessNames and also in forcibly killing them on a Unix like environment.LOGGER| Constructor and Description |
|---|
UnixProcessHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
killProcess(List<ProcessInfo> processes) |
protected boolean |
matches(String image) |
List<ProcessInfo> |
potentialProcessToBeKilled() |
getCurrentProcessID, getProcessInfo, killProcesspublic List<ProcessInfo> potentialProcessToBeKilled() throws ProcessHandlerException
potentialProcessToBeKilled in interface ProcessHandlerProcessInfo that represents the bunch of processes that need to be forcibly killed
before a given node can be recycled.ProcessHandlerExceptionpublic void killProcess(List<ProcessInfo> processes) throws ProcessHandlerException
killProcess in interface ProcessHandlerprocesses - A List of ProcessInfo that are to be forcibly killed.ProcessHandlerExceptionprotected boolean matches(String image)
matches in class AbstractProcessHandlerimage - - The image name of the processtrue if the image name matches one of the below conditions when compared to the list of
image names that are part of ProcessNames enum.
Copyright © 2016 PayPal Open Source. All rights reserved.