com.twitter.common.thrift
Class Util

java.lang.Object
  extended by com.twitter.common.thrift.Util

public class Util
extends Object

Utility functions for thrift.


Field Summary
static Function<ServiceInstance,InetSocketAddress> GET_ADDRESS
           
static Predicate<ServiceInstance> IS_ALIVE
           
 
Method Summary
static String prettyPrint(org.apache.thrift.TBase t)
          Pretty-prints a thrift object contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_ADDRESS

public static Function<ServiceInstance,InetSocketAddress> GET_ADDRESS

IS_ALIVE

public static final Predicate<ServiceInstance> IS_ALIVE
Method Detail

prettyPrint

public static String prettyPrint(org.apache.thrift.TBase t)
Pretty-prints a thrift object contents.

Parameters:
t - The thrift object to print.
Returns:
The pretty-printed version of the thrift object.