Class TransferReporterImpl

    • Constructor Detail

      • TransferReporterImpl

        public TransferReporterImpl()
    • Method Detail

      • init

        public void init()
      • createDestinationTransferReport

        public NodeRef createDestinationTransferReport​(TransferTarget target)
      • createTransferReport

        public NodeRef createTransferReport​(String transferName,
                                            Exception e,
                                            TransferTarget target,
                                            TransferDefinition definition,
                                            List<TransferEvent> events,
                                            File snapshotFile)
        Write exception transfer report
        Specified by:
        createTransferReport in interface TransferReporter
        Parameters:
        transferName - - the unique name of this transfer - probably based upon the time of transfer.
        e - the exception
        target - the target of the transfer
        definition - the definition of the transfer
        snapshotFile - the snapshot file
        Returns:
        NodeRef the node ref of the new transfer report
      • createTransferReport

        public NodeRef createTransferReport​(String transferName,
                                            Transfer transfer,
                                            TransferTarget target,
                                            TransferDefinition definition,
                                            List<TransferEvent> events,
                                            File snapshotFile)
        Create a new transfer report of success
        Specified by:
        createTransferReport in interface TransferReporter
        Parameters:
        transferName - - the unique name of this transfer - probably based upon the time of transfer.
        transfer - the transfer.
        target - the target of the transfer
        definition - the definition of the transfer
        events - the transfer events generated by the transfer.
        snapshotFile - the snapshot file
        Returns:
        NodeRef the node ref of the new transfer report
      • writeDestinationReport

        public NodeRef writeDestinationReport​(String transferName,
                                              TransferTarget target,
                                              File tempFile)
        Description copied from interface: TransferReporter
        Write the destination transfer report into the local repo.
        Specified by:
        writeDestinationReport in interface TransferReporter
        Parameters:
        transferName - the unique name of this transfer - probably based upon the time of transfer.
        target - the target of the transfer
        tempFile - the temporary file containing the contents of the destination side transfer report.
        Returns:
        the node ref of the transfer report
      • setNodeService

        public void setNodeService​(NodeService nodeService)
      • setContentService

        public void setContentService​(ContentService contentService)