public class LensServices extends org.apache.hive.service.CompositeService implements ServiceProvider
| Modifier and Type | Class and Description | 
|---|---|
| static class  | LensServices.SERVICE_MODEThe Enum SERVICE_MODE. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | LENS_SERVICES_NAMEThe Constant LENS_SERVICES_NAME. | 
| static org.apache.commons.logging.Log | LOGThe Constant LOG. | 
| static String | SERVER_STATE_PERSISTENCE_ERRORSThe Constant SERVER_STATE_PERSISTENCE_ERRORS. | 
| Constructor and Description | 
|---|
| LensServices(String name,
            LogSegregationContext logSegregationContext)Instantiates a new lens services. | 
| Modifier and Type | Method and Description | 
|---|---|
| static LensServices | get()Gets the. | 
| List<LensService> | getLensServices() | 
| <T extends org.apache.hive.service.Service>  | getService(String sName)Get an instance of a service by its name. | 
| org.apache.hive.service.Service.STATE | getServiceState() | 
| void | init(org.apache.hadoop.hive.conf.HiveConf hiveConf) | 
| boolean | isStopping() | 
| void | start() | 
| void | stop() | 
public static final org.apache.commons.logging.Log LOG
public static final String LENS_SERVICES_NAME
public static final String SERVER_STATE_PERSISTENCE_ERRORS
public LensServices(String name, @NonNull LogSegregationContext logSegregationContext)
name - the namepublic void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
init in interface org.apache.hive.service.Serviceinit in class org.apache.hive.service.CompositeServicepublic void start()
start in interface org.apache.hive.service.Servicestart in class org.apache.hive.service.CompositeServicepublic void stop()
stop in interface org.apache.hive.service.Servicestop in class org.apache.hive.service.CompositeServicepublic org.apache.hive.service.Service.STATE getServiceState()
getServiceState in interface org.apache.hive.service.ServicegetServiceState in class org.apache.hive.service.AbstractServicepublic boolean isStopping()
public static LensServices get()
public <T extends org.apache.hive.service.Service> T getService(String sName)
ServiceProvidergetService in interface ServiceProviderT - the generic typesName - the s namepublic List<LensService> getLensServices()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.