public class QueryStatus extends ToYAMLString implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
QueryStatus.Status
The Enum Status.
|
ToYAMLString.FieldNameAndValue
Constructor and Description |
---|
QueryStatus(double progress,
Integer queueNumber,
QueryStatus.Status status,
String statusMessage,
boolean isResultSetAvailable,
String progressMessage,
String errorMessage,
LensErrorTO lensErrorTO) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelled() |
boolean |
executed() |
boolean |
failed() |
boolean |
failing() |
boolean |
finished() |
Integer |
getErrorCode() |
String |
getErrorMessage()
The error message.
|
LensErrorTO |
getLensErrorTO() |
String |
getLensErrorTOErrorMsg() |
double |
getProgress()
The progress.
|
String |
getProgressMessage()
The progress message.
|
static QueryStatus |
getQueuedStatus() |
Integer |
getQueueNumber()
Queue number of a query when it is in waiting state.
|
QueryStatus.Status |
getStatus()
The status.
|
String |
getStatusMessage()
The status message.
|
boolean |
isResultSetAvailable()
The is result set available.
|
boolean |
isValidTransition(QueryStatus.Status newState)
Checks if is validate transition.
|
static boolean |
isValidTransition(QueryStatus.Status oldState,
QueryStatus.Status newState)
Checks if is valid transition.
|
boolean |
launched() |
boolean |
queued() |
boolean |
running() |
void |
setErrorMessage(String errorMessage)
The error message.
|
void |
setProgressMessage(String progressMessage)
The progress message.
|
void |
setQueueNumber(Integer queueNumber)
Queue number of a query when it is in waiting state.
|
boolean |
successful() |
append, appendFields, fromXMLString, getFieldsToAppend, toString, toXMLString
@ConstructorProperties(value={"progress","queueNumber","status","statusMessage","isResultSetAvailable","progressMessage","errorMessage","lensErrorTO"}) @Generated(value="lombok") public QueryStatus(double progress, Integer queueNumber, QueryStatus.Status status, String statusMessage, boolean isResultSetAvailable, String progressMessage, String errorMessage, LensErrorTO lensErrorTO)
public boolean finished()
public boolean successful()
public boolean launched()
public boolean running()
public boolean queued()
public boolean failed()
public boolean failing()
public boolean cancelled()
public boolean executed()
public static boolean isValidTransition(QueryStatus.Status oldState, QueryStatus.Status newState)
oldState
- the old statenewState
- the new statepublic boolean isValidTransition(QueryStatus.Status newState)
newState
- the new statepublic Integer getErrorCode()
public String getLensErrorTOErrorMsg()
public static QueryStatus getQueuedStatus()
@Generated(value="lombok") public double getProgress()
@Generated(value="lombok") public Integer getQueueNumber()
@Generated(value="lombok") public void setQueueNumber(Integer queueNumber)
@Generated(value="lombok") public QueryStatus.Status getStatus()
@Generated(value="lombok") public String getStatusMessage()
@Generated(value="lombok") public boolean isResultSetAvailable()
@Generated(value="lombok") public String getProgressMessage()
@Generated(value="lombok") public void setProgressMessage(String progressMessage)
@Generated(value="lombok") public String getErrorMessage()
@Generated(value="lombok") public void setErrorMessage(String errorMessage)
@Generated(value="lombok") public LensErrorTO getLensErrorTO()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.