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

org.apache.lens.server.api.query
Class QueryEnded

java.lang.Object
  extended by org.apache.lens.server.api.events.LensEvent
      extended by org.apache.lens.server.api.query.QueryEvent<QueryStatus.Status>
          extended by org.apache.lens.server.api.query.StatusChange
              extended by org.apache.lens.server.api.query.QueryEnded
Direct Known Subclasses:
QueryCancelled, QueryClosed, QueryFailed, QuerySuccess

public class QueryEnded
extends StatusChange

Generic event denoting that query has ended. If a listener wants to just be notified when query has ended irrespective of its success or failure, then that listener can subscribe for this event type


Field Summary
static EnumSet<QueryStatus.Status> END_STATES
          The Constant END_STATES.
 
Constructor Summary
QueryEnded(long eventTime, QueryStatus.Status prev, QueryStatus.Status current, QueryHandle handle, String user, String cause)
          Instantiates a new query ended.
 
Method Summary
 
Methods inherited from class org.apache.lens.server.api.query.QueryEvent
getEventId, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

END_STATES

public static final EnumSet<QueryStatus.Status> END_STATES
The Constant END_STATES.

Constructor Detail

QueryEnded

public QueryEnded(long eventTime,
                  QueryStatus.Status prev,
                  QueryStatus.Status current,
                  QueryHandle handle,
                  String user,
                  String cause)
Instantiates a new query ended.

Parameters:
eventTime - the event time
prev - the prev
current - the current
handle - the handle
user - the user
cause - the cause


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