Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
new release strategy: the standard release is now built the same way as the pro release a new release type was added: 'embedded' which is the same as the current standard release was this will not have any effect to the next release 0.56, which will still a pro-release on public download the transition the the new release strategy must be done now to enable automatic update by the updated in future releases
orbiter52dd01521803
diff --git a/build.properties b/build.propertiesindex f71aea54f..aeddde5f1 100644--- a/build.properties+++ b/build.properties@@ -3,8 +3,9 @@ javacSource=1.4javacTarget=1.4# Release Configuration-releaseVersion=0.556-releaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz+releaseVersion=0.557+stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz+embReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzproReleaseFile=yacy_pro_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzreleaseFileParentDir=yacyreleaseNr=$Revision$diff --git a/build.xml b/build.xmlindex 53295b769..0c625bdbf 100644--- a/build.xml+++ b/build.xml@@ -155,7 +155,7 @@<!-- YaCy Release Date --><filter token="REPL_DATE" value="${DSTAMP}"/>- <filter token="REPL_RELEASE" value="${releaseFile}"/>+ <filter token="REPL_RELEASE" value="${stdReleaseFile}"/><!-- YaCy Release Version number --><echo message="YaCy Version number: ${releaseVersion}" />@@ -517,9 +517,9 @@<!-- =======================================================================================================making a release file for yacy======================================================================================================= -->-<target name="dist" depends="copyMain4Dist" description="Compiling sources and make a release file ...">+<target name="distEmb" depends="copyMain4Dist" description="make for embedded YaCy (no extra parsers)">- <tar destfile="${release}/${releaseFile}" compression="gzip" defaultexcludes="yes" longfile="fail">+ <tar destfile="${release}/${embReleaseFile}" compression="gzip" defaultexcludes="yes" longfile="fail"><!-- packing all files into a gzipped tar --><tarfileset dir="${release_main}" prefix="${releaseFileParentDir}/" dirmode="${accessRightsDir}" mode="${accessRightsExecutable}">@@ -536,8 +536,33 @@<!-- deleting unneeded files --><delete dir="${release_main}"/></target>++<target name="dist" depends="compileExtensions,copyMain4Dist,copyExt4Dist" description="make for standard YaCy (same as pro)">+ <tar destfile="${release}/${stdReleaseFile}" compression="gzip" defaultexcludes="yes" longfile="fail">++ <!-- packing all files into a gzipped tar -->+ <tarfileset dir="${release_main}" prefix="${releaseFileParentDir}/" dirmode="${accessRightsDir}" mode="${accessRightsExecutable}">+ <include name="**/*.sh"/>+ <include name="**/*.command"/>+ </tarfileset>+ <tarfileset dir="${release_main}" prefix="${releaseFileParentDir}/" dirmode="${accessRightsDir}" mode="${accessRightsFile}" >+ <include name="**/*.*"/>+ <exclude name="**/*.sh"/>+ <exclude name="**/*.command"/>+ </tarfileset>++ <tarfileset dir="${release_ext}" prefix="${releaseFileParentDir}/" dirmode="${accessRightsDir}" mode="${accessRightsFile}" >+ <include name="**/*.*"/>+ </tarfileset>+ </tar>-<target name="distPro" depends="compileExtensions,copyMain4Dist,copyExt4Dist">+ <delete dir="${release_main}"/>+ <delete dir="${release_ext}"/>+ <delete dir="${release}/WINDOWS" failonerror="false" />+ <delete dir="${release}/SPECS" failonerror="false" />+</target>++<target name="distPro" depends="compileExtensions,copyMain4Dist,copyExt4Dist" description="make for standard YaCy"><tar destfile="${release}/${proReleaseFile}" compression="gzip" defaultexcludes="yes" longfile="fail"><!-- packing all files into a gzipped tar -->diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.javaindex 8be4358d5..6f72f749b 100644--- a/htroot/ConfigUpdate_p.java+++ b/htroot/ConfigUpdate_p.java@@ -142,7 +142,7 @@ public class ConfigUpdate_p {int relcount = 0;while (i.hasNext()) {release = (yacyVersion) i.next();- prop.put("candeploy_downloadedreleases_" + relcount + "_name", (release.proRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);+ prop.put("candeploy_downloadedreleases_" + relcount + "_name", (release.fullRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);prop.put("candeploy_downloadedreleases_" + relcount + "_file", release.name);prop.put("candeploy_downloadedreleases_" + relcount + "_selected", (release == dflt) ? "1" : "0");relcount++;@@ -158,7 +158,7 @@ public class ConfigUpdate_p {i = releases.iterator();while (i.hasNext()) {release = (yacyVersion) i.next();- prop.put("candeploy_availreleases_" + relcount + "_name", (release.proRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);+ prop.put("candeploy_availreleases_" + relcount + "_name", (release.fullRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);prop.put("candeploy_availreleases_" + relcount + "_url", release.url.toString());prop.put("candeploy_availreleases_" + relcount + "_selected", "0");relcount++;@@ -170,7 +170,7 @@ public class ConfigUpdate_p {i = releases.iterator();while (i.hasNext()) {release = (yacyVersion) i.next();- prop.put("candeploy_availreleases_" + relcount + "_name", (release.proRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);+ prop.put("candeploy_availreleases_" + relcount + "_name", (release.fullRelease ? "pro" : "standard") + "/" + ((release.mainRelease) ? "main" : "dev") + " " + release.releaseNr + "/" + release.svn);prop.put("candeploy_availreleases_" + relcount + "_url", release.url.toString());prop.put("candeploy_availreleases_" + relcount + "_selected", (release == dflt) ? "1" : "0");relcount++;diff --git a/source/de/anomic/kelondro/kelondroRowCollection.java b/source/de/anomic/kelondro/kelondroRowCollection.javaindex bdb746cd6..bac96567c 100644--- a/source/de/anomic/kelondro/kelondroRowCollection.java+++ b/source/de/anomic/kelondro/kelondroRowCollection.java@@ -250,7 +250,6 @@ public class kelondroRowCollection {set(index, a);}-public synchronized void addUnique(kelondroRow.Entry row) {byte[] r = row.bytes();addUnique(r, 0, r.length);@@ -663,14 +662,26 @@ public class kelondroRowCollection {kelondroRow r = new kelondroRow(new kelondroColumn[]{new kelondroColumn("hash", kelondroColumn.celltype_string, kelondroColumn.encoder_bytes, yacySeedDB.commonHashLength, "hash")},kelondroBase64Order.enhancedCoder, 0);++ kelondroRowCollection a = new kelondroRowCollection(r, testsize);+ System.out.println("kelondroRowCollection test with size = " + testsize);+ long t0 = System.currentTimeMillis();+ random = new Random(0);+ for (int i = 0; i < testsize; i++) a.add(randomHash().getBytes());+ random = new Random(0);+ for (int i = 0; i < testsize; i++) a.add(randomHash().getBytes());+ a.sort();+ a.uniq();+ long t1 = System.currentTimeMillis();+ System.out.println("create a : " + (t1 - t0) + " milliseconds, " + d(testsize, (t1 - t0)) + " entries/millisecond; a.size() = " + a.size());+kelondroRowCollection c = new kelondroRowCollection(r, testsize);- System.out.println("kelondroRowCollection test with size = " + testsize);random = new Random(0);- long t0 = System.currentTimeMillis();+ t0 = System.currentTimeMillis();for (int i = 0; i < testsize; i++) {c.add(randomHash().getBytes());}- long t1 = System.currentTimeMillis();+ t1 = System.currentTimeMillis();System.out.println("create c : " + (t1 - t0) + " milliseconds, " + d(testsize, (t1 - t0)) + " entries/millisecond");kelondroRowCollection d = new kelondroRowCollection(r, testsize);for (int i = 0; i < testsize; i++) {diff --git a/source/de/anomic/plasma/plasmaSearchEvent.java b/source/de/anomic/plasma/plasmaSearchEvent.javaindex de0c93931..30415b759 100644--- a/source/de/anomic/plasma/plasmaSearchEvent.java+++ b/source/de/anomic/plasma/plasmaSearchEvent.java@@ -581,12 +581,12 @@ public final class plasmaSearchEvent {long sleeptime = Math.min(600, this.eventTime + (this.query.maximumTime / this.query.displayResults() * ((item % this.query.displayResults()) + 1)) - System.currentTimeMillis());if (this.resultList.size() <= item + 10) sleeptime = Math.min(sleeptime + 300, 600);if (sleeptime > 0) try {Thread.sleep(sleeptime);} catch (InterruptedException e) {}- System.out.println("+++DEBUG-oneResult+++ (1) sleeping " + sleeptime);+ //System.out.println("+++DEBUG-oneResult+++ (1) sleeping " + sleeptime);// then sleep until any result is available (that should not happen)while ((this.resultList.size() <= item) && (anyWorkerAlive())) {try {Thread.sleep(100);} catch (InterruptedException e) {}- System.out.println("+++DEBUG-oneResult+++ (2) sleeping " + 100);+ //System.out.println("+++DEBUG-oneResult+++ (2) sleeping " + 100);}}diff --git a/source/de/anomic/yacy/yacyVersion.java b/source/de/anomic/yacy/yacyVersion.javaindex e269a63a3..f9c13dd8a 100644--- a/source/de/anomic/yacy/yacyVersion.java+++ b/source/de/anomic/yacy/yacyVersion.java@@ -54,6 +54,7 @@ public final class yacyVersion implements Comparator, Comparable {public static final float YACY_ACCEPTS_RANKING_TRANSMISSION = (float) 0.414;public static final float YACY_HANDLES_COLLECTION_INDEX = (float) 0.486;public static final float YACY_POVIDES_REMOTECRAWL_LISTS = (float) 0.550;+ public static final float YACY_STANDARDREL_IS_PRO = (float) 0.557;// information about latest release, retrieved by other peers release versionpublic static double latestRelease = 0.1; // this value is overwritten when a peer with later version appears@@ -71,7 +72,7 @@ public final class yacyVersion implements Comparator, Comparable {public float releaseNr;public String dateStamp;public int svn;- public boolean proRelease, mainRelease;+ public boolean fullRelease, mainRelease;public yacyURL url;public String name;@@ -94,10 +95,13 @@ public final class yacyVersion implements Comparator, Comparable {// cut off tailrelease = release.substring(0, release.length() - 7);if (release.startsWith("yacy_pro_v")) {- proRelease = true;+ fullRelease = true;+ release = release.substring(10);+ } else if (release.startsWith("yacy_emb_v")) {+ fullRelease = false;release = release.substring(10);} else if (release.startsWith("yacy_v")) {- proRelease = false;+ fullRelease = false;release = release.substring(6);} else {throw new RuntimeException("release file name '" + release + "' is not valid, wrong prefix");@@ -124,6 +128,10 @@ public final class yacyVersion implements Comparator, Comparable {} catch (NumberFormatException e) {throw new RuntimeException("release file name '" + release + "' is not valid, '" + comp[2] + "' should be a integer number");}+ if ((this.releaseNr > YACY_STANDARDREL_IS_PRO) && (release.startsWith("yacy_v"))) {+ // patch for new release strategy+ this.fullRelease = true;+ }// finished! we parsed a relase string}@@ -152,7 +160,7 @@ public final class yacyVersion implements Comparator, Comparable {public String toAnchor() {// generates an anchor string that can be used to embed in an html for direct download- return "<a href=" + this.url.toNormalform(true, true) + ">YaCy " + ((this.proRelease) ? "pro release" : "standard release") + " v" + this.releaseNr + ", SVN " + this.svn + "</a>";+ return "<a href=" + this.url.toNormalform(true, true) + ">YaCy " + ((this.fullRelease) ? "standard/full release" : "embedded release") + " v" + this.releaseNr + ", SVN " + this.svn + "</a>";}// static methods:@@ -161,9 +169,9 @@ public final class yacyVersion implements Comparator, Comparable {// construct a virtual release name for this releaseif (thisVersion == null) {plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard();- boolean pro = new File(sb.getRootPath(), "libx").exists();+ boolean full = new File(sb.getRootPath(), "libx").exists();thisVersion = new yacyVersion(- "yacy" + ((pro) ? "_pro" : "") ++ "yacy" + ((full) ? "" : "_emb") +"_v" + sb.getConfig("version", "0.1") + "_" +sb.getConfig("vdate", "19700101") + "_" +sb.getConfig("svnRevision", "0") + ".tar.gz");@@ -177,7 +185,7 @@ public final class yacyVersion implements Comparator, Comparable {// if false, null is returnedplasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard();- // check if update process allowes update retrieve+ // check if update process allows update retrieveString process = sb.getConfig("update.process", "manual");if ((!manual) && (!process.equals("auto"))) {yacyCore.log.logInfo("rulebasedUpdateInfo: not an automatic update selected");@@ -194,9 +202,9 @@ public final class yacyVersion implements Comparator, Comparable {// check if we know that there is a release that is more recent than that which we are usingTreeSet[] releasess = yacyVersion.allReleases(true); // {0=promain, 1=prodev, 2=stdmain, 3=stddev}- boolean pro = new File(sb.getRootPath(), "libx").exists();- yacyVersion latestmain = (releasess[(pro) ? 0 : 2].size() == 0) ? null : (yacyVersion) releasess[(pro) ? 0 : 2].last();- yacyVersion latestdev = (releasess[(pro) ? 1 : 3].size() == 0) ? null : (yacyVersion) releasess[(pro) ? 1 : 3].last();+ boolean full = new File(sb.getRootPath(), "libx").exists();+ yacyVersion latestmain = (releasess[(full) ? 0 : 2].size() == 0) ? null : (yacyVersion) releasess[(full) ? 0 : 2].last();+ yacyVersion latestdev = (releasess[(full) ? 1 : 3].size() == 0) ? null : (yacyVersion) releasess[(full) ? 1 : 3].last();String concept = sb.getConfig("update.concept", "any");String blacklist = sb.getConfig("update.blacklist", ".\\...[123]");@@ -314,10 +322,10 @@ public final class yacyVersion implements Comparator, Comparable {try {release = new yacyVersion(url);//System.out.println("r " + release.toAnchor());- if ( release.proRelease && release.mainRelease) promainreleases.add(release);- if ( release.proRelease && !release.mainRelease) prodevreleases.add(release);- if (!release.proRelease && release.mainRelease) stdmainreleases.add(release);- if (!release.proRelease && !release.mainRelease) stddevreleases.add(release);+ if ( release.fullRelease && release.mainRelease) promainreleases.add(release);+ if ( release.fullRelease && !release.mainRelease) prodevreleases.add(release);+ if (!release.fullRelease && release.mainRelease) stdmainreleases.add(release);+ if (!release.fullRelease && !release.mainRelease) stddevreleases.add(release);} catch (RuntimeException e) {// the release string was not well-formed.// that might have been another linkdiff --git a/yacy.init b/yacy.initindex d9f1d2374..1b2a97eea 100644--- a/yacy.init+++ b/yacy.init@@ -558,8 +558,10 @@ filterOutStopwordsFromTopwords=true50_localcrawl_busysleep__pro=10050_localcrawl_memprereq=419430450_localcrawl_isPaused=false-60_remotecrawlloader_idlesleep=10000-60_remotecrawlloader_busysleep=2000+60_remotecrawlloader_idlesleep=60000+60_remotecrawlloader_idlesleep__pro=10000+60_remotecrawlloader_busysleep=40000+60_remotecrawlloader_busysleep__pro=200060_remotecrawlloader_memprereq=209715260_remotecrawlloader_isPaused=false62_remotetriggeredcrawl_idlesleep=10000