Package io.deephaven.util
Class HostPort
java.lang.Object
io.deephaven.util.HostPort
- All Implemented Interfaces:
Comparable<HostPort>
Represents a single endpoint.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
host
-
port
public final int port
-
-
Constructor Details
-
HostPort
Constructor for a single endpoint- Parameters:
host- the hostport- the port- Throws:
IllegalArgumentException- if the host is null
-
HostPort
Constructor for a single endpoint- Parameters:
hostPort- a string of the form "host:port" where host is expected to be a valid hostname or a valid ip address, and port is expected to be a valid numeric port.- Throws:
IllegalArgumentException- if the provided string cannot be parsed as expected.
-
-
Method Details