org.apache.lens.server.session
Class DatabaseResourceService
java.lang.Object
org.apache.hive.service.AbstractService
org.apache.lens.server.session.DatabaseResourceService
- All Implemented Interfaces:
- org.apache.hive.service.Service
public class DatabaseResourceService
- extends org.apache.hive.service.AbstractService
Service to maintain DB specific static jars. This service is managed by HiveSessionService.
Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
org.apache.hive.service.Service.STATE |
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
static String |
NAME
|
Methods inherited from class org.apache.hive.service.AbstractService |
getHiveConf, getName, getServiceState, getStartTime, register, unregister |
LOG
public static final org.apache.commons.logging.Log LOG
NAME
public static final String NAME
- See Also:
- Constant Field Values
DatabaseResourceService
public DatabaseResourceService(String name)
init
public void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
- Specified by:
init
in interface org.apache.hive.service.Service
- Overrides:
init
in class org.apache.hive.service.AbstractService
start
public void start()
- Specified by:
start
in interface org.apache.hive.service.Service
- Overrides:
start
in class org.apache.hive.service.AbstractService
stop
public void stop()
- Specified by:
stop
in interface org.apache.hive.service.Service
- Overrides:
stop
in class org.apache.hive.service.AbstractService
loadResources
public void loadResources()
throws LensException
- Load DB specific resources
- Throws:
LensException
getResourcesForDatabase
public Collection<LensSessionImpl.ResourceEntry> getResourcesForDatabase(String database)
- Get resources added statically to the database
- Parameters:
database
-
- Returns:
- resources added to the database, or null if no resources are noted for this database
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.