ref 7576:DataMiner - Investigate if the wps-client-library cache dataminer service assigned for execution
https://support.d4science.org/issues/7576 Fixed load balancing git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/data-miner-manager-cl@146369 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7ebea8d780
commit
77c3547ca2
|
@ -15,6 +15,7 @@ import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import net.opengis.ows.x11.OperationDocument.Operation;
|
||||||
import net.opengis.wps.x100.CapabilitiesDocument;
|
import net.opengis.wps.x100.CapabilitiesDocument;
|
||||||
import net.opengis.wps.x100.ComplexDataType;
|
import net.opengis.wps.x100.ComplexDataType;
|
||||||
import net.opengis.wps.x100.ExecuteDocument;
|
import net.opengis.wps.x100.ExecuteDocument;
|
||||||
|
@ -471,6 +472,14 @@ public class SClient4WPS extends SClient {
|
||||||
CapabilitiesDocument capabilitiesDocument = wpsClient
|
CapabilitiesDocument capabilitiesDocument = wpsClient
|
||||||
.getWPSCaps(wpsProcessingServlet);
|
.getWPSCaps(wpsProcessingServlet);
|
||||||
|
|
||||||
|
Operation[] operations = capabilitiesDocument.getCapabilities()
|
||||||
|
.getOperationsMetadata().getOperationArray();
|
||||||
|
for (Operation operation : operations) {
|
||||||
|
operation.getDCPArray()[0].getHTTP().getPostArray()[0]
|
||||||
|
.setHref(wpsProcessingServlet + "?");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
processesBriefs = capabilitiesDocument.getCapabilities()
|
processesBriefs = capabilitiesDocument.getCapabilities()
|
||||||
.getProcessOfferings().getProcessArray();
|
.getProcessOfferings().getProcessArray();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue