@Api(allMethods=true) public class CommandResponse extends Object implements Serializable
| Constructor and Description |
|---|
CommandResponse() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getErrorMessages()
Get the list of error messages which occurred when dispatching the command.
|
List<Throwable> |
getErrors()
Get the list of exceptions which are thrown while dispatching the command.
|
List<ExceptionDto> |
getExceptions()
Returns a list of serializable exceptions.
|
long |
getExecutionTime()
Get execution time in milliseconds.
|
String |
getId()
Get the id assigned to this command.
|
boolean |
isError()
Determine whether an error occurred while dispatching the command.
|
void |
setExecutionTime(long executionTime)
Set the execution time in milliseconds for the command.
|
void |
setId(String id)
Set the id assigned to this command.
|
String |
toString()
String to display as command dispatcher trace.
|
public boolean isError()
public String getId()
public void setId(String id)
id - idpublic List<String> getErrorMessages()
public List<Throwable> getErrors()
Throwablespublic long getExecutionTime()
public void setExecutionTime(long executionTime)
executionTime - command execution time in millisecondspublic List<ExceptionDto> getExceptions()
Copyright © 2015 Geosparc. All Rights Reserved.