org.hypergraphdb.peer
Class PrivatePeerIdentity

java.lang.Object
  extended by 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

Constructor Summary
PrivatePeerIdentity()
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 java.lang.String getGraphLocation()
           
 java.lang.String getHostname()
           
 HGPersistentHandle getId()
           
 java.lang.String getIpAddress()
           
 java.lang.String getName()
           
 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)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrivatePeerIdentity

public PrivatePeerIdentity()
Method Detail

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