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

org.apache.lens.server.api.events
Interface LensEventListener<T extends LensEvent>

Type Parameters:
T - the generic type
All Known Implementing Classes:
AsyncEventListener, LogStatisticsStore, MetricsServiceImpl.AsyncQueryStatusListener, QueryEndNotifier, QueryExecutionServiceImpl.QueryStatusLogger, QueryExecutionStatisticsGenerator, ResultFormatter, StatisticsLogPartitionHandler, StatisticsStore

public interface LensEventListener<T extends LensEvent>

The handler method should not block so that the event service can proceed to notifying other listeners as soon as possible. Any resource intensive computation related to the event must be done offline.

See Also:
LensEvent

Field Summary
static String HANDLER_METHOD_NAME
          The Constant HANDLER_METHOD_NAME.
 
Method Summary
 void onEvent(T event)
          On event.
 

Field Detail

HANDLER_METHOD_NAME

static final String HANDLER_METHOD_NAME
The Constant HANDLER_METHOD_NAME.

See Also:
Constant Field Values
Method Detail

onEvent

void onEvent(T event)
             throws LensException
On event.

Parameters:
event - the event
Throws:
LensException - the lens exception


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