org.apache.lens.server
Class LensServices
java.lang.Object
org.apache.hive.service.AbstractService
org.apache.hive.service.CompositeService
org.apache.lens.server.LensServices
- All Implemented Interfaces:
- org.apache.hive.service.Service, ServiceProvider
public class LensServices
- extends org.apache.hive.service.CompositeService
- implements ServiceProvider
Manage lifecycle of all Lens services
Nested classes/interfaces inherited from class org.apache.hive.service.CompositeService |
org.apache.hive.service.CompositeService.CompositeServiceShutdownHook |
Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
org.apache.hive.service.Service.STATE |
Field Summary |
static String |
LENS_SERVICES_NAME
The Constant LENS_SERVICES_NAME. |
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
Methods inherited from class org.apache.hive.service.CompositeService |
getServices |
Methods inherited from class org.apache.hive.service.AbstractService |
getHiveConf, getName, getStartTime, register, unregister |
LOG
public static final org.apache.commons.logging.Log LOG
- The Constant LOG.
LENS_SERVICES_NAME
public static final String LENS_SERVICES_NAME
- The Constant LENS_SERVICES_NAME.
- See Also:
- Constant Field Values
LensServices
public LensServices(String name)
- Instantiates a new lens services.
- Parameters:
name
- the name
init
public void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
- Specified by:
init
in interface org.apache.hive.service.Service
- Overrides:
init
in class org.apache.hive.service.CompositeService
start
public void start()
- Specified by:
start
in interface org.apache.hive.service.Service
- Overrides:
start
in class org.apache.hive.service.CompositeService
stop
public void stop()
- Specified by:
stop
in interface org.apache.hive.service.Service
- Overrides:
stop
in class org.apache.hive.service.CompositeService
getServiceState
public org.apache.hive.service.Service.STATE getServiceState()
- Specified by:
getServiceState
in interface org.apache.hive.service.Service
- Overrides:
getServiceState
in class org.apache.hive.service.AbstractService
isStopping
public boolean isStopping()
get
public static LensServices get()
- Gets the.
- Returns:
- the lens services
getService
public <T extends org.apache.hive.service.Service> T getService(String sName)
- Description copied from interface:
ServiceProvider
- Get an instance of a service by its name.
- Specified by:
getService
in interface ServiceProvider
- Type Parameters:
T
- the generic type- Parameters:
sName
- the s name
- Returns:
- the service
getLensServices
public List<LensService> getLensServices()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.