org.apache.cassandra.transport
Class Server

java.lang.Object
  extended by org.apache.cassandra.transport.Server
All Implemented Interfaces:
CassandraDaemon.Server

public class Server
extends java.lang.Object
implements CassandraDaemon.Server


Nested Class Summary
static class Server.ConnectionTracker
           
 
Field Summary
 java.net.InetSocketAddress socket
           
 
Constructor Summary
Server(java.net.InetAddress host, int port)
           
Server(java.net.InetSocketAddress socket)
           
Server(int port)
           
Server(java.lang.String hostname, int port)
           
 
Method Summary
 void close()
           
 boolean isRunning()
          Returns whether the server is currently running.
 void run()
           
 void start()
          Start the server.
 void stop()
          Stop the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

public final java.net.InetSocketAddress socket
Constructor Detail

Server

public Server(java.net.InetSocketAddress socket)

Server

public Server(java.lang.String hostname,
              int port)

Server

public Server(java.net.InetAddress host,
              int port)

Server

public Server(int port)
Method Detail

start

public void start()
Description copied from interface: CassandraDaemon.Server
Start the server. This method shoud be able to restart a server stopped through stop(). Should throw a RuntimeException if the server cannot be started

Specified by:
start in interface CassandraDaemon.Server

stop

public void stop()
Description copied from interface: CassandraDaemon.Server
Stop the server. This method should be able to stop server started through start(). Should throw a RuntimeException if the server cannot be stopped

Specified by:
stop in interface CassandraDaemon.Server

isRunning

public boolean isRunning()
Description copied from interface: CassandraDaemon.Server
Returns whether the server is currently running.

Specified by:
isRunning in interface CassandraDaemon.Server

run

public void run()

close

public void close()


Copyright © 2013 The Apache Software Foundation