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. 
 | 
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 © 2016 Apache Software Foundation. All rights reserved.