Package org.apache.cassandra.service
Class NativeTransportService
- java.lang.Object
-
- org.apache.cassandra.service.NativeTransportService
-
public class NativeTransportService extends java.lang.Object
Handles 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 void
clearConnectionHistory()
void
destroy()
Ultimately stops servers and closes all resources.boolean
isRunning()
void
start()
Starts native transport servers.void
stop()
Stops currently running native transport servers.void
stop(boolean force)
static boolean
useEpoll()
-
-
-
Method Detail
-
start
public void start()
Starts native transport servers.
-
stop
public void stop()
Stops currently running native transport servers.
-
stop
public void stop(boolean force)
-
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()
-
-