public class OperationReportImpl extends Object implements OperationReport
Constructor and Description |
---|
OperationReportImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsFailedResults()
Returns true if any tasks failed, causing failure results.
|
List<Result> |
getFailedResults()
An immutable list of Results that failed.
|
Result |
getResult(UUID key)
Method to retrieve a specific task result from the report.
|
boolean |
hasTransactionSucceeded()
Indicates if the transaction completed successfully with all tasks committing their changes.
|
void |
putResult(UUID key,
Result result)
Used internally to populate the report.
|
public boolean hasTransactionSucceeded()
OperationReport
hasTransactionSucceeded
in interface OperationReport
public Result getResult(UUID key)
OperationReport
getResult
in interface OperationReport
key
- the UUID key returned from an initial setup call for a Configurator
taskpublic List<Result> getFailedResults()
OperationReport
getFailedResults
in interface OperationReport
public boolean containsFailedResults()
OperationReport
containsFailedResults
in interface OperationReport
public void putResult(UUID key, Result result)
OperationReport
putResult
in interface OperationReport
key
- the unique key of an operationresult
- the result of the operationThis work is licensed under a Creative Commons Attribution 4.0 International License.