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[]
interfaces
byte[]
ipAddress
byte[]
publicKey
int
serverId
-
Constructor Summary
Constructors Constructor Description ServerInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerInfo
cloneServerInfo()
boolean
equals(java.lang.Object obj)
java.lang.String
getAddressString()
java.net.InetAddress
getInetAddress()
java.security.PublicKey
getPublicKey()
boolean
hasAllZerosAddress()
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()
-
-
-
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:
toString
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hasAllZerosAddress
public boolean hasAllZerosAddress()
-
-