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, killProcess
public List<ProcessInfo> potentialProcessToBeKilled() throws ProcessHandlerException
potentialProcessToBeKilled
in interface ProcessHandler
ProcessInfo
that represents the bunch of processes that need to be forcibly killed
before a given node can be recycled.ProcessHandlerException
public void killProcess(List<ProcessInfo> processes) throws ProcessHandlerException
killProcess
in interface ProcessHandler
processes
- A List of ProcessInfo
that are to be forcibly killed.ProcessHandlerException
protected boolean matches(String image)
matches
in class AbstractProcessHandler
image
- - 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.