@InterfaceAudience.Private public class SchedulerService extends BaseService implements Scheduler
Modifier and Type | Field and Description |
---|---|
static String |
CONF_THREADS |
static String |
PREFIX |
Constructor and Description |
---|
SchedulerService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the services.
|
Class |
getInterface()
Returns the interface implemented by this service.
|
Class[] |
getServiceDependencies()
Returns the service dependencies of this service.
|
void |
init()
Initializes the server.
|
void |
schedule(Callable<?> callable,
long delay,
long interval,
TimeUnit unit) |
void |
schedule(Runnable runnable,
long delay,
long interval,
TimeUnit unit) |
getPrefix, getPrefixedName, getServer, getServiceConfig, init, postInit, serverStatusChange
public static final String PREFIX
public static final String CONF_THREADS
public SchedulerService()
public void init() throws ServiceException
BaseService
This method is called by BaseService.init(Server)
after all service properties
(properties prefixed with
init
in class BaseService
ServiceException
- thrown if the service could not be initialized.public void destroy()
BaseService
Server
owning the service is being destroyed.
This method does a NOP.
destroy
in interface Service
destroy
in class BaseService
public Class[] getServiceDependencies()
BaseService
This method returns an empty array (size 0)
getServiceDependencies
in interface Service
getServiceDependencies
in class BaseService
public Class getInterface()
Service
Server
when the Server.get(Class)
method is used to
retrieve a service.getInterface
in interface Service
Copyright © 2017 Apache Software Foundation. All Rights Reserved.