Package com.emc.mongoose.base.svc
Class ServiceBase
- java.lang.Object
-
- com.github.akurilov.commons.concurrent.AsyncRunnableBase
-
- com.emc.mongoose.base.svc.ServiceBase
-
- All Implemented Interfaces:
Service,com.github.akurilov.commons.concurrent.AsyncRunnable,java.lang.AutoCloseable,java.rmi.Remote
- Direct Known Subclasses:
FileManagerServiceImpl,LoadStepManagerServiceImpl,LoadStepServiceImpl
public abstract class ServiceBase extends com.github.akurilov.commons.concurrent.AsyncRunnableBase implements Service
-
-
Field Summary
Fields Modifier and Type Field Description protected intport
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceBase(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoShutdown()protected voiddoStart()protected voiddoStop()intregistryPort()-
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
-
-
-
-
Method Detail
-
registryPort
public final int registryPort()
- Specified by:
registryPortin interfaceService
-
doStart
protected void doStart()
- Overrides:
doStartin classcom.github.akurilov.commons.concurrent.AsyncRunnableBase
-
doShutdown
protected void doShutdown()
- Overrides:
doShutdownin classcom.github.akurilov.commons.concurrent.AsyncRunnableBase
-
doStop
protected void doStop()
- Overrides:
doStopin classcom.github.akurilov.commons.concurrent.AsyncRunnableBase
-
-