org.apache.cassandra.thrift
Class ThriftConversion

java.lang.Object
  extended by org.apache.cassandra.thrift.ThriftConversion

public class ThriftConversion
extends java.lang.Object

Static utility methods to convert internal structure to and from thrift ones.


Constructor Summary
ThriftConversion()
           
 
Method Summary
static ConsistencyLevel fromThrift(ConsistencyLevel cl)
           
static void rethrow(RequestExecutionException e)
           
static AuthenticationException toThrift(AuthenticationException e)
           
static ConsistencyLevel toThrift(ConsistencyLevel cl)
           
static InvalidRequestException toThrift(InvalidRequestException e)
           
static TimedOutException toThrift(RequestTimeoutException e)
           
static InvalidRequestException toThrift(RequestValidationException e)
           
static UnavailableException toThrift(UnavailableException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftConversion

public ThriftConversion()
Method Detail

toThrift

public static ConsistencyLevel toThrift(ConsistencyLevel cl)

fromThrift

public static ConsistencyLevel fromThrift(ConsistencyLevel cl)

rethrow

public static void rethrow(RequestExecutionException e)
                    throws UnavailableException,
                           TimedOutException
Throws:
UnavailableException
TimedOutException

toThrift

public static InvalidRequestException toThrift(RequestValidationException e)

toThrift

public static InvalidRequestException toThrift(InvalidRequestException e)

toThrift

public static UnavailableException toThrift(UnavailableException e)

toThrift

public static AuthenticationException toThrift(AuthenticationException e)

toThrift

public static TimedOutException toThrift(RequestTimeoutException e)


Copyright © 2012 The Apache Software Foundation