com.nesscomputing.httpserver.standalone
Class StandaloneServer

java.lang.Object
  extended by com.nesscomputing.httpserver.standalone.StandaloneServer
Direct Known Subclasses:
AnnouncingStandaloneServer

public abstract class StandaloneServer
extends Object

Standalone main class. Environment properties:


Constructor Summary
StandaloneServer()
           
 
Method Summary
 com.nesscomputing.config.Config getConfig()
          Can be overridden in tests.
 com.google.inject.Injector getInjector()
           
protected  com.google.inject.Module getLifecycleModule()
           
protected  String getLoggingConfigurationName()
           
protected abstract  com.google.inject.Module getMainModule(com.nesscomputing.config.Config config)
           
 com.google.inject.Module getPlumbingModules(com.nesscomputing.config.Config config)
          Can be overridden in tests.
protected  com.nesscomputing.lifecycle.LifecycleStage getStartStage()
           
protected  com.nesscomputing.lifecycle.LifecycleStage getStopStage()
           
 boolean isStarted()
           
 boolean isStopped()
           
 void startServer()
           
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneServer

public StandaloneServer()
Method Detail

startServer

public void startServer()

stopServer

public void stopServer()

isStarted

public boolean isStarted()

isStopped

public boolean isStopped()

getPlumbingModules

public com.google.inject.Module getPlumbingModules(com.nesscomputing.config.Config config)
Can be overridden in tests.


getConfig

public com.nesscomputing.config.Config getConfig()
Can be overridden in tests.


getInjector

public final com.google.inject.Injector getInjector()

getStartStage

protected com.nesscomputing.lifecycle.LifecycleStage getStartStage()

getStopStage

protected com.nesscomputing.lifecycle.LifecycleStage getStopStage()

getLifecycleModule

protected com.google.inject.Module getLifecycleModule()

getMainModule

protected abstract com.google.inject.Module getMainModule(com.nesscomputing.config.Config config)

getLoggingConfigurationName

protected String getLoggingConfigurationName()


Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.