GemFire 7.0.1

com.gemstone.gemfire.cache.snapshot
Class SnapshotReader

java.lang.Object
  extended by com.gemstone.gemfire.cache.snapshot.SnapshotReader

public class SnapshotReader
extends Object

Provides utilities for reading cache data.

Since:
7.0

Method Summary
static
<K,V> SnapshotIterator<K,V>
read(File snapshot)
          Reads a snapshot file and passes the entries to the application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static <K,V> SnapshotIterator<K,V> read(File snapshot)
                                  throws IOException,
                                         ClassNotFoundException
Reads a snapshot file and passes the entries to the application.

Prior to invoking read all necessary serializers (either DataSerializer or PdxSerializer) and any Instantiator should have been registered.

Type Parameters:
K - the key type
V - the value type
Parameters:
snapshot - the snapshot file
Returns:
the snapshot iterator
Throws:
IOException - error reading the snapshot file
ClassNotFoundException - unable deserialize entry

GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.