From a4b3981f332b4295e2724bdf4a1cbe79deea550f Mon Sep 17 00:00:00 2001 From: allo Date: Thu, 16 Feb 2006 21:08:34 +0000 Subject: [PATCH] all queues on WatchCrawler.html git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1675 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/WatchCrawler.html | 63 +++++++++++++--- htroot/js/WatchCrawler.js | 150 +++++++++++++++++++++++++++++++++++--- 2 files changed, 192 insertions(+), 21 deletions(-) diff --git a/htroot/WatchCrawler.html b/htroot/WatchCrawler.html index 85adcf871..55952aec8 100644 --- a/htroot/WatchCrawler.html +++ b/htroot/WatchCrawler.html @@ -13,22 +13,61 @@

Indexing Queue:

+Loader: +PPM:     +
+ + + + + + + + + + +
InitiatorDepthModified DateAnchor NameURL
+
+Indexing Queue: Queue Size:     Queue Max:     -PPM:    
- - - - - - - - - - - + + + + + + + + + + + +
InitiatorDepthModified DateAnchor NameURLSizeDelete
InitiatorDepthModified DateAnchor NameURLSizeDelete
+
Local Crawler
+ + + + + + + + + + +
InitiatorDepthModified DateAnchor NameURL
+
Remote Crawler
+ + + + + + + + + +
ProfileDepthModified DateAnchor NameURL
#%env/templates/footer.template%# diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js index fb27c169f..19324df03 100644 --- a/htroot/js/WatchCrawler.js +++ b/htroot/js/WatchCrawler.js @@ -46,20 +46,60 @@ function handleQueues(){ return; } var queuesResponse = queuesRPC.responseXML; - indexingTable=document.getElementById("indexingTable"); xml=getFirstChild(queuesResponse); if(queuesResponse != null){ - entries=getFirstChild(xml, "indexingqueue").getElementsByTagName("entry"); + createIndexingTable(getFirstChild(xml, "indexingqueue")); + createLoaderTable(getFirstChild(xml, "loaderqueue")); + createLocalCrawlerTable(getFirstChild(xml, "localcrawlerqueue")); + createRemoteCrawlerTable(getFirstChild(xml, "remotecrawlerqueue")); + } +} +function clearTable(table, numSkip){ + if(numSkip==null){ + numSkip=0; + } + row=getFirstChild(getFirstChild(table, "tbody"), "tr"); + //skip numSkip rows + for(i=0;i