voldemort.utils
Class KeyVersionFetcherCLI

java.lang.Object
  extended by voldemort.utils.KeyVersionFetcherCLI

public class KeyVersionFetcherCLI
extends java.lang.Object

The KeyVersionFetcherCLI is a rudimentary tool that outputs a sampling of existing keys from a cluster. For each store in the cluster, a distinct file of keys to sample is expected. And, for each of these, a distinct file of key-versions is generated.


Nested Class Summary
 class KeyVersionFetcherCLI.FetchKeyVersionsTask
           
 class KeyVersionFetcherCLI.ZoneToNaryToString
           
 
Constructor Summary
KeyVersionFetcherCLI(java.lang.String url, java.lang.String inDir, java.lang.String outDir, java.util.List<java.lang.String> storeNames, int keyParallelism, int progressPeriodOps, int outputBatchSize, boolean details)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean sampleStore(StoreDefinition storeDefinition)
           
 boolean sampleStores()
           
 void stop()
           
 void updateFetchProgress(java.lang.String storeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyVersionFetcherCLI

public KeyVersionFetcherCLI(java.lang.String url,
                            java.lang.String inDir,
                            java.lang.String outDir,
                            java.util.List<java.lang.String> storeNames,
                            int keyParallelism,
                            int progressPeriodOps,
                            int outputBatchSize,
                            boolean details)
Method Detail

sampleStores

public boolean sampleStores()

updateFetchProgress

public void updateFetchProgress(java.lang.String storeName)

sampleStore

public boolean sampleStore(StoreDefinition storeDefinition)

stop

public void stop()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu