Package org.apache.iotdb.commons.service
Interface IService
-
- All Known Implementing Classes:
BasicAuthorizer,JMXService,LocalFileAuthorizer,MetricService,OpenIdAuthorizer,ThriftService,UDFClassLoaderManager
public interface IService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceTypegetID()Get the name of the the service.default voidshutdown(long milliseconds)voidstart()Start current service.voidstop()Stop current service.default voidwaitAndStop(long milliseconds)
-
-
-
Method Detail
-
start
void start() throws StartupExceptionStart current service.- Throws:
StartupException
-
stop
void stop()
Stop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
-
waitAndStop
default void waitAndStop(long milliseconds)
-
shutdown
default void shutdown(long milliseconds) throws ShutdownException- Throws:
ShutdownException
-
getID
ServiceType getID()
Get the name of the the service.- Returns:
- current service name
-
-