Package hudson.plugins.active_directory
Class SocketInfo
- java.lang.Object
-
- hudson.plugins.active_directory.SocketInfo
-
- Direct Known Subclasses:
ActiveDirectoryStatus.ServerHealth
public class SocketInfo extends Object
Tuple of a socket endpoint. A pair of the host name and the TCP port number.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description SocketInfo(String hostAndPort)
SocketInfo(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
connect()
String
getHost()
String
getIpAddress()
Retrieve the IP address of the Server we are targetingint
getPort()
String
toString()
-
-
-
Method Detail
-
getHost
public String getHost()
-
getPort
public int getPort()
-
connect
public Socket connect() throws IOException
- Throws:
IOException
-
getIpAddress
@CheckForNull public String getIpAddress()
Retrieve the IP address of the Server we are targeting- Returns:
- the IP address of the host
-
-