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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Illeal start method as we only accept future based services.
    abstract void
    start​(io.vertx.core.Promise<Void> startPromise)
    Starts a service.
    void
    Illeal stop method as we only accept future based services.
    abstract void
    stop​(io.vertx.core.Promise<Void> stopPromise)
    Stops a service.

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractService

      public AbstractService()
  • Method Details

    • start

      public abstract void start(io.vertx.core.Promise<Void> startPromise)
      Starts a service.
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Parameters:
      startPromise - Future for determining if a service has started or not.
    • stop

      public abstract void stop(io.vertx.core.Promise<Void> stopPromise)
      Stops a service.
      Specified by:
      stop in interface io.vertx.core.Verticle
      Overrides:
      stop in class io.vertx.core.AbstractVerticle
      Parameters:
      stopPromise - Future for determining if a service has stopped or not.
    • start

      public final void start() throws Exception
      Illeal start method as we only accept future based services.
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Throws:
      Exception - Always
    • stop

      public final void stop() throws Exception
      Illeal stop method as we only accept future based services.
      Overrides:
      stop in class io.vertx.core.AbstractVerticle
      Throws:
      Exception - Always