From 74dd6cac95ddf0485f8b711262be2b2f614351c2 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 5 May 2007 16:20:01 +0000 Subject: [PATCH] *) signal yacy shutdown to updater *) some javadoc added git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3658 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlEntry.java | 11 +++++++++++ source/de/anomic/plasma/plasmaSwitchboard.java | 2 ++ 2 files changed, 13 insertions(+) diff --git a/source/de/anomic/plasma/plasmaCrawlEntry.java b/source/de/anomic/plasma/plasmaCrawlEntry.java index 310e267b4..a34582c13 100644 --- a/source/de/anomic/plasma/plasmaCrawlEntry.java +++ b/source/de/anomic/plasma/plasmaCrawlEntry.java @@ -82,6 +82,17 @@ public class plasmaCrawlEntry { this(yacyCore.seedDB.mySeed.hash, url, null, null, new Date(), null, 0, 0, 0); } + /** + * @param initiator the hash of the initiator peer + * @param url the {@link URL} to crawl + * @param referrer the hash of the referrer URL + * @param name the name of the document to crawl + * @param appdate the time when the url was first time appeared + * @param profileHandle the name of the prefetch profile. This must not be null! + * @param depth the crawling depth of the entry + * @param anchors number of anchors of the parent + * @param forkfactor sum of anchors of all ancestors + */ public plasmaCrawlEntry( String initiator, URL url, diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index 51981e799..253df403c 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -1668,6 +1668,8 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser errorURL.close(); wordIndex.close(); yc.close(); + // signal shudown to the updater + if (updaterCallback != null) updaterCallback.signalYaCyShutdown(); log.logConfig("SWITCHBOARD SHUTDOWN TERMINATED"); }