|
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
public class ErasureCodec
DESCRIBE THE CLASS
Field Summary | |
---|---|
protected Environment |
environment
|
protected Logger |
logger
|
protected int |
numFragments
|
protected int |
numSurvivors
|
Constructor Summary | |
---|---|
ErasureCodec(int _numFragments,
int _numSurvivors,
Environment env)
Constructor for ErasureCodec. |
Method Summary | |
---|---|
PastContent |
decode(Fragment[] frag,
Endpoint endpoint,
PastContentDeserializer pcd)
|
protected void |
decodeChunk(int[] buffer,
int nExtra,
int[] RowInd,
boolean[] haveFragment,
long[][] InvMat,
int[] ColInd)
|
protected PastContent |
deserialize(byte[] bytes,
Endpoint endpoint,
PastContentDeserializer pcd)
|
void |
dump(byte[] data)
|
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)
|
Fragment[] |
encodeObject(RawPastContent obj,
boolean[] generateFragment)
Serializes the object. |
protected void |
initElt()
|
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 PARAMETERMethod Detail |
---|
public void dump(byte[] data)
public Fragment[] encodeObject(PastContent obj, boolean[] generateFragment)
public Fragment[] encodeObject(RawPastContent obj, boolean[] generateFragment)
obj
- generateFragment
-
protected void encodeChunk(int[] buffer)
public 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)
public PastContent decode(Fragment[] frag, Endpoint endpoint, PastContentDeserializer pcd)
protected PastContent deserialize(byte[] bytes, Endpoint endpoint, PastContentDeserializer pcd) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected void initElt()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |