org.apache.cassandra.thrift
Class CassandraDaemon

java.lang.Object
  extended by org.apache.cassandra.service.AbstractCassandraDaemon
      extended by org.apache.cassandra.thrift.CassandraDaemon
All Implemented Interfaces:
CassandraDaemon

public class CassandraDaemon
extends AbstractCassandraDaemon

This class supports two methods for creating a Cassandra node daemon, invoking the class's main method, and using the jsvc wrapper from commons-daemon, (for more information on using this class with the jsvc wrapper, see the Commons Daemon documentation).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cassandra.service.AbstractCassandraDaemon
AbstractCassandraDaemon.CleaningThreadPool
 
Field Summary
static java.util.List<java.lang.String> rpc_server_types
           
 
Fields inherited from class org.apache.cassandra.service.AbstractCassandraDaemon
isRunning, listenAddr, listenPort
 
Constructor Summary
CassandraDaemon()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void startServer()
          Start the underlying RPC server.
protected  void stopServer()
          Stop the underlying RPC server.
 
Methods inherited from class org.apache.cassandra.service.AbstractCassandraDaemon
activate, deactivate, destroy, init, isRPCServerRunning, setup, start, startRPCServer, stop, stopRPCServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rpc_server_types

public static final java.util.List<java.lang.String> rpc_server_types
Constructor Detail

CassandraDaemon

public CassandraDaemon()
Method Detail

startServer

protected void startServer()
Description copied from class: AbstractCassandraDaemon
Start the underlying RPC server. This method shoud be able to restart a server stopped through stopServer(). Should throw a RuntimeException if the server cannot be started

Specified by:
startServer in class AbstractCassandraDaemon

stopServer

protected void stopServer()
Description copied from class: AbstractCassandraDaemon
Stop the underlying RPC server. This method should be able to stop server started through startServer(). Should throw a RuntimeException if the server cannot be stopped

Specified by:
stopServer in class AbstractCassandraDaemon

main

public static void main(java.lang.String[] args)


Copyright © 2011 The Apache Software Foundation