public class Server extends java.lang.Object implements CassandraDaemon.Server
| Modifier and Type | Class and Description |
|---|---|
static class |
Server.Builder |
static class |
Server.ConnectionTracker |
| Modifier and Type | Field and Description |
|---|---|
java.net.InetSocketAddress |
socket |
EncryptionOptions.TlsEncryptionPolicy |
tlsEncryptionPolicy |
| Modifier and Type | Method and Description |
|---|---|
void |
clearConnectionHistory() |
int |
countConnectedClients() |
java.util.Map<java.lang.String,java.lang.Integer> |
countConnectedClientsByUser() |
java.util.List<ConnectedClient> |
getConnectedClients() |
boolean |
isRunning()
Returns whether the server is currently running.
|
java.util.List<ClientStat> |
recentClientStats() |
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
public final java.net.InetSocketAddress socket
public final EncryptionOptions.TlsEncryptionPolicy tlsEncryptionPolicy
public void stop()
CassandraDaemon.Serverstop in interface CassandraDaemon.Serverpublic boolean isRunning()
CassandraDaemon.ServerisRunning in interface CassandraDaemon.Serverpublic void start()
CassandraDaemon.Serverstart in interface CassandraDaemon.Serverpublic int countConnectedClients()
public java.util.Map<java.lang.String,java.lang.Integer> countConnectedClientsByUser()
public java.util.List<ConnectedClient> getConnectedClients()
public java.util.List<ClientStat> recentClientStats()
public void clearConnectionHistory()
clearConnectionHistory in interface CassandraDaemon.ServerCopyright © 2009-2020 The Apache Software Foundation