org.apache.blur.thrift
Class BlurClient

java.lang.Object
  extended by org.apache.blur.thrift.BlurClient

public class BlurClient
extends Object


Constructor Summary
BlurClient()
           
 
Method Summary
static Blur.Iface getClient(Connection connection)
           
static Blur.Iface getClient(Connection connection, int maxRetries, long backOffTime, long maxBackOffTime)
           
static Blur.Iface getClient(List<Connection> connections)
           
static Blur.Iface getClient(List<Connection> connections, int maxRetries, long backOffTime, long maxBackOffTime)
           
static Blur.Iface getClient(String connectionStr)
          Returns a client interface to Blur based on the connectionStr.
static Blur.Iface getClient(String connectionStr, int maxRetries, long backOffTime, long maxBackOffTime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurClient

public BlurClient()
Method Detail

getClient

public static Blur.Iface getClient(String connectionStr)
Returns a client interface to Blur based on the connectionStr.
 Blur.Iface client = Blur.getClient("controller1:40010,controller2:40010");
 
The connectionStr also supports passing a proxy host/port (e.g. a SOCKS proxy configuration):
 Blur.Iface client = Blur.getClient("host1:port/proxyhost1:proxyport");
 

Parameters:
connectionStr - - a comma-delimited list of host:port of Shard Controllers.
Returns:

getClient

public static Blur.Iface getClient(String connectionStr,
                                   int maxRetries,
                                   long backOffTime,
                                   long maxBackOffTime)

getClient

public static Blur.Iface getClient(Connection connection)

getClient

public static Blur.Iface getClient(List<Connection> connections)

getClient

public static Blur.Iface getClient(Connection connection,
                                   int maxRetries,
                                   long backOffTime,
                                   long maxBackOffTime)

getClient

public static Blur.Iface getClient(List<Connection> connections,
                                   int maxRetries,
                                   long backOffTime,
                                   long maxBackOffTime)


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.