voldemort.server.rest
Class GetResponseSender

java.lang.Object
  extended by voldemort.server.rest.RestResponseSender
      extended by voldemort.server.rest.GetResponseSender

public class GetResponseSender
extends RestResponseSender


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

Constructor Detail

GetResponseSender

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

sendResponse

public void sendResponse(StoreStats performanceStats,
                         boolean isFromLocalZone,
                         long startTimeInMs)
                  throws java.lang.Exception
Sends a multipart response. Each body part represents a versioned value of the given key.

Specified by:
sendResponse in class RestResponseSender
Throws:
java.io.IOException
javax.mail.MessagingException
java.lang.Exception


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