voldemort.rest
Class GetAllResponseSender

java.lang.Object
  extended by voldemort.rest.RestResponseSender
      extended by voldemort.rest.GetAllResponseSender

public class GetAllResponseSender
extends RestResponseSender


Field Summary
 
Fields inherited from class voldemort.rest.RestResponseSender
INVALID_START_TIME_IN_MS, messageEvent, NS_PER_MS, numVectorClockEntries
 
Constructor Summary
GetAllResponseSender(org.jboss.netty.channel.MessageEvent messageEvent, java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> versionedResponses, java.lang.String storeName)
           
 
Method Summary
 void sendResponse(StoreStats performanceStats, boolean isFromLocalZone, long startTimeInMs)
          Sends nested multipart response.
 
Methods inherited from class voldemort.rest.RestResponseSender
debugLog, getKeysHexString, recordStats, sendResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetAllResponseSender

public GetAllResponseSender(org.jboss.netty.channel.MessageEvent messageEvent,
                            java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> versionedResponses,
                            java.lang.String storeName)
Method Detail

sendResponse

public void sendResponse(StoreStats performanceStats,
                         boolean isFromLocalZone,
                         long startTimeInMs)
                  throws java.lang.Exception
Sends nested multipart response. Outer multipart wraps all the keys requested. Each key has a separate multipart for the versioned values.

Specified by:
sendResponse in class RestResponseSender
Throws:
java.lang.Exception


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