public class QueryStatus extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
QueryStatus.Status
The Enum Status.
|
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 |
failed() |
boolean |
finished() |
Integer |
getErrorCode() |
String |
getErrorMessage()
The error message.
|
String |
getLensErrorTOErrorMsg() |
double |
getProgress()
The progress.
|
String |
getProgressMessage()
The progress message.
|
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.
|
String |
toString() |
@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 launched()
public boolean running()
public boolean queued()
public boolean failed()
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()
@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)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.