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
This commit is contained in:
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 classFormat = "$resource/Profile/ServiceClass/text() eq '%1s'";
|
||||||
private static String nameFormat = "$resource/Profile/ServiceName/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 String entryFormat = "$entry/@EntryName/string() eq '%1s'";
|
||||||
|
|
||||||
private static DiscoveryClient<String> client = ICFactory.client();
|
private static DiscoveryClient<String> client = ICFactory.client();
|
||||||
|
@ -42,6 +43,7 @@ public class StatelessQuery implements Query<EndpointReference> {
|
||||||
query = ICFactory.queryFor(GCoreEndpoint.class)
|
query = ICFactory.queryFor(GCoreEndpoint.class)
|
||||||
.addCondition(format(classFormat,plugin.serviceClass()))
|
.addCondition(format(classFormat,plugin.serviceClass()))
|
||||||
.addCondition(format(nameFormat,plugin.serviceName()))
|
.addCondition(format(nameFormat,plugin.serviceName()))
|
||||||
|
.addCondition(format(statusFormat))
|
||||||
.addVariable("$entry","$resource/Profile/AccessPoint/RunningInstanceInterfaces/Endpoint")
|
.addVariable("$entry","$resource/Profile/AccessPoint/RunningInstanceInterfaces/Endpoint")
|
||||||
.addCondition(format(entryFormat,plugin.name()))
|
.addCondition(format(entryFormat,plugin.name()))
|
||||||
.setResult("$entry/text()");
|
.setResult("$entry/text()");
|
||||||
|
|
Loading…
Reference in New Issue