|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dd.ptr.api.PublishInfo
PublishInfo.java The class that encapsulates metadata about a particular replica of an object. The primary info of note is the GUID of its current location, but PublishInfo also keeps track of the distance to this replica, the lasthop taken to get here, and the level of the next hop on the publication path.
Field Summary | |
---|---|
long |
distance
The distance in ms to this replica's location |
NodeId |
lasthop
The NodeId of the last hop traversed on the publication path. |
SecureHash |
src
The GUID of this replica's location |
DDTag |
tag
|
Constructor Summary | |
---|---|
PublishInfo(InputBuffer buffer)
|
|
PublishInfo(SecureHash src,
DDTag tag,
NodeId lasthop)
The routing level that we exit this node at, on the publication path. |
|
PublishInfo(SecureHash src,
long distance,
DDTag tag,
NodeId lasthop)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object other)
Don't look at distance. |
int |
hashCode()
Don't look at distance. |
void |
serialize(OutputBuffer buffer)
|
String |
toString()
Returns a human-readable representation of this PublishInfo . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public SecureHash src
public long distance
public DDTag tag
public NodeId lasthop
Constructor Detail |
public PublishInfo(SecureHash src, DDTag tag, NodeId lasthop)
public PublishInfo(SecureHash src, long distance, DDTag tag, NodeId lasthop)
public PublishInfo(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
serialize
in interface QuickSerializable
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
PublishInfo
.
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |