org.hypergraphdb.peer
Class PrivatePeerIdentity
java.lang.Object
org.hypergraphdb.peer.PrivatePeerIdentity
- Direct Known Subclasses:
- HGPeerIdentity
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 peer, use the derived HGPeerIdentity class which
is only different from this one by its type.
- Author:
- Borislav Iordanov
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PrivatePeerIdentity
public PrivatePeerIdentity()
makePublicIdentity
public HGPeerIdentity makePublicIdentity()
getId
public HGPersistentHandle getId()
setId
public void setId(HGPersistentHandle id)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getHostname
public java.lang.String getHostname()
setHostname
public void setHostname(java.lang.String hostname)
getIpAddress
public java.lang.String getIpAddress()
setIpAddress
public void setIpAddress(java.lang.String ipAddress)
getGraphLocation
public java.lang.String getGraphLocation()
setGraphLocation
public void setGraphLocation(java.lang.String graphLocation)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object