Package org.apache.cassandra.transport
Class Server
- java.lang.Object
-
- org.apache.cassandra.transport.Server
-
- All Implemented Interfaces:
CassandraDaemon.Server
public class Server extends java.lang.Object implements CassandraDaemon.Server
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServer.Builderstatic classServer.ConnectionTrackerstatic classServer.EventNotifier
-
Field Summary
Fields Modifier and Type Field Description java.net.InetSocketAddresssocketEncryptionOptions.TlsEncryptionPolicytlsEncryptionPolicy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearConnectionHistory()intcountConnectedClients()java.util.Map<java.lang.String,java.lang.Integer>countConnectedClientsByUser()java.util.List<ConnectedClient>getConnectedClients()booleanisRunning()Returns whether the server is currently running.java.util.List<ClientStat>recentClientStats()voidstart()Start the server.voidstop()Stop the server.
-
-
-
Field Detail
-
socket
public final java.net.InetSocketAddress socket
-
tlsEncryptionPolicy
public final EncryptionOptions.TlsEncryptionPolicy tlsEncryptionPolicy
-
-
Method Detail
-
stop
public void stop()
Description copied from interface:CassandraDaemon.ServerStop the server. This method should be able to stop server started through start(). Should throw a RuntimeException if the server cannot be stopped- Specified by:
stopin interfaceCassandraDaemon.Server
-
isRunning
public boolean isRunning()
Description copied from interface:CassandraDaemon.ServerReturns whether the server is currently running.- Specified by:
isRunningin interfaceCassandraDaemon.Server
-
start
public void start()
Description copied from interface:CassandraDaemon.ServerStart the server. This method shoud be able to restart a server stopped through stop(). Should throw a RuntimeException if the server cannot be started- Specified by:
startin interfaceCassandraDaemon.Server
-
countConnectedClients
public int countConnectedClients()
-
countConnectedClientsByUser
public java.util.Map<java.lang.String,java.lang.Integer> countConnectedClientsByUser()
-
getConnectedClients
public java.util.List<ConnectedClient> getConnectedClients()
-
recentClientStats
public java.util.List<ClientStat> recentClientStats()
-
clearConnectionHistory
public void clearConnectionHistory()
- Specified by:
clearConnectionHistoryin interfaceCassandraDaemon.Server
-
-