org.siebengeisslein
Class Server

java.lang.Object
  extended by org.siebengeisslein.Server
All Implemented Interfaces:
ConnectionBuilder

public class Server
extends java.lang.Object
implements ConnectionBuilder


Constructor Summary
Server(Config config, boolean create)
           
Server(Config config, boolean create, boolean setupLogging)
           
 
Method Summary
 LocalConnection buildConnection(ServerCallback callback)
           
static boolean exists(Config config)
           
 Config getConfig()
           
static void main(java.lang.String[] args)
           
 void shutDown()
           
static void shutDownServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server(Config config,
              boolean create)
       throws java.lang.Exception
Throws:
java.lang.Exception

Server

public Server(Config config,
              boolean create,
              boolean setupLogging)
       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

exists

public static boolean exists(Config config)

buildConnection

public LocalConnection buildConnection(ServerCallback callback)
                                throws CoreException
Specified by:
buildConnection in interface ConnectionBuilder
Throws:
CoreException

shutDown

public void shutDown()
              throws java.io.IOException,
                     java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

shutDownServer

public static void shutDownServer()
                           throws java.lang.InterruptedException,
                                  java.io.IOException
Throws:
java.lang.InterruptedException
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getConfig

public Config getConfig()