|
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.ErasureCodec
DESCRIBE THE CLASS
Field Summary | |
protected Environment |
environment
DESCRIBE THE FIELD |
protected Logger |
logger
DESCRIBE THE FIELD |
protected int |
numFragments
DESCRIBE THE FIELD |
protected int |
numSurvivors
DESCRIBE THE FIELD |
Constructor Summary | |
ErasureCodec(int _numFragments,
int _numSurvivors,
Environment env)
Constructor for ErasureCodec. |
Method Summary | |
PastContent |
decode(Fragment[] frag,
Endpoint endpoint,
PastContentDeserializer pcd)
DESCRIBE THE METHOD |
protected void |
decodeChunk(int[] buffer,
int nExtra,
int[] RowInd,
boolean[] haveFragment,
long[][] InvMat,
int[] ColInd)
DESCRIBE THE METHOD |
protected PastContent |
deserialize(byte[] bytes,
Endpoint endpoint,
PastContentDeserializer pcd)
DESCRIBE THE METHOD |
void |
dump(byte[] data)
DESCRIBE THE METHOD |
Fragment[] |
encode(byte[] bytes,
int length,
boolean[] generateFragment)
Generates multiple fragments from the incoming bytes |
protected void |
encodeChunk(int[] buffer)
Input: buffer of size |
Fragment[] |
encodeObject(PastContent obj,
boolean[] generateFragment)
DESCRIBE THE METHOD |
Fragment[] |
encodeObject(RawPastContent obj,
boolean[] generateFragment)
Serializes the object. |
protected void |
initElt()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int numFragments
protected int numSurvivors
protected Environment environment
protected Logger logger
Constructor Detail |
public ErasureCodec(int _numFragments, int _numSurvivors, Environment env)
_numFragments
- DESCRIBE THE PARAMETER_numSurvivors
- DESCRIBE THE PARAMETERenv
- DESCRIBE THE PARAMETERMethod Detail |
public void dump(byte[] data)
data
- DESCRIBE THE PARAMETERpublic Fragment[] encodeObject(PastContent obj, boolean[] generateFragment)
obj
- DESCRIBE THE PARAMETERgenerateFragment
- DESCRIBE THE PARAMETER
public Fragment[] encodeObject(RawPastContent obj, boolean[] generateFragment)
obj
- generateFragment
-
protected void encodeChunk(int[] buffer)
buffer
- DESCRIBE THE PARAMETERpublic Fragment[] encode(byte[] bytes, int length, boolean[] generateFragment)
bytes
- length
- generateFragment
-
protected void decodeChunk(int[] buffer, int nExtra, int[] RowInd, boolean[] haveFragment, long[][] InvMat, int[] ColInd)
buffer
- DESCRIBE THE PARAMETERnExtra
- DESCRIBE THE PARAMETERRowInd
- DESCRIBE THE PARAMETERhaveFragment
- DESCRIBE THE PARAMETERInvMat
- DESCRIBE THE PARAMETERColInd
- DESCRIBE THE PARAMETERpublic PastContent decode(Fragment[] frag, Endpoint endpoint, PastContentDeserializer pcd)
frag
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETERpcd
- DESCRIBE THE PARAMETER
protected PastContent deserialize(byte[] bytes, Endpoint endpoint, PastContentDeserializer pcd) throws java.io.IOException, java.lang.ClassNotFoundException
bytes
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETERpcd
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
java.lang.ClassNotFoundException
- DESCRIBE THE EXCEPTIONprotected void initElt()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |