org.apache.lens.server
Class MetricsServiceImpl.AsyncQueryStatusListener

java.lang.Object
  extended by org.apache.lens.server.api.events.AsyncEventListener<StatusChange>
      extended by org.apache.lens.server.MetricsServiceImpl.AsyncQueryStatusListener
All Implemented Interfaces:
LensEventListener<StatusChange>
Enclosing class:
MetricsServiceImpl

public class MetricsServiceImpl.AsyncQueryStatusListener
extends AsyncEventListener<StatusChange>

The listener interface for receiving asyncQueryStatus events. The class that is interested in processing a asyncQueryStatus event implements this interface, and the object created with that class is registered with a component using the component's addAsyncQueryStatusListener method. When the asyncQueryStatus event occurs, that object's appropriate method is invoked.

See Also:
AsyncQueryStatusEvent

Field Summary
 
Fields inherited from class org.apache.lens.server.api.events.AsyncEventListener
eventQueue, processor
 
Fields inherited from interface org.apache.lens.server.api.events.LensEventListener
HANDLER_METHOD_NAME
 
Constructor Summary
MetricsServiceImpl.AsyncQueryStatusListener()
           
 
Method Summary
 void process(StatusChange event)
           
protected  void processCurrentStatus(org.apache.lens.api.query.QueryStatus.Status currentValue)
          Process current status.
 
Methods inherited from class org.apache.lens.server.api.events.AsyncEventListener
getEventQueue, onEvent, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsServiceImpl.AsyncQueryStatusListener

public MetricsServiceImpl.AsyncQueryStatusListener()
Method Detail

process

public void process(StatusChange event)
Specified by:
process in class AsyncEventListener<StatusChange>

processCurrentStatus

protected void processCurrentStatus(org.apache.lens.api.query.QueryStatus.Status currentValue)
Process current status.

Parameters:
currentValue - the current value


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