List < MwDumpFile > findDumpsOnline ( DumpContentType dumpContentType ) { List < String > dumpFileDates = findDumpDatesOnline ( dumpContentType ) ; List < MwDumpFile > result = new ArrayList <> ( ) ; for ( String dateStamp : dumpFileDates ) { if ( dumpContentType == DumpContentType . DAILY ) { result . add ( new WmfOnlineDailyDumpFile ( dateStamp , this . projectName , this . webResourceFetcher , this . dumpfileDirectoryManager ) ) ; } else if ( dumpContentType == DumpContentType . JSON ) { result . add ( new JsonOnlineDumpFile ( dateStamp , this . projectName , this . webResourceFetcher , this . dumpfileDirectoryManager ) ) ; } else { result . add ( new WmfOnlineStandardDumpFile ( dateStamp , this . projectName , this . webResourceFetcher , this . dumpfileDirectoryManager , dumpContentType ) ) ; } } logger . info ( "Found " + result . size ( ) + " online dumps of type " + dumpContentType + ": " + result ) ; return result ; }
Finds out which dump files of the given type are available for download . The result is a list of objects that describe the available dump files in descending order by their date . Not all of the dumps included might be actually available .