Class Configuration
java.lang.Object
org.gcube.contentmanager.storageclient.wrapper.Configuration
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(String sc, String sn, String scopeString, String owner, String clientID, String accessType, String memory) Loads all the configuration parameters in a java objectConfiguration(String sc, String sn, String scopeString, String owner, String clientID, String accessType, String memory, String backend) Loads all the configuration parameters in a java object for a specific backend -
Method Summary
Modifier and TypeMethodDescriptionvoidRetrieve a valid configuration from IS for instantiating the engineprotected voidgetOptionalPropertiesFromRR(org.gcube.contentmanagement.blobstorage.service.impl.ServiceEngine engine) getOwner()String[]getSc()getSn()getUser()String[]retrieveEncryptionField(String fieldName) Deprecated.voidsetBackendType(String backendType) voidsetClientID(String clientID) voidsetEnvironment(String server) voidsetMemoryType(String memoryType) voidvoidsetPassPhrase(String passPhrase) voidsetPassword(String password) voidsetPersistentHosts(String[] hosts) voidvoidsetResolverHost(String resolverHost) voidsetRRScope(String rRScope) voidvoidsetScopeString(String scopeString) voidvoidvoidsetTypeAccess(String typeAccess) voidvoidsetVolatileHost(String[] volatileHost)
-
Field Details
-
DEFAULT_BACKEND_TYPE
- See Also:
-
STORAGE_SERVICEENDPOINT_NAME
- See Also:
-
STORAGE_SERVICEENDPOINT_CATEGORY
- See Also:
-
-
Constructor Details
-
Configuration
public Configuration(String sc, String sn, String scopeString, String owner, String clientID, String accessType, String memory) Loads all the configuration parameters in a java object- Parameters:
sc- : service class of the remote resourcesn- service name of the remote resourcescopeString- string that identifies the scopeowner- user of the client libraryclientID-accessType- indicates the type of access to the storagememory- indicates the type of memory used by the storage: Persistent or Volatile
-
Configuration
public Configuration(String sc, String sn, String scopeString, String owner, String clientID, String accessType, String memory, String backend) Loads all the configuration parameters in a java object for a specific backend- Parameters:
sc- : service class of the remote resourcesn- service name of the remote resourcescopeString- string that identifies the scopeowner- user of the client libraryclientID-accessType- indicates the type of access to the storagememory- indicates the type of memory used by the storage: Persistent or Volatile
-
-
Method Details
-
getConfiguration
public void getConfiguration()Retrieve a valid configuration from IS for instantiating the engine -
getOptionalPropertiesFromRR
protected void getOptionalPropertiesFromRR(org.gcube.contentmanagement.blobstorage.service.impl.ServiceEngine engine) -
retrieveEncryptionPhrase
Deprecated.- Throws:
Exception
-
retrieveEncryptionField
- Throws:
Exception
-
getClientID
-
setClientID
-
getTypeAccess
-
setTypeAccess
-
getMemoryType
-
setMemoryType
-
getOwner
-
setOwner
-
getServer
-
setServer
-
getEnvironment
-
setEnvironment
-
getScopeString
-
setScopeString
-
getRRScope
-
setRRScope
-
getBackendType
-
setBackendType
-
getVolatileHost
-
setVolatileHost
-
getPersistentHosts
-
setPersistentHosts
-
getUser
-
setUser
-
getPassword
-
setPassword
-
getPassPhrase
-
setPassPhrase
-
getResolverHost
-
setResolverHost
-
getSc
-
setSc
-
getSn
-
setSn
-
getRegion
-
setRegion
-