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.Serviceinit in class org.apache.hive.service.AbstractServicepublic void start()
start in interface org.apache.hive.service.Servicestart in class org.apache.hive.service.AbstractServicepublic void stop()
stop in interface org.apache.hive.service.Servicestop in class org.apache.hive.service.AbstractServicepublic void loadResources()
public Collection<LensSessionImpl.ResourceEntry> getResourcesForDatabase(String database)
database - dbCopyright © 2014–2016 Apache Software Foundation. All rights reserved.