voldemort.utils
Class MetadataVersionStoreUtils

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

public class MetadataVersionStoreUtils
extends java.lang.Object

A Utils class that facilitates conversion between the string containing metadata versions and the corresponding Properties object.

Author:
csoman

Field Summary
static java.lang.String VERSIONS_METADATA_KEY
           
 
Constructor Summary
MetadataVersionStoreUtils()
           
 
Method Summary
static java.util.Properties getProperties(SystemStoreClient<java.lang.String,java.lang.String> versionStore)
          Retrieves a properties (hashmap) consisting of all the metadata versions
static void setProperties(SystemStoreClient<java.lang.String,java.lang.String> versionStore, java.util.Properties props)
          Writes the Properties object to the Version metadata system store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSIONS_METADATA_KEY

public static final java.lang.String VERSIONS_METADATA_KEY
See Also:
Constant Field Values
Constructor Detail

MetadataVersionStoreUtils

public MetadataVersionStoreUtils()
Method Detail

getProperties

public static java.util.Properties getProperties(SystemStoreClient<java.lang.String,java.lang.String> versionStore)
Retrieves a properties (hashmap) consisting of all the metadata versions

Parameters:
versionStore - The system store client used to retrieve the metadata versions
Returns:
Properties object containing all the 'property_name=property_value' values

setProperties

public static void setProperties(SystemStoreClient<java.lang.String,java.lang.String> versionStore,
                                 java.util.Properties props)
Writes the Properties object to the Version metadata system store

Parameters:
versionStore - The system store client used to retrieve the metadata versions
props - The Properties object to write to the System store


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