public class HostAndPortRange extends Object
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 Fabric : ver. 2.0.0 Release Date : April 30 2017