|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.glacier.VersionKey
DESCRIBE THE CLASS
Nested Class Summary |
Nested classes inherited from class rice.p2p.commonapi.Id |
Id.Distance |
Field Summary | |
protected Id |
id
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
protected long |
version
DESCRIBE THE FIELD |
Constructor Summary | |
VersionKey(Id id,
long version)
Constructor for VersionKey. |
|
VersionKey(InputBuffer buf,
Endpoint endpoint)
Constructor for VersionKey. |
Method Summary | |
Id |
addToId(Id.Distance offset)
Adds a feature to the ToId attribute of the VersionKey object |
static VersionKey |
build(java.lang.String s)
DESCRIBE THE METHOD |
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 |
Id |
getId()
Gets the Id attribute of the VersionKey object |
short |
getType()
Gets the Type attribute of the VersionKey object |
long |
getVersion()
Gets the Version attribute of the VersionKey object |
int |
hashCode()
DESCRIBE THE METHOD |
boolean |
isBetween(Id ccw,
Id cw)
Gets the Between attribute of the VersionKey object |
Id.Distance |
longDistanceFromId(Id nid)
DESCRIBE THE METHOD |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
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 |
protected Id id
protected long version
public static final short TYPE
Constructor Detail |
public VersionKey(Id id, long version)
id
- DESCRIBE THE PARAMETERversion
- DESCRIBE THE PARAMETERpublic VersionKey(InputBuffer buf, Endpoint endpoint) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
public long getVersion()
public Id getId()
public int getByteArrayLength()
getByteArrayLength
in interface Id
public boolean isBetween(Id ccw, Id cw)
isBetween
in interface Id
ccw
- DESCRIBE THE PARAMETERcw
- DESCRIBE THE PARAMETER
public short getType()
getType
in interface Id
public boolean equals(java.lang.Object peer)
peer
- DESCRIBE THE PARAMETER
public java.lang.String toString()
public java.lang.String toStringFull()
toStringFull
in interface Id
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- DESCRIBE THE PARAMETER
public int hashCode()
public byte[] toByteArray()
toByteArray
in interface Id
public void toByteArray(byte[] result, int offset)
toByteArray
in interface Id
result
- DESCRIBE THE PARAMETERoffset
- DESCRIBE THE PARAMETERpublic Id.Distance longDistanceFromId(Id nid)
longDistanceFromId
in interface Id
nid
- DESCRIBE THE PARAMETER
public Id.Distance distanceFromId(Id nid)
distanceFromId
in interface Id
nid
- DESCRIBE THE PARAMETER
public Id addToId(Id.Distance offset)
addToId
in interface Id
offset
- The feature to be added to the ToId attribute
public boolean clockwise(Id nid)
clockwise
in interface Id
nid
- DESCRIBE THE PARAMETER
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface Id
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic static VersionKey build(java.lang.String s)
s
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |