voldemort.utils
Class Entropy

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

public class Entropy
extends java.lang.Object


Field Summary
static long DEFAULT_NUM_KEYS
           
 
Constructor Summary
Entropy(int nodeId)
          Entropy constructor.
Entropy(int nodeId, long numKeys, boolean verboseLogging)
          Entropy constructor
 
Method Summary
 void generateEntropy(Cluster cluster, java.util.List<StoreDefinition> storeDefs, java.io.File storeDir, boolean opType)
          Run the actual entropy calculation tool
 void generateEntropy(Cluster cluster, java.util.List<StoreDefinition> storeDefs, java.io.File storeDir, boolean opType, boolean negativeTest)
          Run the actual entropy calculation tool
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NUM_KEYS

public static long DEFAULT_NUM_KEYS
Constructor Detail

Entropy

public Entropy(int nodeId)
Entropy constructor. Uses DEFAULT_NUM_KEYS number of keys

Parameters:
nodeId - Node id. If -1, goes over all of them. For negative test nodeId must be valid.

Entropy

public Entropy(int nodeId,
               long numKeys,
               boolean verboseLogging)
Entropy constructor

Parameters:
nodeId - Node id. If -1, goes over all of them. For negative test nodeId must be valid.
numKeys - Number of keys
Method Detail

main

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

generateEntropy

public void generateEntropy(Cluster cluster,
                            java.util.List<StoreDefinition> storeDefs,
                            java.io.File storeDir,
                            boolean opType)
                     throws java.io.IOException
Run the actual entropy calculation tool

Parameters:
cluster - The cluster metadata
storeDefs - The list of stores
storeDir - The store directory
opType - Operation type - true ( run entropy calculator ), false ( save keys )
Throws:
java.io.IOException

generateEntropy

public void generateEntropy(Cluster cluster,
                            java.util.List<StoreDefinition> storeDefs,
                            java.io.File storeDir,
                            boolean opType,
                            boolean negativeTest)
                     throws java.io.IOException
Run the actual entropy calculation tool

Parameters:
cluster - The cluster metadata
storeDefs - The list of stores
storeDir - The store directory
opType - Operation type - true ( run entropy calculator ), false ( save keys )
negativeTest - Validate that the rebalanced keys are deleted from the store
Throws:
java.io.IOException


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