merged from trunk

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/branches/common/common-fw-clients/1.0@68083 82a268e6-3cf1-43bd-a215-b396298e98cf
smartgears_4
fabio.simeoni 11 years ago
parent d7bd21bb11
commit 16866bd230

@ -27,6 +27,7 @@ public class StatelessQuery implements Query<EndpointReference> {
private static String classFormat = "$resource/Profile/ServiceClass/text() eq '%1s'";
private static String nameFormat = "$resource/Profile/ServiceName/text() eq '%1s'";
private static String statusFormat = "$resource/Profile/DeploymentData/Status/text() eq 'ready'";
private static String entryFormat = "$entry/@EntryName/string() eq '%1s'";
private static DiscoveryClient<String> client = ICFactory.client();
@ -42,6 +43,7 @@ public class StatelessQuery implements Query<EndpointReference> {
query = ICFactory.queryFor(GCoreEndpoint.class)
.addCondition(format(classFormat,plugin.serviceClass()))
.addCondition(format(nameFormat,plugin.serviceName()))
.addCondition(format(statusFormat))
.addVariable("$entry","$resource/Profile/AccessPoint/RunningInstanceInterfaces/Endpoint")
.addCondition(format(entryFormat,plugin.name()))
.setResult("$entry/text()");

Loading…
Cancel
Save