public class ServerInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Interface[] |
interfaces |
byte[] |
ipAddress |
byte[] |
publicKey |
int |
serverId |
| Constructor and Description |
|---|
ServerInfo() |
| Modifier and Type | Method and Description |
|---|---|
ServerInfo |
cloneServerInfo() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddressString() |
java.net.InetAddress |
getInetAddress() |
java.security.PublicKey |
getPublicKey() |
int |
hashCode() |
Interface |
interfaceWithProtocol(int desiredProtocol,
AbstractRequest req)
Return the server's Interface for the given protocol which can handle the
given request; assume server has only 1 such interface.
|
boolean |
isIPv4() |
java.lang.String |
toString() |
public int serverId
public byte[] ipAddress
public byte[] publicKey
public Interface[] interfaces
public Interface interfaceWithProtocol(int desiredProtocol, AbstractRequest req)
public boolean isIPv4()
public java.net.InetAddress getInetAddress()
public java.lang.String getAddressString()
public java.lang.String toString()
toString in class java.lang.Objectpublic ServerInfo cloneServerInfo()
public java.security.PublicKey getPublicKey()
throws java.lang.Exception
java.lang.Exceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object