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 |
CassandraDaemon.Server |
thriftServer |
Constructor and Description |
---|
CassandraDaemon() |
Modifier and Type | Method and Description |
---|---|
void |
activate()
A convenience method to initialize and start the daemon in one shot.
|
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 |
init(java.lang.String[] arguments)
Initialize the Cassandra Daemon based on the given Commons
Daemon-specific arguments.
|
static void |
initLog4j()
Initialize logging in such a way that it checks for config changes every 10 seconds.
|
static void |
main(java.lang.String[] args) |
protected void |
setup()
This is a hook for concrete daemons to initialize themselves suitably.
|
void |
start()
Start the Cassandra Daemon, assuming that it has already been
initialized via
init(String[])
Hook for JSVC |
void |
stop()
Stop the daemon, ideally in an idempotent manner.
|
static void |
stop(java.lang.String[] args) |
public static final java.lang.String MBEAN_NAME
public CassandraDaemon.Server thriftServer
public CassandraDaemon.Server nativeServer
public static void initLog4j()
protected void setup()
java.io.IOException
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 destroy()
public void activate()
public void deactivate()
public static void stop(java.lang.String[] args)
public static void main(java.lang.String[] args)
Copyright © 2013 The Apache Software Foundation