Package org.gwizard.web
Class WebServerService
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.gwizard.web.WebServerService
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class WebServerService
extends com.google.common.util.concurrent.AbstractIdleService
A Guava service to startup / shutdown the web server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State -
Constructor Summary
Constructors Constructor Description WebServerService(Services services, WebServer server) -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
WebServerService
-
-
Method Details
-
startUp
protected void startUp() throws java.lang.Exception- Specified by:
startUpin classcom.google.common.util.concurrent.AbstractIdleService- Throws:
java.lang.Exception
-
shutDown
protected void shutDown() throws java.lang.Exception- Specified by:
shutDownin classcom.google.common.util.concurrent.AbstractIdleService- Throws:
java.lang.Exception
-