Revision 50076
Added by Claudio Atzori over 6 years ago
modules/dnet-hadoop-service/trunk/src/main/java/eu/dnetlib/data/hadoop/ISClient.java | ||
---|---|---|
29 | 29 |
} |
30 | 30 |
|
31 | 31 |
public String queryForServiceProperty(final String key) throws ISLookUpException { |
32 |
return getServiceConfigValue("for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='HadoopServiceResourceType'] return $x//SERVICE_PROPERTIES/PROPERTY[./@ key='" |
|
33 |
+ key + "']/@value/string()"); |
|
32 |
return getServiceConfigValue( |
|
33 |
String.format( |
|
34 |
"distinct-values(" |
|
35 |
+ "for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='HadoopServiceResourceType'] " |
|
36 |
+ "return $x//SERVICE_PROPERTIES/PROPERTY[./@ key='%s']/@value/string())", |
|
37 |
key)); |
|
34 | 38 |
} |
35 | 39 |
|
36 | 40 |
public void updateCountElement(final String jobName, final String element, final String delta) { |
Also available in: Unified diff
fetch distinc values from service properties