public interface Service
Services
singleton.Modifier and Type | Field and Description |
---|---|
static String |
CONF_PREFIX
Prefix for all services configuration properties.
|
static String |
DEFAULT_LOCK_TIMEOUT |
static long |
lockTimeout
Lock timeout value if service is only allowed to have one single running instance.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the service.
|
Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
void |
init(Services services)
Initialize the service.
|
static final String DEFAULT_LOCK_TIMEOUT
static final String CONF_PREFIX
static final long lockTimeout
void init(Services services) throws ServiceException
Invoked by the Service
singleton at start up time.
services
- services singleton initializing the service.ServiceException
- thrown if the service could not initialize.Class<? extends Service> getInterface()
Services are retrieved by its public interface. Specializations of services must return the public interface.
Copyright © 2018 Apache Software Foundation. All rights reserved.