com.aerospike.client
Class Host
java.lang.Object
com.aerospike.client.Host
public final class Host
- extends java.lang.Object
Host name/port of database server.
Field Summary |
java.lang.String |
name
Host name or IP address of database server. |
int |
port
Port of database server. |
Constructor Summary |
Host(java.lang.String name,
int port)
Initialize host. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
name
public final java.lang.String name
- Host name or IP address of database server.
port
public final int port
- Port of database server.
Host
public Host(java.lang.String name,
int port)
- Initialize host.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object