Package org.pidome.server.services
Class AbstractService
java.lang.Object
io.vertx.core.AbstractVerticle
org.pidome.server.services.AbstractService
- All Implemented Interfaces:
io.vertx.core.Verticle
- Direct Known Subclasses:
AuthService
,ClusterService
,DatabaseService
,DiscoveryBroadcastService
,DiscoveryService
,EventService
,HardwareService
,HttpService
,ItemService
,ModuleService
,NetworkService
,PackageService
,PostStartService
,PremisesService
,Ruleservice
,SecurityService
,UserService
public abstract class AbstractService
extends io.vertx.core.AbstractVerticle
Abstract class for implementing services.
-
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs
-
Constructor Details
-
AbstractService
public AbstractService()
-
-
Method Details
-
start
Starts a service.- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
- Parameters:
startPromise
- Future for determining if a service has started or not.
-
stop
Stops a service.- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Overrides:
stop
in classio.vertx.core.AbstractVerticle
- Parameters:
stopPromise
- Future for determining if a service has stopped or not.
-
start
Illeal start method as we only accept future based services.- Overrides:
start
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
- Always
-
stop
Illeal stop method as we only accept future based services.- Overrides:
stop
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
- Always
-