public class WindowsProcessHandler extends AbstractProcessHandler implements ProcessHandler
ProcessNames
and also in forcibly killing them on a Windows like environment.LOGGER
Constructor and Description |
---|
WindowsProcessHandler() |
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 begins with any of the image names that are part of
ProcessNames
enum.Copyright © 2016 PayPal Open Source. All rights reserved.