public class GCubeClient extends Object
| Constructor and Description |
|---|
GCubeClient(String serviceClass,
String serviceName)
Example of resource:
|
| Modifier and Type | Method and Description |
|---|---|
org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
getAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint res,
String dbName) |
Credentials |
getCredentials(String dbName,
String collectionFieldName) |
List<com.mongodb.ServerAddress> |
getMongoServers(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap) |
String |
getPassword(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap) |
String |
getProperty(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap,
String name) |
String |
getResolverHost(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint) |
String |
getServerAccess(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap) |
String[] |
getServersAddresses(org.gcube.common.resources.gcore.ServiceEndpoint res) |
String |
getServersAddressesForSpecificAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint res,
String dbName)
check if a accessPoint has the dbName set as EntryName
|
List<org.gcube.common.resources.gcore.ServiceEndpoint> |
getServiceEndpoint(String sc,
String sn) |
List<org.gcube.common.resources.gcore.ServiceEndpoint> |
getStorageEndpoint() |
String |
getUser(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap) |
String |
retrieveDBEnabled(String dbIdentifier)
Retrieve the db associated to the token.
|
String |
retrievePropertyValue(org.gcube.common.resources.gcore.ServiceEndpoint res,
String name,
String scope) |
public GCubeClient(String serviceClass, String serviceName)
serviceClass - serviceName - public List<org.gcube.common.resources.gcore.ServiceEndpoint> getStorageEndpoint()
public List<org.gcube.common.resources.gcore.ServiceEndpoint> getServiceEndpoint(String sc, String sn)
public String[] getServersAddresses(org.gcube.common.resources.gcore.ServiceEndpoint res)
public String getServersAddressesForSpecificAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint res, String dbName)
res - dbName - public org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint getAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint res,
String dbName)
public String getUser(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap)
public List<com.mongodb.ServerAddress> getMongoServers(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap)
public String getPassword(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap) throws Exception
Exceptionpublic String getServerAccess(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap)
public String getProperty(org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint ap, String name)
public String getResolverHost(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint)
public String retrievePropertyValue(org.gcube.common.resources.gcore.ServiceEndpoint res, String name, String scope)
public Credentials getCredentials(String dbName, String collectionFieldName)
Copyright © 2017. All Rights Reserved.