From 376b917c912235a0683661ad8c5d770cd1952c73 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 12 May 2005 10:05:17 +0000 Subject: [PATCH] fixed shut-down by stopYACY.sh git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@108 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- .../de/anomic/plasma/plasmaWordIndexCache.java | 16 ++++++++-------- source/yacy.java | 2 +- yacy.parser | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.java index 32f43f2d1..4bc886018 100644 --- a/source/de/anomic/plasma/plasmaWordIndexCache.java +++ b/source/de/anomic/plasma/plasmaWordIndexCache.java @@ -131,9 +131,9 @@ public class plasmaWordIndexCache implements plasmaWordIndexInterface { long messageTime = System.currentTimeMillis() + 5000; long wordsPerSecond = 0, wordcount = 0, urlcount = 0; synchronized (cache) { - //Iterator i = cache.entrySet().iterator(); - Iterator i = hashScore.scores(true); - //Map.Entry entry; + Iterator i = cache.entrySet().iterator(); + //Iterator i = hashScore.scores(true); + Map.Entry entry; String wordHash; plasmaWordIndexEntryContainer container; long creationTime; @@ -141,12 +141,12 @@ public class plasmaWordIndexCache implements plasmaWordIndexInterface { byte[][] row = new byte[5][]; while (i.hasNext()) { // get entries - //entry = (Map.Entry) i.next(); - wordHash = (String) i.next(); - //wordHash = (String) entry.getKey(); + entry = (Map.Entry) i.next(); + //wordHash = (String) i.next(); + wordHash = (String) entry.getKey(); creationTime = getCreationTime(wordHash); - container = (plasmaWordIndexEntryContainer) cache.get(wordHash); - //container = (plasmaWordIndexEntryContainer) entry.getValue(); + //container = (plasmaWordIndexEntryContainer) cache.get(wordHash); + container = (plasmaWordIndexEntryContainer) entry.getValue(); // put entries on stack if (container != null) { diff --git a/source/yacy.java b/source/yacy.java index 4bcddf01f..ea0d351c5 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -351,7 +351,7 @@ public final class yacy { // send 'wget' to web interface httpHeader requestHeader = new httpHeader(); - requestHeader.put("REMOTE-SHUTDOWN", "realm=" + encodedPassword); // for http-authentify + requestHeader.put("Authorization", "realm=" + encodedPassword); // for http-authentify try { httpc con = httpc.getInstance("localhost", port, 10000, false); httpc.response res = con.GET("Steering.html?shutdown=", requestHeader); diff --git a/yacy.parser b/yacy.parser index 1b369b90f..2a1b9a8d6 100644 --- a/yacy.parser +++ b/yacy.parser @@ -1,2 +1,2 @@ #plasmaParser configuration file -#Thu May 12 01:40:28 CEST 2005 +#Thu May 12 11:55:37 CEST 2005