Package net.yacy.document.importer

Examples of net.yacy.document.importer.OAIPMHLoader.nextInt()


                Random r = new Random(System.currentTimeMillis());
               
                // start jobs for the sources
                DigestURI url = null;
                while (sourceList.size() > 0) {
                    String oaipmhurl = sourceList.remove(r.nextInt(sourceList.size()));
                    try {
                        url = new DigestURI(oaipmhurl);
                        OAIPMHImporter job = new OAIPMHImporter(sb.loader, url);
                        job.start();
                    } catch (MalformedURLException e) {
View Full Code Here


                final Random r = new Random(System.currentTimeMillis());

                // start jobs for the sources
                DigestURI url = null;
                while (sourceList.size() > 0) {
                    final String oaipmhurl = sourceList.remove(r.nextInt(sourceList.size()));
                    try {
                        url = new DigestURI(oaipmhurl);
                        final OAIPMHImporter job = new OAIPMHImporter(sb.loader, url);
                        job.start();
                    } catch (final MalformedURLException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.