Package de.zib.scalaris.examples.wikipedia

Examples of de.zib.scalaris.examples.wikipedia.SavePageResult


            String timestamp = Revision.calendarToString(Calendar.getInstance(TimeZone.getTimeZone("UTC")));
            int newRevId = (oldVersion == -1) ? 1 : oldVersion + 1;
            Revision newRev = new Revision(newRevId, timestamp, minorChange, contributor, summary);
            newRev.setUnpackedText(content);

            SavePageResult result;
            int retries = 0;
            while (true) {
                result = savePage(connection, title, newRev, oldVersion, null, siteinfo, "", namespace);
                page.addStats(result.stats);
                if (!result.success && retries < Options.WIKI_SAVEPAGE_RETRIES) {
View Full Code Here

TOP

Related Classes of de.zib.scalaris.examples.wikipedia.SavePageResult

Copyright © 2018 www.massapicom. 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.