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, 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 begins with any of the image names that are part of
ProcessNames enum.Copyright © 2016 PayPal Open Source. All rights reserved.