|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.glacier.FragmentKey
public class FragmentKey
DESCRIBE THE CLASS
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface rice.p2p.commonapi.Id |
|---|
Id.Distance |
| Field Summary | |
|---|---|
protected int |
id
DESCRIBE THE FIELD |
protected VersionKey |
key
DESCRIBE THE FIELD |
static short |
TYPE
|
| Constructor Summary | |
|---|---|
FragmentKey(InputBuffer buf,
Endpoint endpoint)
|
|
FragmentKey(VersionKey key,
int id)
Constructor for FragmentKey. |
|
| Method Summary | |
|---|---|
Id |
addToId(Id.Distance offset)
Adds a feature to the ToId attribute of the FragmentKey object |
boolean |
clockwise(Id nid)
DESCRIBE THE METHOD |
int |
compareTo(java.lang.Object o)
DESCRIBE THE METHOD |
Id.Distance |
distanceFromId(Id nid)
DESCRIBE THE METHOD |
boolean |
equals(java.lang.Object peer)
DESCRIBE THE METHOD |
int |
getByteArrayLength()
Returns the length of the byte[] representing this Id |
int |
getFragmentID()
Gets the FragmentID attribute of the FragmentKey object |
FragmentKey |
getPeerKey(int otherId)
Gets the PeerKey attribute of the FragmentKey object |
short |
getType()
|
VersionKey |
getVersionKey()
Gets the VersionKey attribute of the FragmentKey object |
int |
hashCode()
DESCRIBE THE METHOD |
boolean |
isBetween(Id ccw,
Id cw)
Gets the Between attribute of the FragmentKey object |
Id.Distance |
longDistanceFromId(Id nid)
DESCRIBE THE METHOD |
void |
serialize(OutputBuffer buf)
Serialize |
byte[] |
toByteArray()
DESCRIBE THE METHOD |
void |
toByteArray(byte[] result,
int offset)
Stores the byte[] value of this Id in the provided byte array |
java.lang.String |
toString()
DESCRIBE THE METHOD |
java.lang.String |
toStringFull()
DESCRIBE THE METHOD |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short TYPE
protected VersionKey key
protected int id
| Constructor Detail |
|---|
public FragmentKey(VersionKey key,
int id)
key - DESCRIBE THE PARAMETERid - DESCRIBE THE PARAMETER
public FragmentKey(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public boolean isBetween(Id ccw,
Id cw)
isBetween in interface Idccw - DESCRIBE THE PARAMETERcw - DESCRIBE THE PARAMETER
public VersionKey getVersionKey()
public int getFragmentID()
public FragmentKey getPeerKey(int otherId)
otherId - DESCRIBE THE PARAMETER
public boolean equals(java.lang.Object peer)
equals in class java.lang.Objectpeer - DESCRIBE THE PARAMETER
public byte[] toByteArray()
toByteArray in interface Id
public void toByteArray(byte[] result,
int offset)
toByteArray in interface Idpublic int getByteArrayLength()
getByteArrayLength in interface Idpublic java.lang.String toStringFull()
toStringFull in interface Idpublic java.lang.String toString()
toString in class java.lang.Objectpublic Id.Distance longDistanceFromId(Id nid)
longDistanceFromId in interface Idnid - DESCRIBE THE PARAMETER
public Id.Distance distanceFromId(Id nid)
distanceFromId in interface Idnid - DESCRIBE THE PARAMETER
public Id addToId(Id.Distance offset)
addToId in interface Idoffset - The feature to be added to the ToId attribute
public boolean clockwise(Id nid)
clockwise in interface Idnid - DESCRIBE THE PARAMETER
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - DESCRIBE THE PARAMETER
public int hashCode()
hashCode in class java.lang.Object
public void serialize(OutputBuffer buf)
throws java.io.IOException
Id
serialize in interface Idjava.io.IOExceptionpublic short getType()
getType in interface Id
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||