rice.p2p.glacier.v2
Class GlacierDefaultPolicy
java.lang.Object
rice.p2p.glacier.v2.GlacierDefaultPolicy
- All Implemented Interfaces:
- GlacierPolicy
public class GlacierDefaultPolicy
- extends java.lang.Object
- implements GlacierPolicy
Method Summary |
boolean |
checkSignature(Manifest manifest,
VersionKey key)
|
Manifest[] |
createManifests(VersionKey key,
PastContent obj,
Fragment[] fragments,
long expiration)
|
Manifest[] |
createManifests(VersionKey key,
RawPastContent obj,
Fragment[] fragments,
long expiration)
|
PastContent |
decodeObject(Fragment[] fragments,
Endpoint endpoint,
PastContentDeserializer pcd)
|
Fragment[] |
encodeObject(PastContent obj,
boolean[] generateFragment)
|
Fragment[] |
encodeObject(RawPastContent obj,
boolean[] generateFragment)
|
void |
prefetchLocalObject(VersionKey key,
Continuation command)
|
protected void |
signManifest(Manifest manifest,
VersionKey key)
|
Manifest |
updateManifest(VersionKey key,
Manifest manifest,
long newExpiration)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
codec
protected ErasureCodec codec
instance
protected java.lang.String instance
environment
protected Environment environment
logger
protected Logger logger
GlacierDefaultPolicy
public GlacierDefaultPolicy(ErasureCodec codec,
java.lang.String instance,
Environment env)
checkSignature
public boolean checkSignature(Manifest manifest,
VersionKey key)
- Specified by:
checkSignature
in interface GlacierPolicy
signManifest
protected void signManifest(Manifest manifest,
VersionKey key)
prefetchLocalObject
public void prefetchLocalObject(VersionKey key,
Continuation command)
- Specified by:
prefetchLocalObject
in interface GlacierPolicy
decodeObject
public PastContent decodeObject(Fragment[] fragments,
Endpoint endpoint,
PastContentDeserializer pcd)
- Specified by:
decodeObject
in interface GlacierPolicy
createManifests
public Manifest[] createManifests(VersionKey key,
RawPastContent obj,
Fragment[] fragments,
long expiration)
createManifests
public Manifest[] createManifests(VersionKey key,
PastContent obj,
Fragment[] fragments,
long expiration)
- Specified by:
createManifests
in interface GlacierPolicy
encodeObject
public Fragment[] encodeObject(RawPastContent obj,
boolean[] generateFragment)
encodeObject
public Fragment[] encodeObject(PastContent obj,
boolean[] generateFragment)
- Specified by:
encodeObject
in interface GlacierPolicy
updateManifest
public Manifest updateManifest(VersionKey key,
Manifest manifest,
long newExpiration)
- Specified by:
updateManifest
in interface GlacierPolicy
Copyright © 2001-2005 - Rice Pastry.