public class WindowsProcessManager extends Object implements ProcessManager
ProcessManager
implementation for Windows.
Requires wmic.exe and taskkill.exe, that should be available at least on Windows XP, Windows Vista, and Windows 7 (except Home versions).
Modifier and Type | Field and Description |
---|---|
protected static boolean |
PID_ENABLED |
Constructor and Description |
---|
WindowsProcessManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canFindPid() |
String |
findPid(String regex) |
boolean |
isUsable() |
void |
kill(Process process,
String pid) |
protected static final boolean PID_ENABLED
public WindowsProcessManager()
public String findPid(String regex) throws IOException
findPid
in interface ProcessManager
IOException
public void kill(Process process, String pid) throws IOException
kill
in interface ProcessManager
IOException
public boolean isUsable()
public boolean canFindPid()
canFindPid
in interface ProcessManager
Copyright © 2016 Nuxeo SA. All rights reserved.