org.apache.blur.thrift
Class ThriftServer

java.lang.Object
  extended by org.apache.blur.thrift.ThriftServer
Direct Known Subclasses:
ThriftBlurControllerServer, ThriftBlurShardServer

public class ThriftServer
extends Object


Constructor Summary
ThriftServer()
           
 
Method Summary
 void close()
           
 int getAcceptQueueSizePerThread()
           
static InetSocketAddress getBindInetSocketAddress(String bindAddress, int bindPort)
           
 TServerEventHandler getEventHandler()
           
 Blur.Iface getIface()
           
 int getLocalPort()
           
 int getMaxFrameSize()
           
 long getMaxReadBufferBytes()
           
 String getNodeName()
           
static String getNodeName(BlurConfiguration configuration, String hostNameProperty)
           
 int getSelectorThreads()
           
 TNonblockingServerSocket getServerTransport()
           
 BlurServerShutDown.BlurShutdown getShutdown()
           
static TNonblockingServerSocket getTNonblockingServerSocket(String bindAddress, int bindPort)
           
static String isEmpty(String str, String name)
           
static void printUlimits()
           
 void setAcceptQueueSizePerThread(int acceptQueueSizePerThread)
           
 void setEventHandler(TServerEventHandler eventHandler)
           
 void setIface(Blur.Iface iface)
           
 void setMaxFrameSize(int maxFrameSize)
           
 void setMaxReadBufferBytes(long maxReadBufferBytes)
           
 void setNodeName(String nodeName)
           
 void setSelectorThreads(int selectorThreads)
           
 void setServerTransport(TNonblockingServerSocket serverTransport)
           
 void setShutdown(BlurServerShutDown.BlurShutdown shutdown)
           
 void setThreadCount(int threadCount)
           
static void setupJvmMetrics()
           
static TraceStorage setupTraceStorage(BlurConfiguration configuration)
           
 void start()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftServer

public ThriftServer()
Method Detail

getMaxFrameSize

public int getMaxFrameSize()

setMaxFrameSize

public void setMaxFrameSize(int maxFrameSize)

getServerTransport

public TNonblockingServerSocket getServerTransport()

setServerTransport

public void setServerTransport(TNonblockingServerSocket serverTransport)

setupTraceStorage

public static TraceStorage setupTraceStorage(BlurConfiguration configuration)
                                      throws IOException
Throws:
IOException

printUlimits

public static void printUlimits()
                         throws IOException
Throws:
IOException

setupJvmMetrics

public static void setupJvmMetrics()

close

public void close()

start

public void start()
           throws TTransportException
Throws:
TTransportException

getTNonblockingServerSocket

public static TNonblockingServerSocket getTNonblockingServerSocket(String bindAddress,
                                                                   int bindPort)
                                                            throws TTransportException
Throws:
TTransportException

getLocalPort

public int getLocalPort()

getBindInetSocketAddress

public static InetSocketAddress getBindInetSocketAddress(String bindAddress,
                                                         int bindPort)

isEmpty

public static String isEmpty(String str,
                             String name)

getIface

public Blur.Iface getIface()

setIface

public void setIface(Blur.Iface iface)

getNodeName

public String getNodeName()

setNodeName

public void setNodeName(String nodeName)

getNodeName

public static String getNodeName(BlurConfiguration configuration,
                                 String hostNameProperty)
                          throws UnknownHostException
Throws:
UnknownHostException

setThreadCount

public void setThreadCount(int threadCount)

getShutdown

public BlurServerShutDown.BlurShutdown getShutdown()

setShutdown

public void setShutdown(BlurServerShutDown.BlurShutdown shutdown)

getEventHandler

public TServerEventHandler getEventHandler()

setEventHandler

public void setEventHandler(TServerEventHandler eventHandler)

getAcceptQueueSizePerThread

public int getAcceptQueueSizePerThread()

setAcceptQueueSizePerThread

public void setAcceptQueueSizePerThread(int acceptQueueSizePerThread)

getMaxReadBufferBytes

public long getMaxReadBufferBytes()

setMaxReadBufferBytes

public void setMaxReadBufferBytes(long maxReadBufferBytes)

getSelectorThreads

public int getSelectorThreads()

setSelectorThreads

public void setSelectorThreads(int selectorThreads)


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