Class Configuration
- java.lang.Object
-
- org.gcube.contentmanager.storageclient.wrapper.Configuration
-
public class Configuration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_BACKEND_TYPEprotected static StringSTORAGE_SERVICEENDPOINT_CATEGORYprotected static StringSTORAGE_SERVICEENDPOINT_NAME
-
Constructor Summary
Constructors Constructor Description Configuration(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
-
-
-
Field Detail
-
DEFAULT_BACKEND_TYPE
protected static final String DEFAULT_BACKEND_TYPE
- See Also:
- Constant Field Values
-
STORAGE_SERVICEENDPOINT_NAME
protected static final String STORAGE_SERVICEENDPOINT_NAME
- See Also:
- Constant Field Values
-
STORAGE_SERVICEENDPOINT_CATEGORY
protected static final String STORAGE_SERVICEENDPOINT_CATEGORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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 public String retrieveEncryptionPhrase() throws Exception
Deprecated.- Throws:
Exception
-
retrieveEncryptionField
public String retrieveEncryptionField(String fieldName) throws Exception
- Throws:
Exception
-
getClientID
public String getClientID()
-
setClientID
public void setClientID(String clientID)
-
getTypeAccess
public String getTypeAccess()
-
setTypeAccess
public void setTypeAccess(String typeAccess)
-
getMemoryType
public String getMemoryType()
-
setMemoryType
public void setMemoryType(String memoryType)
-
getOwner
public String getOwner()
-
setOwner
public void setOwner(String owner)
-
getServer
public String getServer()
-
setServer
public void setServer(String server)
-
getEnvironment
public String getEnvironment()
-
setEnvironment
public void setEnvironment(String server)
-
getScopeString
public String getScopeString()
-
setScopeString
public void setScopeString(String scopeString)
-
getRRScope
public String getRRScope()
-
setRRScope
public void setRRScope(String rRScope)
-
getBackendType
public String getBackendType()
-
setBackendType
public void setBackendType(String backendType)
-
getVolatileHost
public String[] getVolatileHost()
-
setVolatileHost
public void setVolatileHost(String[] volatileHost)
-
getPersistentHosts
public String[] getPersistentHosts()
-
setPersistentHosts
public void setPersistentHosts(String[] hosts)
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getPassPhrase
public String getPassPhrase()
-
setPassPhrase
public void setPassPhrase(String passPhrase)
-
getResolverHost
public String getResolverHost()
-
setResolverHost
public void setResolverHost(String resolverHost)
-
getSc
public String getSc()
-
setSc
public void setSc(String sc)
-
getSn
public String getSn()
-
setSn
public void setSn(String sn)
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
-
-