public class LensServices extends org.apache.hive.service.CompositeService implements ServiceProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
LensServices.ServiceMode
The Enum ServiceMode.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
LENS_SERVICES_NAME
The Constant LENS_SERVICES_NAME.
|
static String |
SERVER_STATE_PERSISTENCE_ERRORS
The 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.
|
ErrorCollection |
getErrorCollection() |
List<BaseLensService> |
getLensServices() |
LogSegregationContext |
getLogSegregationContext() |
<T extends org.apache.hive.service.Service> |
getService(String sName)
Get an instance of a service by its name.
|
LensServices.ServiceMode |
getServiceMode()
The service mode.
|
org.apache.hive.service.Service.STATE |
getServiceState() |
void |
init(org.apache.hadoop.hive.conf.HiveConf hiveConf) |
boolean |
isStopping() |
static LensException |
processLensException(LensException exc) |
static void |
setInstance(LensServices newInstance) |
void |
setServiceMode(LensServices.ServiceMode serviceMode)
The service mode.
|
void |
start() |
void |
stop() |
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 static LensException processLensException(LensException exc)
public static void setInstance(LensServices newInstance)
public 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<BaseLensService> getLensServices()
@Generated(value="lombok") public LensServices.ServiceMode getServiceMode()
@Generated(value="lombok") public void setServiceMode(LensServices.ServiceMode serviceMode)
@Generated(value="lombok") public ErrorCollection getErrorCollection()
@Generated(value="lombok") public LogSegregationContext getLogSegregationContext()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.