com.twitter.common.thrift
Class ThriftServer.ServerSetup

java.lang.Object
  extended by com.twitter.common.thrift.ThriftServer.ServerSetup
Enclosing class:
ThriftServer

public static final class ThriftServer.ServerSetup
extends Object

Represents the server configuration variables needed to construct a TServer.


Constructor Summary
ThriftServer.ServerSetup(int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory)
           
ThriftServer.ServerSetup(int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, int numThreads, Amount<Integer,Time> socketTimeout)
           
ThriftServer.ServerSetup(int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, TrafficMonitor<InetSocketAddress> monitor)
           
ThriftServer.ServerSetup(String name, int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory)
           
ThriftServer.ServerSetup(String name, int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, int numThreads, Amount<Integer,Time> socketTimeout)
           
ThriftServer.ServerSetup(String name, int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, int numThreads, Amount<Integer,Time> socketTimeout, TrafficMonitor<InetSocketAddress> monitor)
           
ThriftServer.ServerSetup(String name, int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, int numThreads, int queueSize, Amount<Integer,Time> socketTimeout)
           
ThriftServer.ServerSetup(String name, int port, org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protoFactory, int numThreads, int queueSize, Amount<Integer,Time> socketTimeout, TrafficMonitor<InetSocketAddress> monitor)
           
 
Method Summary
 TrafficMonitor<InetSocketAddress> getMonitor()
           
 String getName()
           
 int getNumThreads()
           
 int getPort()
           
 org.apache.thrift.TProcessor getProcessor()
           
 org.apache.thrift.protocol.TProtocolFactory getProtoFactory()
           
 int getQueueSize()
           
 ServerSocket getSocket()
           
 Amount<Integer,Time> getSocketTimeout()
           
 boolean isMonitored()
           
 void setSocket(ServerSocket socket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(String name,
                                int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                TrafficMonitor<InetSocketAddress> monitor)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                int numThreads,
                                Amount<Integer,Time> socketTimeout)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(String name,
                                int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                int numThreads,
                                Amount<Integer,Time> socketTimeout)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(String name,
                                int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                int numThreads,
                                int queueSize,
                                Amount<Integer,Time> socketTimeout)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(String name,
                                int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                int numThreads,
                                Amount<Integer,Time> socketTimeout,
                                TrafficMonitor<InetSocketAddress> monitor)

ThriftServer.ServerSetup

public ThriftServer.ServerSetup(String name,
                                int port,
                                org.apache.thrift.TProcessor processor,
                                org.apache.thrift.protocol.TProtocolFactory protoFactory,
                                int numThreads,
                                int queueSize,
                                Amount<Integer,Time> socketTimeout,
                                TrafficMonitor<InetSocketAddress> monitor)
Method Detail

getName

public String getName()

getPort

public int getPort()

getNumThreads

public int getNumThreads()

getQueueSize

public int getQueueSize()

getSocketTimeout

public Amount<Integer,Time> getSocketTimeout()

getProcessor

public org.apache.thrift.TProcessor getProcessor()

getProtoFactory

public org.apache.thrift.protocol.TProtocolFactory getProtoFactory()

getSocket

public ServerSocket getSocket()

setSocket

public void setSocket(ServerSocket socket)

isMonitored

public boolean isMonitored()

getMonitor

public TrafficMonitor<InetSocketAddress> getMonitor()