com.nesscomputing.httpserver.standalone
Class StandaloneServer
java.lang.Object
com.nesscomputing.httpserver.standalone.StandaloneServer
- Direct Known Subclasses:
- AnnouncingStandaloneServer
public abstract class StandaloneServer
- extends Object
Standalone main class.
Environment properties:
- TrumpetConfigLocation - An URI to load configuration from
- TrumpetConfig - A configuration path to load from the config URI
- TrumpetLog4JConfig - An URI to load the logging configuration from.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandaloneServer
public StandaloneServer()
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.