Class GetMetadataArchiveBatchJob

    • Constructor Detail

      • GetMetadataArchiveBatchJob

        public GetMetadataArchiveBatchJob​(Pattern urlMatcher,
                                          Pattern mimeMatcher)
        Constructor.
        Parameters:
        urlMatcher - A pattern for matching URLs of the desired entries. If null, a .* pattern will be used.
        mimeMatcher - A pattern for matching mime-types of the desired entries. If null, a .* pattern will be used.

        The batchJobTimeout is set to one day.

    • Method Detail

      • initialize

        public void initialize​(OutputStream os)
        Initialize method. Run before the arc-records are being processed. Currently does nothing.
        Specified by:
        initialize in class ArchiveBatchJobBase
        Parameters:
        os - The output stream to print any pre-processing data.
      • processRecord

        public void processRecord​(ArchiveRecordBase record,
                                  OutputStream os)
                           throws IOFailure
        The method for processing the arc-records.
        Specified by:
        processRecord in class ArchiveBatchJob
        Parameters:
        record - The arc-record to process.
        os - The output stream to write the results of the processing.
        Throws:
        IOFailure - If an IOException is caught during handling of the arc record.
      • finish

        public void finish​(OutputStream os)
        Method for post-processing the data. Currently does nothing.
        Specified by:
        finish in class ArchiveBatchJobBase
        Parameters:
        os - The output stream to write the results of the post-processing data.
      • toString

        public String toString()
        Humanly readable description of this instance.
        Overrides:
        toString in class Object
        Returns:
        The human readable description of this instance.