public class DatabaseResourceService
extends org.apache.hive.service.AbstractService
Modifier and Type | Field and Description |
---|---|
static String |
LOAD_RESOURCES_ERRORS
The Constant LOAD_RESOURCES_ERRORS.
|
static String |
NAME |
Constructor and Description |
---|
DatabaseResourceService(String name) |
Modifier and Type | Method and Description |
---|---|
Collection<LensSessionImpl.ResourceEntry> |
getResourcesForDatabase(String database)
Get resources added statically to the database
|
void |
init(org.apache.hadoop.hive.conf.HiveConf hiveConf) |
void |
loadResources()
Load DB specific resources
|
void |
start() |
void |
stop() |
public static final String NAME
public static final String LOAD_RESOURCES_ERRORS
public DatabaseResourceService(String name)
public void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
init
in interface org.apache.hive.service.Service
init
in class org.apache.hive.service.AbstractService
public void start()
start
in interface org.apache.hive.service.Service
start
in class org.apache.hive.service.AbstractService
public void stop()
stop
in interface org.apache.hive.service.Service
stop
in class org.apache.hive.service.AbstractService
public void loadResources()
public Collection<LensSessionImpl.ResourceEntry> getResourcesForDatabase(String database)
database
- dbCopyright © 2014–2015 Apache Software Foundation. All rights reserved.