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 |
static java.lang.Runnable |
SPECULATION_THRESHOLD_UPDATER |
protected StartupChecks |
startupChecks |
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 |
applyConfig() |
void |
clearConnectionHistory() |
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 |
destroyClientTransports() |
static CassandraDaemon |
getInstanceForTesting() |
void |
init(java.lang.String[] arguments)
Initialize the Cassandra Daemon based on the given Commons
Daemon-specific arguments.
|
void |
initializeClientTransports() |
boolean |
isNativeTransportRunning() |
static void |
main(java.lang.String[] args) |
void |
migrateSystemDataIfNeeded()
Checks if the data of the local system keyspaces need to be migrated to a different location.
|
static void |
registerNativeAccess() |
void |
runStartupChecks() |
protected void |
setup()
This is a hook for concrete daemons to initialize themselves suitably.
|
boolean |
setupCompleted() |
void |
setupVirtualKeyspaces() |
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) |
void |
stopNativeTransport() |
static void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
void |
validateTransportsCanStart() |
public static final java.lang.String MBEAN_NAME
public static java.lang.Runnable SPECULATION_THRESHOLD_UPDATER
protected final StartupChecks startupChecks
public CassandraDaemon()
public CassandraDaemon(boolean runManaged)
public static CassandraDaemon getInstanceForTesting()
protected void setup()
public void runStartupChecks()
public void migrateSystemDataIfNeeded() throws java.io.IOException
java.io.IOException
public void setupVirtualKeyspaces()
public void initializeClientTransports()
public static void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
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 destroyClientTransports()
public void destroy()
public void activate()
public static void registerNativeAccess() throws javax.management.NotCompliantMBeanException
javax.management.NotCompliantMBeanException
public void applyConfig()
public void validateTransportsCanStart()
public void startNativeTransport()
public void stopNativeTransport()
public boolean isNativeTransportRunning()
public void deactivate()
public static void stop(java.lang.String[] args)
public static void main(java.lang.String[] args)
public void clearConnectionHistory()
Copyright © 2009-2021 The Apache Software Foundation