voldemort.server.rest
Class RestResponseSender

java.lang.Object
  extended by voldemort.server.rest.RestResponseSender
Direct Known Subclasses:
DeleteResponseSender, GetAllResponseSender, GetResponseSender, GetVersionResponseSender, PutResponseSender

public abstract class RestResponseSender
extends java.lang.Object


Field Summary
protected static long INVALID_START_TIME_IN_MS
           
protected  org.jboss.netty.channel.MessageEvent messageEvent
           
protected static long NS_PER_MS
           
 
Constructor Summary
RestResponseSender(org.jboss.netty.channel.MessageEvent messageEvent)
           
 
Method Summary
 void recordStats(StoreStats performanceStats, long startTimeInMs, Tracked operation)
           
 void sendResponse()
           
abstract  void sendResponse(StoreStats perfomanceStats, boolean isFromLocalZone, long startTimeInMs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageEvent

protected org.jboss.netty.channel.MessageEvent messageEvent

NS_PER_MS

protected static final long NS_PER_MS
See Also:
Constant Field Values

INVALID_START_TIME_IN_MS

protected static final long INVALID_START_TIME_IN_MS
See Also:
Constant Field Values
Constructor Detail

RestResponseSender

public RestResponseSender(org.jboss.netty.channel.MessageEvent messageEvent)
Method Detail

sendResponse

public void sendResponse()
                  throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public abstract void sendResponse(StoreStats perfomanceStats,
                                  boolean isFromLocalZone,
                                  long startTimeInMs)
                           throws java.lang.Exception
Throws:
java.lang.Exception

recordStats

public void recordStats(StoreStats performanceStats,
                        long startTimeInMs,
                        Tracked operation)


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