Package net.handle.hdllib
Class ServerInfo
- java.lang.Object
-
- net.handle.hdllib.ServerInfo
-
public class ServerInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Interface[]interfacesbyte[]ipAddressbyte[]publicKeyintserverId
-
Constructor Summary
Constructors Constructor Description ServerInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerInfocloneServerInfo()booleanequals(java.lang.Object obj)java.lang.StringgetAddressString()java.net.InetAddressgetInetAddress()java.security.PublicKeygetPublicKey()booleanhasAllZerosAddress()inthashCode()InterfaceinterfaceWithProtocol(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.booleanisIPv4()java.lang.StringtoString()
-
-
-
Field Detail
-
serverId
public int serverId
-
ipAddress
public byte[] ipAddress
-
publicKey
public byte[] publicKey
-
interfaces
public Interface[] interfaces
-
-
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.
-
isIPv4
public boolean isIPv4()
-
getInetAddress
public java.net.InetAddress getInetAddress()
-
getAddressString
public java.lang.String getAddressString()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
cloneServerInfo
public ServerInfo cloneServerInfo()
-
getPublicKey
public java.security.PublicKey getPublicKey() throws java.lang.Exception- Throws:
java.lang.Exception
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hasAllZerosAddress
public boolean hasAllZerosAddress()
-
-