|
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.Manifest
DESCRIBE THE CLASS
Field Summary | |
protected long |
expirationDate
DESCRIBE THE FIELD |
protected byte[][] |
fragmentHash
DESCRIBE THE FIELD |
protected byte[] |
objectHash
DESCRIBE THE FIELD |
protected byte[] |
signature
DESCRIBE THE FIELD |
Constructor Summary | |
Manifest(byte[] objectHash,
byte[][] fragmentHash,
long expirationDate)
Constructor for Manifest. |
|
Manifest(InputBuffer buf)
Constructor for Manifest. |
Method Summary | |
long |
getExpiration()
Gets the Expiration attribute of the Manifest object |
byte[] |
getFragmentHash(int fragmentID)
Gets the FragmentHash attribute of the Manifest object |
byte[][] |
getFragmentHashes()
Gets the FragmentHashes attribute of the Manifest object |
byte[] |
getObjectHash()
Gets the ObjectHash attribute of the Manifest object |
byte[] |
getSignature()
Gets the Signature attribute of the Manifest object |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
void |
setSignature(byte[] signature)
Sets the Signature attribute of the Manifest object |
java.lang.String |
toString()
DESCRIBE THE METHOD |
java.lang.String |
toStringFull()
DESCRIBE THE METHOD |
void |
update(long newExpirationDate,
byte[] newSignature)
DESCRIBE THE METHOD |
boolean |
validatesFragment(Fragment fragment,
int fragmentID,
Logger logger)
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient byte[] objectHash
protected transient byte[][] fragmentHash
protected transient byte[] signature
protected long expirationDate
Constructor Detail |
public Manifest(byte[] objectHash, byte[][] fragmentHash, long expirationDate)
objectHash
- DESCRIBE THE PARAMETERfragmentHash
- DESCRIBE THE PARAMETERexpirationDate
- DESCRIBE THE PARAMETERpublic Manifest(InputBuffer buf) throws java.io.IOException
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
public byte[] getObjectHash()
public byte[] getFragmentHash(int fragmentID)
fragmentID
- DESCRIBE THE PARAMETER
public byte[][] getFragmentHashes()
public byte[] getSignature()
public long getExpiration()
public void setSignature(byte[] signature)
signature
- The new Signature valuepublic void update(long newExpirationDate, byte[] newSignature)
newExpirationDate
- DESCRIBE THE PARAMETERnewSignature
- DESCRIBE THE PARAMETERpublic boolean validatesFragment(Fragment fragment, int fragmentID, Logger logger)
fragment
- DESCRIBE THE PARAMETERfragmentID
- DESCRIBE THE PARAMETERlogger
- DESCRIBE THE PARAMETER
public java.lang.String toString()
public java.lang.String toStringFull()
public void serialize(OutputBuffer buf) throws java.io.IOException
buf
- 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 |