Added ServiceEndpoint coordinates as costants.
Now the serviceEndpoint coordinates are DataStorage - StorageManager-S3 as reported in #20505
This commit is contained in:
parent
bbe67f9419
commit
83fce2b7e2
|
@ -39,6 +39,14 @@ public class ISClientConnector {
|
|||
protected ServiceEndpoint storageResource;
|
||||
public String region;
|
||||
private static HashMap<String, Object> isCache;
|
||||
/**
|
||||
* identify the ServiceEndpoint Category of the storage-manager backend
|
||||
*/
|
||||
public final String CATEGORY="DataStorage";
|
||||
/**
|
||||
* identify the ServiceEndpoint name of the storage-manager backend
|
||||
*/
|
||||
public final String NAME="StorageManager-S3";
|
||||
|
||||
public ISClientConnector(String backendType){
|
||||
setBackendType(backendType);
|
||||
|
@ -71,7 +79,7 @@ public class ISClientConnector {
|
|||
ScopeProvider.instance.set(scope);
|
||||
}
|
||||
SimpleQuery query = queryFor(ServiceEndpoint.class);
|
||||
query.addCondition("$resource/Profile/Category/text() eq 'DataStorage' and $resource/Profile/Name eq 'StorageManager' ");
|
||||
query.addCondition("$resource/Profile/Category/text() eq '"+CATEGORY+"' and $resource/Profile/Name eq '"+NAME+"' ");
|
||||
DiscoveryClient<ServiceEndpoint> client = clientFor(ServiceEndpoint.class);
|
||||
List<ServiceEndpoint> resources = client.submit(query);
|
||||
if(scope!=null){
|
||||
|
|
Loading…
Reference in New Issue