Class ProcessUtil
java.lang.Object
de.funfried.maven.plugin.zonky.utils.ProcessUtil
- Author:
- fbahle
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProcessIdsByPort
(int port) getProcessIdsByPort
(int port, long timeout) static void
killProcessById
(int processId) static void
killProcessById
(int processId, long timeout) static void
killProcessByPort
(int port) static void
killProcessByPort
(int port, long timeout)
-
Field Details
-
DEFAULT_PROCESS_TIMEOUT
public static final long DEFAULT_PROCESS_TIMEOUT- See Also:
-
-
Method Details
-
getProcessIdsByPort
public static Set<Integer> getProcessIdsByPort(int port) throws IOException, TimeoutException, InterruptedException -
getProcessIdsByPort
public static Set<Integer> getProcessIdsByPort(int port, long timeout) throws IOException, TimeoutException, InterruptedException -
killProcessById
public static void killProcessById(int processId) throws IOException, TimeoutException, InterruptedException -
killProcessById
public static void killProcessById(int processId, long timeout) throws IOException, TimeoutException, InterruptedException -
killProcessByPort
public static void killProcessByPort(int port) throws IOException, TimeoutException, InterruptedException -
killProcessByPort
public static void killProcessByPort(int port, long timeout) throws IOException, TimeoutException, InterruptedException
-