org.apache.lens.api.query
Class QueryStatus

java.lang.Object
  extended by org.apache.lens.api.query.QueryStatus
All Implemented Interfaces:
Serializable

public class QueryStatus
extends Object
implements Serializable

The Class QueryStatus.

See Also:
Serialized Form

Nested Class Summary
static class QueryStatus.Status
          The Enum Status.
 
Constructor Summary
QueryStatus()
           
 
Method Summary
 boolean isFinished()
           
 boolean isValidateTransition(QueryStatus.Status newState)
          Checks if is validate transition.
static boolean isValidTransition(QueryStatus.Status oldState, QueryStatus.Status newState)
          Checks if is valid transition.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryStatus

public QueryStatus()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isFinished

public boolean isFinished()

isValidTransition

public static boolean isValidTransition(QueryStatus.Status oldState,
                                        QueryStatus.Status newState)
Checks if is valid transition.

Parameters:
oldState - the old state
newState - the new state
Returns:
true, if is valid transition

isValidateTransition

public boolean isValidateTransition(QueryStatus.Status newState)
Checks if is validate transition.

Parameters:
newState - the new state
Returns:
true, if is validate transition


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