voldemort.coordinator
Class RESTErrorHandler

java.lang.Object
  extended by voldemort.coordinator.RESTErrorHandler

public class RESTErrorHandler
extends java.lang.Object

A Generic class used to propagate the error back to the client over the Netty channel


Constructor Summary
RESTErrorHandler()
           
 
Method Summary
static void handleError(org.jboss.netty.handler.codec.http.HttpResponseStatus status, org.jboss.netty.channel.MessageEvent e, java.lang.String message)
           
static void setErrorStatsHandler(CoordinatorErrorStats errorStatsObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTErrorHandler

public RESTErrorHandler()
Method Detail

setErrorStatsHandler

public static void setErrorStatsHandler(CoordinatorErrorStats errorStatsObj)

handleError

public static void handleError(org.jboss.netty.handler.codec.http.HttpResponseStatus status,
                               org.jboss.netty.channel.MessageEvent e,
                               java.lang.String message)


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