Interface OperationReport
public interface OperationReport
Summary report for a
Configurator.commit(String, String...).
This code is experimental. While this class is functional and tested, it may change or be removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if any tasks failed, causing failure results.An immutable list of Results that failed.Method to retrieve a specific task result from the report.booleanIndicates if the transaction completed successfully with all tasks committing their changes.voidUsed internally to populate the report.
-
Method Details
-
hasTransactionSucceeded
boolean hasTransactionSucceeded()Indicates if the transaction completed successfully with all tasks committing their changes.- Returns:
- true if the transaction completed; else, false
-
getResult
Method to retrieve a specific task result from the report.- Parameters:
key- the UUID key returned from an initial setup call for aConfiguratortask- Returns:
- the result of the task
-
getFailedResults
An immutable list of Results that failed.- Returns:
- an immutable list of failed results. It is an implementor's responsibility to ensure that the collection is unmodifiable.
-
containsFailedResults
boolean containsFailedResults()Returns true if any tasks failed, causing failure results.- Returns:
- true if any failures present; else, false
-
putResult
Used internally to populate the report. Clients should not call this method directly.- Parameters:
key- the unique key of an operationresult- the result of the operation
-