public class ThriftServer extends java.lang.Object implements CassandraDaemon.Server
| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftServer.ThriftServerType |
| Modifier and Type | Field and Description |
|---|---|
protected java.net.InetAddress |
address |
protected int |
backlog |
protected int |
port |
| Constructor and Description |
|---|
ThriftServer(java.net.InetAddress address,
int port,
int backlog) |
| Modifier and Type | Method and Description |
|---|---|
protected CassandraServer |
getCassandraServer() |
protected org.apache.thrift.TProcessor |
getProcessor(CassandraServer server) |
protected org.apache.thrift.transport.TTransportFactory |
getTransportFactory() |
boolean |
isRunning()
Returns whether the server is currently running.
|
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
protected final java.net.InetAddress address
protected final int port
protected final int backlog
public ThriftServer(java.net.InetAddress address,
int port,
int backlog)
public void start()
CassandraDaemon.Serverstart in interface CassandraDaemon.Serverpublic void stop()
CassandraDaemon.Serverstop in interface CassandraDaemon.Serverpublic boolean isRunning()
CassandraDaemon.ServerisRunning in interface CassandraDaemon.Serverprotected CassandraServer getCassandraServer()
protected org.apache.thrift.TProcessor getProcessor(CassandraServer server)
protected org.apache.thrift.transport.TTransportFactory getTransportFactory()
Copyright © 2018 The Apache Software Foundation