From 5015e780c27a24b9a88cc6cda29ede1cb5e2b1fc Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 15 Sep 2006 13:54:10 +0000 Subject: [PATCH] - simplified watchCrawler code - changed display of watchCrawler slightly git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2594 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/WatchCrawler.html | 38 +++++----- htroot/js/WatchCrawler.js | 146 +++++--------------------------------- htroot/xml/queues_p.java | 72 +++++++------------ htroot/xml/queues_p.xml | 3 +- 4 files changed, 64 insertions(+), 195 deletions(-) diff --git a/htroot/WatchCrawler.html b/htroot/WatchCrawler.html index 8fcbb89a4..a9d221c8a 100644 --- a/htroot/WatchCrawler.html +++ b/htroot/WatchCrawler.html @@ -17,12 +17,9 @@ wordcaches:  

- Loader: -
- Size:    
- Max:    
+ Indexing Queue: size=   ; max=   

- +
@@ -30,15 +27,15 @@ + +
InitiatorModified Date Anchor Name URLSizeDelete

- Indexing Queue:
- Size:    
- Max:    
+ Loader: size=   ; max=   

- +
@@ -52,10 +49,9 @@
Initiator

- Local Crawler
- Size:    
+ Local Crawler: size=   

- +
@@ -63,21 +59,25 @@ + +
InitiatorModified Date Anchor Name URLSizeDelete
+

- Remote Crawler
- Size:    
+ Remote Crawler: size=   

- - - - - + + + + + + +
ProfileDepthModified DateAnchor NameURLInitiatorDepthModified DateAnchor NameURLSizeDelete
diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js index 2bb255999..710390425 100644 --- a/htroot/js/WatchCrawler.js +++ b/htroot/js/WatchCrawler.js @@ -56,8 +56,6 @@ function requestQueues(){ } - - function handleStatus(){ if(statusRPC.readyState != 4){ return; @@ -100,7 +98,6 @@ function handleStatus(){ } } - function handleQueues(){ if(queuesRPC.readyState != 4){ return; @@ -109,14 +106,14 @@ function handleQueues(){ xml=getFirstChild(queuesResponse); if(queuesResponse != null){ indexingqueue=getFirstChild(xml, "indexingqueue"); - createIndexingTable(indexingqueue); + createIndexingTable(indexingqueue, "indexingTable"); indexingqueue_size=getValue(getFirstChild(indexingqueue, "size")); indexingqueue_max=getValue(getFirstChild(indexingqueue, "max")); document.getElementById("indexingqueuesize").firstChild.nodeValue=indexingqueue_size; document.getElementById("indexingqueuemax").firstChild.nodeValue=indexingqueue_max; loaderqueue=getFirstChild(xml, "loaderqueue"); - createLoaderTable(getFirstChild(xml, "loaderqueue")); + createIndexingTable(loaderqueue, "loaderTable"); loaderqueue_size=getValue(getFirstChild(loaderqueue, "size")); loaderqueue_max=getValue(getFirstChild(loaderqueue, "max")); document.getElementById("loaderqueuesize").firstChild.nodeValue=loaderqueue_size; @@ -125,42 +122,18 @@ function handleQueues(){ localcrawlerqueue=getFirstChild(xml, "localcrawlerqueue"); localcrawlerqueue_size=getValue(getFirstChild(localcrawlerqueue, "size")); document.getElementById("localcrawlerqueuesize").firstChild.nodeValue=localcrawlerqueue_size; - createLocalCrawlerTable(localcrawlerqueue); + createIndexingTable(localcrawlerqueue, "localCrawlerTable"); remotecrawlerqueue=getFirstChild(xml, "remotecrawlerqueue"); - createRemoteCrawlerTable(remotecrawlerqueue); + createIndexingTable(remotecrawlerqueue, "remoteCrawlerTable"); remotecrawlerqueue_size=getValue(getFirstChild(remotecrawlerqueue, "size")); document.getElementById("remotecrawlerqueuesize").firstChild.nodeValue=remotecrawlerqueue_size; createRemoteCrawlerTable(remotecrawlerqueue); } } -function createLoaderTable(loaderqueue){ - entries=loaderqueue.getElementsByTagName("entry"); - loaderTable=document.getElementById("loaderTable"); - clearTable(loaderTable, 1); - dark=false; - for(i=0;i#[remoteCrawlSize]# #{list-remote}# - #[profile]# + #[initiator]# #[depth]# #[modified]# #[anchor]# #[url]# + #[hash]# #(inProcess)#false::true#(/inProcess)# #{/list-remote}#