org.apache.lens.server.stats.store
Class StatisticsStore<T extends LensStatistics>

java.lang.Object
  extended by org.apache.lens.server.api.events.AsyncEventListener<T>
      extended by org.apache.lens.server.stats.store.StatisticsStore<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
LensEventListener<T>
Direct Known Subclasses:
LogStatisticsStore

public abstract class StatisticsStore<T extends LensStatistics>
extends AsyncEventListener<T>

Top level class used to persist the Statistics event.


Field Summary
 
Fields inherited from interface org.apache.lens.server.api.events.LensEventListener
HANDLER_METHOD_NAME
 
Constructor Summary
StatisticsStore()
           
 
Method Summary
abstract  void initialize(org.apache.hadoop.conf.Configuration conf)
          Initialize the store.
 void start(LensEventService service)
          Start the Store.
 void stop(LensEventService service)
          Stop the store.
 
Methods inherited from class org.apache.lens.server.api.events.AsyncEventListener
getEventQueue, onEvent, process, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsStore

public StatisticsStore()
Method Detail

initialize

public abstract void initialize(org.apache.hadoop.conf.Configuration conf)
Initialize the store.

Parameters:
conf - configuration for the store

start

public void start(LensEventService service)
Start the Store.

Parameters:
service - the service

stop

public void stop(LensEventService service)
Stop the store.

Parameters:
service - the service


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