Package org.somda.sdc.glue.consumer.sco
Class ScoUtil
-
- All Implemented Interfaces:
public class ScoUtilUtility class for SCO processing.
-
-
Method Summary
Modifier and Type Method Description booleanhasFinalReport(Collection<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportParts)Checks if a collection of invocation report parts includes a final report. Optional<Pair<OperationInvokedReport.ReportPart, MdibVersion>>getFinalReport(Collection<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportParts)Finds a final report in a collection of reports. booleanisFinalReport(OperationInvokedReport.ReportPart reportPart)Checks whether a report is a final report or not. -
-
Method Detail
-
hasFinalReport
boolean hasFinalReport(Collection<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportParts)
Checks if a collection of invocation report parts includes a final report.
- Parameters:
reportParts- the collection to skim.- Returns:
true if there is a final report, false otherwise.
-
getFinalReport
Optional<Pair<OperationInvokedReport.ReportPart, MdibVersion>> getFinalReport(Collection<Pair<OperationInvokedReport.ReportPart, MdibVersion>> reportParts)
Finds a final report in a collection of reports.
- Parameters:
reportParts- the collection to skim.- Returns:
first final report part that could be found or empty if no final report exists.
-
isFinalReport
boolean isFinalReport(OperationInvokedReport.ReportPart reportPart)
Checks whether a report is a final report or not.
A report is defined as final if no more reports are expected to be delivered. This applies for
- CNCLLD_MAN
- FIN
- FIN_MOD
- FAIL
- Parameters:
reportPart- the report part to check.- Returns:
true if the report is a final report, otherwise false.
-
-
-
-