Interface TransferSummaryReport

  • All Known Implementing Classes:
    TransferSummaryReportImpl

    public interface TransferSummaryReport
    Used to log relevant changes to transfered files into a summary report of the entire replication job; It should log: created files, deleted, moved, *modified files and relevant errors while handling the files; *modified: each implementation would chose the definition of modified(actual content modification/ new version/ some properties updated)
    • Method Detail

      • logSummaryCreated

        void logSummaryCreated​(NodeRef sourceNode,
                               NodeRef destNode,
                               NodeRef newParent,
                               String newPath,
                               boolean orphan)
        Log the creation of a new node
        Parameters:
        sourceNode - NodeRef
        destNode - NodeRef
        newParent - NodeRef
        newPath - String
        orphan - boolean
      • logSummaryUpdated

        void logSummaryUpdated​(NodeRef sourceNode,
                               NodeRef destNode,
                               String path)
        Log the creation of a new node
        Parameters:
        sourceNode - NodeRef
        destNode - NodeRef
        path - The path of the updated node
      • logSummaryDeleted

        void logSummaryDeleted​(NodeRef sourceNode,
                               NodeRef destNode,
                               String path)
        Log the deletion of a node
        Parameters:
        sourceNode - NodeRef
        destNode - NodeRef
        path - The path of the updated node
      • logSummaryMoved

        void logSummaryMoved​(NodeRef sourceNodeRef,
                             NodeRef destNodeRef,
                             String oldPath,
                             NodeRef newParent,
                             String newPath)
        After the transfer has completed this method reads the log.
        Parameters:
        sourceNodeRef - NodeRef
        destNodeRef - NodeRef
        oldPath - String
        newParent - NodeRef
        newPath - String
      • finishSummaryReport

        void finishSummaryReport()
        called to close the report file