public class PrivatePeerIdentity
extends java.lang.Object
This is a simple data structure that represents a HyperGraphDB peer identity. The
class is intended for use only by the HGDB API which will attempt to ensure uniqueness.
To store info about other peers, use the derived HGPeerIdentity
class which
is only different from this one by its type.
Constructor and Description |
---|
PrivatePeerIdentity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object x) |
java.lang.String |
getGraphLocation() |
java.lang.String |
getHostname() |
HGPersistentHandle |
getId() |
java.lang.String |
getIpAddress() |
int |
hashCode() |
HGPeerIdentity |
makePublicIdentity() |
void |
setGraphLocation(java.lang.String graphLocation) |
void |
setHostname(java.lang.String hostname) |
void |
setId(HGPersistentHandle id) |
void |
setIpAddress(java.lang.String ipAddress) |
java.lang.String |
toString() |
public HGPeerIdentity makePublicIdentity()
public HGPersistentHandle getId()
public void setId(HGPersistentHandle id)
public java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
public java.lang.String getGraphLocation()
public void setGraphLocation(java.lang.String graphLocation)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object