This project has retired. For details please refer to its Attic page.
DatabaseResourceService (Lens 2.1.0-beta-incubating API)

org.apache.lens.server.session
Class DatabaseResourceService

java.lang.Object
  extended by org.apache.hive.service.AbstractService
      extended by 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 Class Summary
 
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
           
 
Constructor Summary
DatabaseResourceService(String name)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.hive.service.AbstractService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

DatabaseResourceService

public DatabaseResourceService(String name)
Method Detail

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.