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

org.apache.lens.server
Class LensServices

java.lang.Object
  extended by org.apache.hive.service.AbstractService
      extended by org.apache.hive.service.CompositeService
          extended by org.apache.lens.server.LensServices
All Implemented Interfaces:
org.apache.hive.service.Service, ServiceProvider

public class LensServices
extends org.apache.hive.service.CompositeService
implements ServiceProvider

Manage lifecycle of all Lens services


Nested Class Summary
static class LensServices.SERVICE_MODE
          The Enum SERVICE_MODE.
 
Nested classes/interfaces inherited from class org.apache.hive.service.CompositeService
org.apache.hive.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hive.service.Service
org.apache.hive.service.Service.STATE
 
Field Summary
static String LENS_SERVICES_NAME
          The Constant LENS_SERVICES_NAME.
static org.apache.commons.logging.Log LOG
          The Constant LOG.
 
Constructor Summary
LensServices(String name)
          Instantiates a new lens services.
 
Method Summary
static LensServices get()
          Gets the.
 List<LensService> getLensServices()
           
<T extends org.apache.hive.service.Service>
T
getService(String sName)
          Get an instance of a service by its name.
 org.apache.hive.service.Service.STATE getServiceState()
           
 void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
           
 boolean isStopping()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.hive.service.CompositeService
getServices
 
Methods inherited from class org.apache.hive.service.AbstractService
getHiveConf, getName, 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
The Constant LOG.


LENS_SERVICES_NAME

public static final String LENS_SERVICES_NAME
The Constant LENS_SERVICES_NAME.

See Also:
Constant Field Values
Constructor Detail

LensServices

public LensServices(String name)
Instantiates a new lens services.

Parameters:
name - the 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.CompositeService

start

public void start()
Specified by:
start in interface org.apache.hive.service.Service
Overrides:
start in class org.apache.hive.service.CompositeService

stop

public void stop()
Specified by:
stop in interface org.apache.hive.service.Service
Overrides:
stop in class org.apache.hive.service.CompositeService

getServiceState

public org.apache.hive.service.Service.STATE getServiceState()
Specified by:
getServiceState in interface org.apache.hive.service.Service
Overrides:
getServiceState in class org.apache.hive.service.AbstractService

isStopping

public boolean isStopping()

get

public static LensServices get()
Gets the.

Returns:
the lens services

getService

public <T extends org.apache.hive.service.Service> T getService(String sName)
Description copied from interface: ServiceProvider
Get an instance of a service by its name.

Specified by:
getService in interface ServiceProvider
Type Parameters:
T - the generic type
Parameters:
sName - the s name
Returns:
the service

getLensServices

public List<LensService> getLensServices()


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.