|
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.GlacierDefaultPolicy
DESCRIBE THE CLASS
Field Summary | |
protected ErasureCodec |
codec
DESCRIBE THE FIELD |
protected Environment |
environment
DESCRIBE THE FIELD |
protected java.lang.String |
instance
DESCRIBE THE FIELD |
protected Logger |
logger
DESCRIBE THE FIELD |
Constructor Summary | |
GlacierDefaultPolicy(ErasureCodec codec,
java.lang.String instance,
Environment env)
Constructor for GlacierDefaultPolicy. |
Method Summary | |
boolean |
checkSignature(Manifest manifest,
VersionKey key)
DESCRIBE THE METHOD |
Manifest[] |
createManifests(VersionKey key,
PastContent obj,
Fragment[] fragments,
long expiration)
DESCRIBE THE METHOD |
Manifest[] |
createManifests(VersionKey key,
RawPastContent obj,
Fragment[] fragments,
long expiration)
DESCRIBE THE METHOD |
PastContent |
decodeObject(Fragment[] fragments,
Endpoint endpoint,
PastContentDeserializer pcd)
DESCRIBE THE METHOD |
Fragment[] |
encodeObject(PastContent obj,
boolean[] generateFragment)
DESCRIBE THE METHOD |
Fragment[] |
encodeObject(RawPastContent obj,
boolean[] generateFragment)
DESCRIBE THE METHOD |
void |
prefetchLocalObject(VersionKey key,
Continuation command)
DESCRIBE THE METHOD |
protected void |
signManifest(Manifest manifest,
VersionKey key)
DESCRIBE THE METHOD |
Manifest |
updateManifest(VersionKey key,
Manifest manifest,
long newExpiration)
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ErasureCodec codec
protected java.lang.String instance
protected Environment environment
protected Logger logger
Constructor Detail |
public GlacierDefaultPolicy(ErasureCodec codec, java.lang.String instance, Environment env)
codec
- DESCRIBE THE PARAMETERinstance
- DESCRIBE THE PARAMETERenv
- DESCRIBE THE PARAMETERMethod Detail |
public boolean checkSignature(Manifest manifest, VersionKey key)
checkSignature
in interface GlacierPolicy
manifest
- DESCRIBE THE PARAMETERkey
- DESCRIBE THE PARAMETER
protected void signManifest(Manifest manifest, VersionKey key)
manifest
- DESCRIBE THE PARAMETERkey
- DESCRIBE THE PARAMETERpublic void prefetchLocalObject(VersionKey key, Continuation command)
prefetchLocalObject
in interface GlacierPolicy
key
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic PastContent decodeObject(Fragment[] fragments, Endpoint endpoint, PastContentDeserializer pcd)
decodeObject
in interface GlacierPolicy
fragments
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETERpcd
- DESCRIBE THE PARAMETER
public Manifest[] createManifests(VersionKey key, RawPastContent obj, Fragment[] fragments, long expiration)
key
- DESCRIBE THE PARAMETERobj
- DESCRIBE THE PARAMETERfragments
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETER
public Manifest[] createManifests(VersionKey key, PastContent obj, Fragment[] fragments, long expiration)
createManifests
in interface GlacierPolicy
key
- DESCRIBE THE PARAMETERobj
- DESCRIBE THE PARAMETERfragments
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETER
public Fragment[] encodeObject(RawPastContent obj, boolean[] generateFragment)
obj
- DESCRIBE THE PARAMETERgenerateFragment
- DESCRIBE THE PARAMETER
public Fragment[] encodeObject(PastContent obj, boolean[] generateFragment)
encodeObject
in interface GlacierPolicy
obj
- DESCRIBE THE PARAMETERgenerateFragment
- DESCRIBE THE PARAMETER
public Manifest updateManifest(VersionKey key, Manifest manifest, long newExpiration)
updateManifest
in interface GlacierPolicy
key
- DESCRIBE THE PARAMETERmanifest
- DESCRIBE THE PARAMETERnewExpiration
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |