Class ScoUtil

  • All Implemented Interfaces:

    
    public class ScoUtil
    
                        

    Utility class for SCO processing.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean hasFinalReport(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.
      boolean isFinalReport(OperationInvokedReport.ReportPart reportPart) Checks whether a report is a final report or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.