|
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.v2.messaging.GlacierMessage rice.p2p.glacier.v2.messaging.GlacierResponseMessage
DESCRIBE THE CLASS
Field Summary | |
protected boolean[] |
authoritative
DESCRIBE THE FIELD |
protected boolean[] |
haveIt
DESCRIBE THE FIELD |
protected FragmentKey[] |
keys
DESCRIBE THE FIELD |
protected long[] |
lifetimes
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.glacier.v2.messaging.GlacierMessage |
dest, id, isResponse, source, tag |
Fields inherited from interface rice.p2p.commonapi.Message |
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
GlacierResponseMessage(int uid,
FragmentKey[] keys,
boolean[] haveIt,
long[] lifetimes,
boolean[] authoritative,
NodeHandle source,
Id dest,
boolean isResponse,
char tag)
Constructor for GlacierResponseMessage. |
|
GlacierResponseMessage(int uid,
FragmentKey key,
boolean haveIt,
long lifetime,
boolean authoritative,
NodeHandle source,
Id dest,
boolean isResponse,
char tag)
Constructor for GlacierResponseMessage. |
Method Summary | |
static GlacierResponseMessage |
build(InputBuffer buf,
Endpoint endpoint)
DESCRIBE THE METHOD |
boolean |
getAuthoritative(int index)
Gets the Authoritative attribute of the GlacierResponseMessage object |
long |
getExpiration(int index)
Gets the Expiration attribute of the GlacierResponseMessage object |
boolean |
getHaveIt(int index)
Gets the HaveIt attribute of the GlacierResponseMessage object |
FragmentKey |
getKey(int index)
Gets the Key attribute of the GlacierResponseMessage object |
short |
getType()
Raw Serialization ************************************** |
int |
numKeys()
DESCRIBE THE METHOD |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
DESCRIBE THE METHOD |
Methods inherited from class rice.p2p.glacier.v2.messaging.GlacierMessage |
getDestination, getPriority, getSource, getTag, getUID, isResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected FragmentKey[] keys
protected long[] lifetimes
protected boolean[] haveIt
protected boolean[] authoritative
public static final short TYPE
Constructor Detail |
public GlacierResponseMessage(int uid, FragmentKey key, boolean haveIt, long lifetime, boolean authoritative, NodeHandle source, Id dest, boolean isResponse, char tag)
uid
- DESCRIBE THE PARAMETERkey
- DESCRIBE THE PARAMETERhaveIt
- DESCRIBE THE PARAMETERlifetime
- DESCRIBE THE PARAMETERauthoritative
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETERisResponse
- DESCRIBE THE PARAMETERtag
- DESCRIBE THE PARAMETERpublic GlacierResponseMessage(int uid, FragmentKey[] keys, boolean[] haveIt, long[] lifetimes, boolean[] authoritative, NodeHandle source, Id dest, boolean isResponse, char tag)
uid
- DESCRIBE THE PARAMETERkeys
- DESCRIBE THE PARAMETERhaveIt
- DESCRIBE THE PARAMETERlifetimes
- DESCRIBE THE PARAMETERauthoritative
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETERisResponse
- DESCRIBE THE PARAMETERtag
- DESCRIBE THE PARAMETERMethod Detail |
public FragmentKey getKey(int index)
index
- DESCRIBE THE PARAMETER
public boolean getHaveIt(int index)
index
- DESCRIBE THE PARAMETER
public boolean getAuthoritative(int index)
index
- DESCRIBE THE PARAMETER
public long getExpiration(int index)
index
- DESCRIBE THE PARAMETER
public short getType()
public int numKeys()
public java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class GlacierMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic static GlacierResponseMessage build(InputBuffer buf, Endpoint endpoint) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |