net.handle.hdllib
Class ServerInfo

java.lang.Object
  extended by net.handle.hdllib.ServerInfo

public class ServerInfo
extends java.lang.Object


Field Summary
 Interface[] interfaces
           
 byte[] ipAddress
           
 byte[] publicKey
           
 int serverId
           
 
Constructor Summary
ServerInfo()
           
 
Method Summary
 ServerInfo cloneServerInfo()
           
 boolean equals(java.lang.Object obj)
          Returns true if the given object is a ServerInfo object and refers to the same server as this object.
 java.lang.String getAddressString()
           
 java.net.InetAddress getInetAddress()
           
 java.security.PublicKey getPublicKey()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serverId

public int serverId

ipAddress

public byte[] ipAddress

publicKey

public byte[] publicKey

interfaces

public Interface[] interfaces
Constructor Detail

ServerInfo

public ServerInfo()
Method Detail

interfaceWithProtocol

public 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.


getInetAddress

public java.net.InetAddress getInetAddress()
                                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getAddressString

public java.lang.String getAddressString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

cloneServerInfo

public ServerInfo cloneServerInfo()

getPublicKey

public java.security.PublicKey getPublicKey()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

equals

public boolean equals(java.lang.Object obj)
Returns true if the given object is a ServerInfo object and refers to the same server as this object.

Overrides:
equals in class java.lang.Object