Class ServiceBase

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        com.github.akurilov.commons.concurrent.AsyncRunnable.State
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int port  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ServiceBase​(int port)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doShutdown()  
      protected void doStart()  
      protected void doStop()  
      int registryPort()  
      • Methods inherited from class com.github.akurilov.commons.concurrent.AsyncRunnableBase

        await, await, close, doClose, isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        await, await, close, isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stop
      • Methods inherited from interface java.lang.AutoCloseable

        close
      • Methods inherited from interface com.emc.mongoose.base.svc.Service

        name
    • Field Detail

      • port

        protected final int port
    • Constructor Detail

      • ServiceBase

        protected ServiceBase​(int port)
    • Method Detail

      • registryPort

        public final int registryPort()
        Specified by:
        registryPort in interface Service
      • doStart

        protected void doStart()
        Overrides:
        doStart in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
      • doShutdown

        protected void doShutdown()
        Overrides:
        doShutdown in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
      • doStop

        protected void doStop()
        Overrides:
        doStop in class com.github.akurilov.commons.concurrent.AsyncRunnableBase