Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

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, 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`

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 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.