Package org.apache.cassandra.service
Class NativeTransportService
- java.lang.Object
-
- org.apache.cassandra.service.NativeTransportService
-
public class NativeTransportService extends java.lang.ObjectHandles native transport server lifecycle and associated resources. Lazily initialized.
-
-
Constructor Summary
Constructors Constructor Description NativeTransportService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearConnectionHistory()voiddestroy()Ultimately stops servers and closes all resources.booleanisRunning()voidstart()Starts native transport servers.voidstop()Stops currently running native transport servers.static booleanuseEpoll()
-
-
-
Method Detail
-
start
public void start()
Starts native transport servers.
-
stop
public void stop()
Stops currently running native transport servers.
-
destroy
public void destroy()
Ultimately stops servers and closes all resources.
-
useEpoll
public static boolean useEpoll()
- Returns:
- intend to use epoll based event looping
-
isRunning
public boolean isRunning()
- Returns:
- true in case native transport server is running
-
clearConnectionHistory
public void clearConnectionHistory()
-
-