fixed shut-down by stopYACY.sh

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@108 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent ea478f3975
commit 376b917c91

@ -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) {

@ -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);

@ -1,2 +1,2 @@
#plasmaParser configuration file
#Thu May 12 01:40:28 CEST 2005
#Thu May 12 11:55:37 CEST 2005

Loading…
Cancel
Save