Class AbstractVeniceService

    • Field Detail

      • logger

        protected final org.apache.logging.log4j.Logger logger
    • Constructor Detail

      • AbstractVeniceService

        public AbstractVeniceService()
    • Method Detail

      • getName

        public java.lang.String getName()
      • isRunning

        public boolean isRunning()
      • start

        public void start()
      • stop

        public void stop()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • startInner

        public abstract boolean startInner()
                                    throws java.lang.Exception
        Returns:
        true if the service is completely started, false if it is still starting asynchronously (in this case, it is the implementer's responsibility to set serviceState to AbstractVeniceService.ServiceState.STARTED upon completion of the async work).
        Throws:
        java.lang.Exception
      • stopInner

        public abstract void stopInner()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable