Package org.nd4j.parameterserver.util
Class CheckSocket
- java.lang.Object
-
- org.nd4j.parameterserver.util.CheckSocket
-
public class CheckSocket extends Object
-
-
Constructor Summary
Constructors Constructor Description CheckSocket()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanremotePortTaken(String node, int port, int timeout)Check if a remote port is taken
-
-
-
Method Detail
-
remotePortTaken
public static boolean remotePortTaken(String node, int port, int timeout)
Check if a remote port is taken- Parameters:
node- the host to checkport- the port to checktimeout- the timeout for the connection- Returns:
- true if the port is taken false otherwise
-
-