org.apache.lens.server.api.query
Class QueryEvent<T>

java.lang.Object
  extended by org.apache.lens.server.api.events.LensEvent
      extended by org.apache.lens.server.api.query.QueryEvent<T>
Type Parameters:
T - Type of changed information about the query
Direct Known Subclasses:
PriorityChange, QueryAccepted, QueryRejected, QueuePositionChange, StatusChange

public abstract class QueryEvent<T>
extends LensEvent

A generic event related to state change of a query Subclasses must declare the specific type of change they are interested in.

Every event will have an ID, which should be used by listeners to check if the event is already received.


Constructor Summary
QueryEvent(long eventTime, T prev, T current, QueryHandle handle)
          Instantiates a new query event.
 
Method Summary
 String getEventId()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryEvent

public QueryEvent(long eventTime,
                  T prev,
                  T current,
                  QueryHandle handle)
Instantiates a new query event.

Parameters:
eventTime - the event time
prev - the prev
current - the current
handle - the handle
Method Detail

getEventId

public String getEventId()
Specified by:
getEventId in class LensEvent

toString

public String toString()
Overrides:
toString in class Object


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