Package com.tibco.ep.testing.framework
Class Results
- java.lang.Object
-
- com.tibco.ep.testing.framework.Results
-
public final class Results extends Object
Result from an administration command
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
error()
Deprecated.Warning: this method excludes errors when the command returns more than one error usegetErrorMessages()
insteadList<com.tibco.ep.dtm.management.DtmResults>
getCommandResults()
Get all resultsList<Message>
getCommandStatusMessages()
Get list of status messagesList<Message>
getErrorMessages()
Return the error messages of the commandOptional<List<String>>
getStatusMessages()
Deprecated.Warning: this method excludes the source of each status usegetCommandStatusMessages()
insteadString
prettyPrint()
Pretty print the service name, command, parameters, return code, status messages, error messages, and results.int
returnCode()
Return the return code of the commandOptional<com.tibco.ep.dtm.management.DtmResults>
toDtmResults()
Deprecated.Warning: this method excludes results when the command returns more than one result set usegetCommandResults()
insteadString
toString()
Convert results set to a simple string
-
-
-
Method Detail
-
getCommandResults
public List<com.tibco.ep.dtm.management.DtmResults> getCommandResults()
Get all results
- Returns:
- List of results. If no results, list will be of zero length.
-
returnCode
public int returnCode()
Return the return code of the command
- DtmCommand.COMMAND_SUCCEEDED - Return code indicating command succeeded
- DtmCommand.COMMAND_CANCELED - Return code indicating command was canceled
- DtmCommand.COMMAND_WAIT_TIMEDOUT - Return code indicating command wait timed out
- Returns:
- return code
-
getErrorMessages
public List<Message> getErrorMessages()
Return the error messages of the command
- Returns:
- List of error messages. If no errors, list will be of zero length.
-
getCommandStatusMessages
public List<Message> getCommandStatusMessages()
Get list of status messages
- Returns:
- List of status messages. If no errors, list will be of zero length.
-
toString
public String toString()
Convert results set to a simple string
-
prettyPrint
public String prettyPrint()
Pretty print the service name, command, parameters, return code, status messages, error messages, and results.- Returns:
- Formatted results.
-
toDtmResults
@Deprecated public Optional<com.tibco.ep.dtm.management.DtmResults> toDtmResults()
Deprecated.Warning: this method excludes results when the command returns more than one result set usegetCommandResults()
insteadConvert last results set to DtmResults
- Returns:
- results set
-
error
@Deprecated public String error()
Deprecated.Warning: this method excludes errors when the command returns more than one error usegetErrorMessages()
insteadReturn the last error message of the command
- Returns:
- error message - null on no error
-
getStatusMessages
@Deprecated public Optional<List<String>> getStatusMessages()
Deprecated.Warning: this method excludes the source of each status usegetCommandStatusMessages()
insteadGet list of status messages
- Returns:
- list of status messages
-
-