*) SOAP: adding function to get the local peer hash

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3117 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent ce8cde6335
commit a9f1d3a065

@ -50,6 +50,7 @@ import org.w3c.dom.Document;
import de.anomic.server.serverObjects;
import de.anomic.soap.AbstractService;
import de.anomic.yacy.yacyCore;
public class StatusService extends AbstractService {
@ -200,4 +201,14 @@ public class StatusService extends AbstractService {
// sending back the result to the client
return this.convertContentToXML(result);
}
public String getPeerHash() throws AxisFault {
// extracting the message context
extractMessageContext(AUTHENTICATION_NEEDED);
// return the peer hash
return yacyCore.seedDB.mySeed.getHexHash();
}
}

@ -6,10 +6,12 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:part name="maxCount" type="xsd:int"/>
<wsdl:part name="details" type="xsd:boolean"/>
</wsdl:message>
<wsdl:message name="getPeerHashRequest">
</wsdl:message>
<wsdl:message name="getQueueStatusResponse">
<wsdl:part name="getQueueStatusReturn" type="apachesoap:Document"/>
</wsdl:message>
<wsdl:message name="createNewXMLDocumentResponse">
<wsdl:part name="createNewXMLDocumentReturn" type="apachesoap:Document"/>
</wsdl:message>
@ -17,9 +19,9 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:part name="rootElementName" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getQueueStatusRequest">
<wsdl:part name="localqueueCount" type="xsd:int"/>
<wsdl:part name="loaderqueueCount" type="xsd:int"/>
<wsdl:part name="localcrawlerqueueCount" type="xsd:int"/>
<wsdl:part name="remotecrawlerqueueCount" type="xsd:int"/>
</wsdl:message>
@ -27,35 +29,43 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:part name="peerListReturn" type="apachesoap:Document"/>
</wsdl:message>
<wsdl:message name="networkResponse">
<wsdl:part name="networkReturn" type="apachesoap:Document"/>
</wsdl:message>
<wsdl:message name="getPeerHashResponse">
<wsdl:part name="getPeerHashReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="networkRequest">
</wsdl:message>
<wsdl:message name="getStatusResponse">
<wsdl:part name="getStatusReturn" type="apachesoap:Document"/>
</wsdl:message>
<wsdl:message name="getStatusRequest">
</wsdl:message>
<wsdl:portType name="StatusService">
<wsdl:operation name="getStatus">
<wsdl:input message="impl:getStatusRequest" name="getStatusRequest"/>
<wsdl:output message="impl:getStatusResponse" name="getStatusResponse"/>
</wsdl:operation>
<wsdl:operation name="network">
<wsdl:input message="impl:networkRequest" name="networkRequest"/>
<wsdl:output message="impl:networkResponse" name="networkResponse"/>
</wsdl:operation>
<wsdl:operation name="peerList" parameterOrder="peerType maxCount details">
<wsdl:input message="impl:peerListRequest" name="peerListRequest"/>
<wsdl:output message="impl:peerListResponse" name="peerListResponse"/>
</wsdl:operation>
<wsdl:operation name="getQueueStatus" parameterOrder="localqueueCount loaderqueueCount localcrawlerqueueCount remotecrawlerqueueCount">
<wsdl:input message="impl:getQueueStatusRequest" name="getQueueStatusRequest"/>
<wsdl:output message="impl:getQueueStatusResponse" name="getQueueStatusResponse"/>
</wsdl:operation>
<wsdl:operation name="getPeerHash">
<wsdl:input message="impl:getPeerHashRequest" name="getPeerHashRequest"/>
<wsdl:output message="impl:getPeerHashResponse" name="getPeerHashResponse"/>
</wsdl:operation>
<wsdl:operation name="createNewXMLDocument" parameterOrder="rootElementName">
<wsdl:input message="impl:createNewXMLDocumentRequest" name="createNewXMLDocumentRequest"/>
<wsdl:output message="impl:createNewXMLDocumentResponse" name="createNewXMLDocumentResponse"/>
@ -104,6 +114,16 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/status" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getPeerHash">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getPeerHashRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://services.soap.anomic.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="getPeerHashResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yacy:8080/soap/status" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="createNewXMLDocument">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="createNewXMLDocumentRequest">

Loading…
Cancel
Save