voldemort.rest
Class VectorClockWrapper

java.lang.Object
  extended by voldemort.rest.VectorClockWrapper

public class VectorClockWrapper
extends java.lang.Object

A wrapper for Vector clock used for serialization purposes. This Wrapper is then converted to a JSON string which in turn gets embedded in a HTTP header field.


Constructor Summary
VectorClockWrapper()
           
VectorClockWrapper(VectorClock vc)
           
 
Method Summary
 long getTimestamp()
           
 java.util.List<ClockEntry> getVersions()
           
 void setTimestamp(long timestamp)
           
 void setVersions(java.util.List<ClockEntry> vectorClock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorClockWrapper

public VectorClockWrapper()

VectorClockWrapper

public VectorClockWrapper(VectorClock vc)
Method Detail

getVersions

public java.util.List<ClockEntry> getVersions()

setVersions

public void setVersions(java.util.List<ClockEntry> vectorClock)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)


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