Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added getOwnSeedFile()
borg-0300e3179a63942e
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 32c23002c..03c7861b7 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -460,7 +460,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser//try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profilerthis.yc = new yacyCore(this);//log.logSystem("Started YaCy Protocol Core");- System.gc(); try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profiler+// System.gc(); try{Thread.currentThread().sleep(5000);} catch (InterruptedException e) {} // for profilerserverInstantThread.oneTimeJob(yc, "loadSeeds", yacyCore.log, 3000);// initializing the stackCrawlThread@@ -837,6 +837,14 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serreturn hasDoneSomething;}+ /**+ * Creates a new File instance with absolute path of ours Seed File.<br>+ * @return a new File instance+ */+ public File getOwnSeedFile() {+ return new File(getRootPath(), getConfig("yacyOwnSeedFile", "mySeed.txt"));+ }+/*** With this function the crawling process can be paused*/diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.javaindex cb0445a22..5c26b2716 100644--- a/source/de/anomic/yacy/yacySeedDB.java+++ b/source/de/anomic/yacy/yacySeedDB.java@@ -118,7 +118,7 @@ public final class yacySeedDB {seedPotentialDB = openSeedTable(seedPotentialDBFile);// create or init own seed- myOwnSeedFile = new File(sb.getRootPath(), sb.getConfig("yacyOwnSeedFile", "mySeed.txt"));+ myOwnSeedFile = sb.getOwnSeedFile();if (myOwnSeedFile.length() > 0) {// load existing identitymySeed = yacySeed.load(myOwnSeedFile);