public class LensServices extends org.apache.hive.service.CompositeService implements ServiceProvider
Modifier and Type | Class and Description |
---|---|
static class |
LensServices.SERVICE_MODE
The Enum SERVICE_MODE.
|
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.SERVICE_MODE |
getServiceMode()
The service mode.
|
org.apache.hive.service.Service.STATE |
getServiceState() |
void |
init(org.apache.hadoop.hive.conf.HiveConf hiveConf) |
boolean |
isStopping() |
void |
setServiceMode(LensServices.SERVICE_MODE 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 void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
init
in interface org.apache.hive.service.Service
init
in class org.apache.hive.service.CompositeService
public void start()
start
in interface org.apache.hive.service.Service
start
in class org.apache.hive.service.CompositeService
public void stop()
stop
in interface org.apache.hive.service.Service
stop
in class org.apache.hive.service.CompositeService
public org.apache.hive.service.Service.STATE getServiceState()
getServiceState
in interface org.apache.hive.service.Service
getServiceState
in class org.apache.hive.service.AbstractService
public boolean isStopping()
public static LensServices get()
public <T extends org.apache.hive.service.Service> T getService(String sName)
ServiceProvider
getService
in interface ServiceProvider
T
- the generic typesName
- the s namepublic List<BaseLensService> getLensServices()
@Generated(value="lombok") public LensServices.SERVICE_MODE getServiceMode()
@Generated(value="lombok") public void setServiceMode(LensServices.SERVICE_MODE serviceMode)
@Generated(value="lombok") public ErrorCollection getErrorCollection()
@Generated(value="lombok") public LogSegregationContext getLogSegregationContext()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.