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