Skip to content

Commit

Permalink
*) signal yacy shutdown to updater
Browse files Browse the repository at this point in the history
*) some javadoc added

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3658 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed May 5, 2007
1 parent 43748f8 commit 74dd6ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/de/anomic/plasma/plasmaCrawlEntry.java
Expand Up @@ -82,6 +82,17 @@ public plasmaCrawlEntry(URL url) {
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,
Expand Down
2 changes: 2 additions & 0 deletions source/de/anomic/plasma/plasmaSwitchboard.java
Expand Up @@ -1668,6 +1668,8 @@ public void close() {
errorURL.close();
wordIndex.close();
yc.close();
// signal shudown to the updater
if (updaterCallback != null) updaterCallback.signalYaCyShutdown();
log.logConfig("SWITCHBOARD SHUTDOWN TERMINATED");
}

Expand Down

0 comments on commit 74dd6ca

Please sign in to comment.