Class PayloadReconciliation


  • public class PayloadReconciliation
    extends java.lang.Object
    Implements an algorithm to scan the offload persistence store and check that the RDBMS contains the corresponding record. As the RDBMS is the source of truth, any records in the persistence store without a corresponding record in the RDBMS should be deleted.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String run​(java.lang.String continuationToken)
      Run the reconciliation process
      • Methods inherited from class java.lang.Object

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

      • PayloadReconciliation

        public PayloadReconciliation​(java.lang.String tenantId,
                                     java.lang.String dsId,
                                     DatabaseSupport dbSupport,
                                     ResourceTypeMaps resourceTypeMaps,
                                     boolean dryRun,
                                     int maxScanSeconds)
        Public constructor
        Parameters:
        tenantId -
        dsId -
        dbSupport -
        resourceTypeMaps -
        dryRun -
        maxScanSeconds -
    • Method Detail

      • run

        public java.lang.String run​(java.lang.String continuationToken)
                             throws java.lang.Exception
        Run the reconciliation process
        Parameters:
        continuationToken - start from the given point, or the beginning if null
        Returns:
        the continuation token used to start scanning from where we left off
        Throws:
        java.lang.Exception