ePOST API

rice.p2p.glacier.v2
Class GlacierDefaultPolicy

java.lang.Object
  extended by rice.p2p.glacier.v2.GlacierDefaultPolicy
All Implemented Interfaces:
GlacierPolicy

public class GlacierDefaultPolicy
extends java.lang.Object
implements GlacierPolicy


Field Summary
protected  ErasureCodec codec
           
protected  Environment environment
           
protected  java.lang.String instance
           
protected  Logger logger
           
 
Constructor Summary
GlacierDefaultPolicy(ErasureCodec codec, java.lang.String instance, Environment env)
           
 
Method Summary
 boolean checkSignature(Manifest manifest, VersionKey key)
           
 Manifest[] createManifests(VersionKey key, java.io.Serializable obj, Fragment[] fragments, long expiration)
           
 java.io.Serializable decodeObject(Fragment[] fragments)
           
 Fragment[] encodeObject(java.io.Serializable 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
 

Field Detail

codec

protected ErasureCodec codec

instance

protected java.lang.String instance

environment

protected Environment environment

logger

protected Logger logger
Constructor Detail

GlacierDefaultPolicy

public GlacierDefaultPolicy(ErasureCodec codec,
                            java.lang.String instance,
                            Environment env)
Method Detail

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.