public class Server extends java.lang.Object implements CassandraDaemon.Server
Modifier and Type | Class and Description |
---|---|
protected static class |
Server.AbstractSecureIntializer |
static class |
Server.ConnectionTracker |
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_VERSION |
java.net.InetSocketAddress |
socket |
static int |
VERSION_1 |
static int |
VERSION_2 |
static int |
VERSION_3 |
static int |
VERSION_4 |
Constructor and Description |
---|
Server(java.net.InetAddress host,
int port) |
Server(java.net.InetSocketAddress socket) |
Server(int port) |
Server(java.lang.String hostname,
int port) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning()
Returns whether the server is currently running.
|
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
public static final int VERSION_1
public static final int VERSION_2
public static final int VERSION_3
public static final int VERSION_4
public static final int CURRENT_VERSION
public final java.net.InetSocketAddress socket
public Server(java.net.InetSocketAddress socket)
public Server(java.lang.String hostname, int port)
public Server(java.net.InetAddress host, int port)
public Server(int port)
public void start()
CassandraDaemon.Server
start
in interface CassandraDaemon.Server
public void stop()
CassandraDaemon.Server
stop
in interface CassandraDaemon.Server
public boolean isRunning()
CassandraDaemon.Server
isRunning
in interface CassandraDaemon.Server
Copyright © 2016 The Apache Software Foundation