public abstract class HostLocationBase<T extends HostLocationBase<T>> extends Object implements Comparable<T>, Serializable
ServerLocation, HostAddress| Modifier and Type | Field and Description |
|---|---|
protected String |
hostName |
protected int |
port |
| Modifier | Constructor and Description |
|---|---|
protected |
HostLocationBase() |
|
HostLocationBase(String hostName,
int port) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(T other) |
boolean |
equals(HostLocationBase<?> other) |
boolean |
equals(Object obj) |
protected boolean |
equalsHostName(HostLocationBase<?> other) |
String |
getHostName() |
int |
getPort() |
int |
hashCode() |
static boolean |
hostNamesEqual(String hostName1,
String hostName2)
Incoming failed URL string maybe of the form host[port] rather than
host/addr[port] (from GemFireXD).
|
String |
toString() |
protected String hostName
protected int port
protected HostLocationBase()
public HostLocationBase(String hostName, int port)
public final String getHostName()
public final int getPort()
public boolean equals(HostLocationBase<?> other)
protected final boolean equalsHostName(HostLocationBase<?> other)
public static boolean hostNamesEqual(String hostName1, String hostName2)
public int compareTo(T other)
compareTo in interface Comparable<T extends HostLocationBase<T>>Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.