Package com.lambdatest
Class KillPort
java.lang.Object
com.lambdatest.KillPort
kills the port active.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetPid(int port) gets the pid of port runningstatic intgetPidLinux(int port) Gets PID on Linuxstatic intgetPidWin(int port) gets PID on Windowsstatic voidkillProcess(int port) Executes kill process
-
Constructor Details
-
KillPort
public KillPort()
-
-
Method Details
-
killProcess
public static void killProcess(int port) Executes kill process -
getPid
public static int getPid(int port) gets the pid of port running -
getPidWin
public static int getPidWin(int port) gets PID on Windows -
getPidLinux
public static int getPidLinux(int port) Gets PID on Linux
-