From f89517203d979a4ddbd1a2bb71adb533f550fedc Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6c8d7289-2bf4-0310-a012-ef5d649a1542> Date: Thu, 31 May 2007 15:47:58 +0000 Subject: [PATCH] *) SOAP: new function to get the Performance Settings of Queues and Processes No items left in the yadmin SOAP-TODO :-) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3776 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/PerformanceQueues_p.xml | 58 +++++++++++++++++++ .../de/anomic/soap/services/AdminService.java | 14 ++++- source/de/anomic/soap/services/admin.wsdl | 46 ++++++++++----- 3 files changed, 104 insertions(+), 14 deletions(-) create mode 100644 htroot/PerformanceQueues_p.xml diff --git a/htroot/PerformanceQueues_p.xml b/htroot/PerformanceQueues_p.xml new file mode 100644 index 000000000..ef146e037 --- /dev/null +++ b/htroot/PerformanceQueues_p.xml @@ -0,0 +1,58 @@ + + + #{table}# + + + #[queuesize]# + #[blocktime]# + #[blockpercent]# + #[sleeptime]# + #[sleeppercent]# + #[exectime]# + #[execpercent]# + #[totalcycles]# + #[idlecycles]# + #[busycycles]# + #[memscycles]# + #[sleeppercycle]# + #[execpercycle]# + #[memusepercycle]# + #[idlesleep]#" + #[busysleep]# + #[memprereq]# + recommended: #[value]##(/recommendation)#]]> + + #{/table}# + + + #[urlCacheSize]# + #[wordCacheWSize]# + #[maxURLinWCache]# + #[maxAgeOfWCache]# + #[minAgeOfWCache]# + #[wordOutCacheMaxCount]# + #[wordCacheInitCount]# + #[wordFlushSize]# + + + #[urlCacheSize]# + #[wordCacheKSize]# + #[maxURLinKCache]# + #[maxAgeOfKCache]# + #[minAgeOfKCache]# + #[wordInCacheMaxCount]# + #[wordCacheInitCount]# + #[wordFlushSize]# + + + + #{pool}# + + #[maxActive]# + #[maxIdle]# + #[minIdle]# + #[numActive]# + #[numIdle]# + #{/pool}# + + \ No newline at end of file diff --git a/source/de/anomic/soap/services/AdminService.java b/source/de/anomic/soap/services/AdminService.java index c905cbe8e..e2dab037b 100644 --- a/source/de/anomic/soap/services/AdminService.java +++ b/source/de/anomic/soap/services/AdminService.java @@ -131,7 +131,8 @@ public class AdminService extends AbstractService { * ===================================================================== */ private static final String TEMPLATE_CONFIG_XML = "xml/config_p.xml"; private static final String TEMPLATE_VERSION_XML = "xml/version.xml"; - private static final String TEMPLATE_PROFILE_XML = "ViewProfile.xml"; + private static final String TEMPLATE_PROFILE_XML = "ViewProfile.xml"; + private static final String TEMPLATE_PERFORMANCE_QUEUES = "PerformanceQueues_p.xml"; /** * This function can be used to set a configuration option @@ -277,6 +278,17 @@ public class AdminService extends AbstractService { return this.convertContentToXML(result); } + public Document getPerformanceQueues() throws Exception { + // extracting the message context + extractMessageContext(AUTHENTICATION_NEEDED); + + // generating the template containing the network status information + byte[] result = this.serverContext.writeTemplate(TEMPLATE_PERFORMANCE_QUEUES, new serverObjects(), this.requestHeader); + + // sending back the result to the client + return this.convertContentToXML(result); + } + /** * This function can be used to configure the peer name * @param newName the new name of the peer diff --git a/source/de/anomic/soap/services/admin.wsdl b/source/de/anomic/soap/services/admin.wsdl index 9c054dafb..f212ac2f7 100644 --- a/source/de/anomic/soap/services/admin.wsdl +++ b/source/de/anomic/soap/services/admin.wsdl @@ -44,141 +44,151 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + + + + - + - + - + - + - + - + - + - + - + - + + + - + - + - + + + + + @@ -314,6 +324,16 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> + + + + + + + + + +