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
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 java.io.Serializable decodeObject(Fragment[] fragments)
-
- Specified by:
-
decodeObject
in interface GlacierPolicy
-
createManifests
public Manifest[] createManifests(VersionKey key,
java.io.Serializable obj,
Fragment[] fragments,
long expiration)
-
- Specified by:
-
createManifests
in interface GlacierPolicy
-
encodeObject
public Fragment[] encodeObject(java.io.Serializable 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.