public class CassandraDaemon
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
CassandraDaemon.Server |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MBEAN_NAME |
CassandraDaemon.Server |
nativeServer |
protected StartupChecks |
startupChecks |
CassandraDaemon.Server |
thriftServer |
Constructor and Description |
---|
CassandraDaemon() |
CassandraDaemon(boolean runManaged) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
A convenience method to initialize and start the daemon in one shot.
|
void |
completeSetup() |
void |
deactivate()
A convenience method to stop and destroy the daemon in one shot.
|
void |
destroy()
Clean up all resources obtained during the lifetime of the daemon.
|
void |
destroyNativeTransport() |
static CassandraDaemon |
getInstanceForTesting() |
void |
init(java.lang.String[] arguments)
Initialize the Cassandra Daemon based on the given Commons
Daemon-specific arguments.
|
void |
initializeNativeTransport() |
static void |
main(java.lang.String[] args) |
protected void |
setup()
This is a hook for concrete daemons to initialize themselves suitably.
|
boolean |
setupCompleted() |
void |
start()
Start the Cassandra Daemon, assuming that it has already been
initialized via
init(String[])
Hook for JSVC |
void |
startNativeTransport() |
void |
stop()
Stop the daemon, ideally in an idempotent manner.
|
static void |
stop(java.lang.String[] args) |
static void |
waitForGossipToSettle() |
public static final java.lang.String MBEAN_NAME
public CassandraDaemon.Server thriftServer
public CassandraDaemon.Server nativeServer
protected final StartupChecks startupChecks
public CassandraDaemon()
public CassandraDaemon(boolean runManaged)
public static CassandraDaemon getInstanceForTesting()
protected void setup()
public void initializeNativeTransport()
public void startNativeTransport()
public void completeSetup()
public boolean setupCompleted()
public void init(java.lang.String[] arguments) throws java.io.IOException
arguments
- the arguments passed in from JSVCjava.io.IOException
public void start()
init(String[])
Hook for JSVCpublic void stop()
public void destroyNativeTransport() throws java.lang.InterruptedException
java.lang.InterruptedException
public void destroy()
public void activate()
public void deactivate()
public static void waitForGossipToSettle()
public static void stop(java.lang.String[] args) throws java.lang.InterruptedException
java.lang.InterruptedException
public static void main(java.lang.String[] args)
Copyright © 2020 The Apache Software Foundation