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,
QueryStatus.Status status,
String statusMessage,
boolean isResultSetAvailable,
String progressMessage,
String errorMessage,
LensErrorTO lensErrorTO) |
Modifier and Type | Method and Description |
---|---|
boolean |
finished() |
Integer |
getErrorCode() |
String |
getErrorMessage()
The error message.
|
String |
getLensErrorTOErrorMsg() |
double |
getProgress()
The progress.
|
String |
getProgressMessage()
The progress message.
|
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.
|
String |
toString() |
@ConstructorProperties(value={"progress","status","statusMessage","isResultSetAvailable","progressMessage","errorMessage","lensErrorTO"}) @Generated(value="lombok") public QueryStatus(double progress, 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 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 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–2015 Apache Software Foundation. All rights reserved.