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.
|
java.lang.String |
toString() |
public int serverId
public byte[] ipAddress
public byte[] publicKey
public Interface[] interfaces
public Interface interfaceWithProtocol(int desiredProtocol, AbstractRequest req)
public java.net.InetAddress getInetAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
public java.lang.String getAddressString()
public java.lang.String toString()
toString
in class java.lang.Object
public ServerInfo cloneServerInfo()
public java.security.PublicKey getPublicKey() throws java.lang.Exception
java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object