public class HostAndPortRange extends Object implements Serializable
| Constructor and Description |
|---|
HostAndPortRange(String host,
int port)
Constructor.
|
HostAndPortRange(String host,
int portFrom,
int portTo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
host() |
static HostAndPortRange |
parse(String addrStr,
int dfltPortFrom,
int dfltPortTo,
String errMsgPrefix)
Parse string into host and port pair.
|
int |
portFrom() |
int |
portTo() |
String |
toString() |
public HostAndPortRange(String host, int port)
host - Host.port - Port.public HostAndPortRange(String host, int portFrom, int portTo)
host - Host.portFrom - Port from.portTo - Port to.public static HostAndPortRange parse(String addrStr, int dfltPortFrom, int dfltPortTo, String errMsgPrefix) throws IgniteCheckedException
addrStr - String.dfltPortFrom - Default port from.dfltPortTo - Default port to.errMsgPrefix - Error message prefix.IgniteCheckedException - If failed.public String host()
public int portFrom()
public int portTo()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021