|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.service.CassandraDaemon
public class CassandraDaemon
The CassandraDaemon is an abstraction for a Cassandra daemon
service, which defines not only a way to activate and deactivate it, but also
hooks into its lifecycle methods (see setup(), start(),
stop() and setup()).
| Nested Class Summary | |
|---|---|
static interface |
CassandraDaemon.Server
|
| Field Summary | |
|---|---|
CassandraDaemon.Server |
nativeServer
|
CassandraDaemon.Server |
thriftServer
|
| Constructor Summary | |
|---|---|
CassandraDaemon()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public CassandraDaemon.Server thriftServer
public CassandraDaemon.Server nativeServer
| Constructor Detail |
|---|
public CassandraDaemon()
| Method Detail |
|---|
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 JSVC
java.io.IOExceptionpublic void start()
init(String[])
Hook for JSVC
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||