|
|
|
@ -73,6 +73,29 @@ public class Configuration {
|
|
|
|
|
setScopeString(scopeString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Loads all the configuration parameters in a java object for a specific backend
|
|
|
|
|
*
|
|
|
|
|
* @param sc: service class of the remote resource
|
|
|
|
|
* @param sn service name of the remote resource
|
|
|
|
|
* @param scopeString string that identifies the scope
|
|
|
|
|
* @param owner user of the client library
|
|
|
|
|
* @param clientID
|
|
|
|
|
* @param accessType indicates the type of access to the storage
|
|
|
|
|
* @param memory indicates the type of memory used by the storage: Persistent or Volatile
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public Configuration(String sc, String sn, String scopeString, String owner, String clientID, String accessType, String memory, BackendType backend){
|
|
|
|
|
this.sc=sc;
|
|
|
|
|
this.sn=sn;
|
|
|
|
|
this.owner=owner;
|
|
|
|
|
this.clientID=clientID;
|
|
|
|
|
this.typeAccess=accessType;
|
|
|
|
|
this.memoryType=memory;
|
|
|
|
|
setScopeString(scopeString);
|
|
|
|
|
setBackendType(backend.toString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Retrieve a valid configuration from IS for instantiating the engine
|
|
|
|
|
*/
|
|
|
|
|