org.apache.blur.thrift
Class ThriftServer
java.lang.Object
org.apache.blur.thrift.ThriftServer
- Direct Known Subclasses:
- ThriftBlurControllerServer, ThriftBlurShardServer
public class ThriftServer
- extends Object
ThriftServer
public ThriftServer()
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.