Package fr.gouv.vitam.common.storage
Class StorageConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
-
- fr.gouv.vitam.common.storage.StorageConfiguration
-
- All Implemented Interfaces:
VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
public class StorageConfiguration extends DefaultVitamApplicationConfiguration
Storage configuration contains all configuration items for storage offers
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
-
Constructor Summary
Constructors Constructor Description StorageConfiguration()
-
Method Summary
-
Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
getAdminBasicAuth, getJettyConfig, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setEnableSession, setEnableXsrFilter, setJettyConfig, setTenantFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfigurationInterface
getBaseUri, getBaseUrl, getStaticContent, setBaseUri, setBaseUrl, setStaticContent
-
-
-
-
Method Detail
-
getSwiftUrl
public java.lang.String getSwiftUrl()
- Returns:
- the swiftUrl
-
setSwiftUrl
public StorageConfiguration setSwiftUrl(java.lang.String swiftUrl)
- Parameters:
swiftUrl
- the swiftUrl to set- Returns:
- this
-
getProvider
public java.lang.String getProvider()
- Returns:
- the provider
-
setProvider
public StorageConfiguration setProvider(java.lang.String provider)
- Parameters:
provider
- the provider to set- Returns:
- this
-
getSwiftKeystoneAuthUrl
public java.lang.String getSwiftKeystoneAuthUrl()
- Returns:
- the swiftKeystoneAuthUrl
-
setSwiftKeystoneAuthUrl
public StorageConfiguration setSwiftKeystoneAuthUrl(java.lang.String swiftKeystoneAuthUrl)
- Parameters:
swiftKeystoneAuthUrl
- the swiftKeystoneAuthUrl to set- Returns:
- this
-
getSwiftDomain
public java.lang.String getSwiftDomain()
- Returns:
- the tenantName
-
setSwiftDomain
public StorageConfiguration setSwiftDomain(java.lang.String swiftDomain)
- Parameters:
swiftDomain
- the tenantName to set- Returns:
- this
-
getSwiftUser
public java.lang.String getSwiftUser()
- Returns:
- the swiftUser
-
setSwiftUser
public StorageConfiguration setSwiftUser(java.lang.String swiftUser)
- Parameters:
swiftUser
- the userName to set- Returns:
- this
-
getSwiftPassword
public java.lang.String getSwiftPassword()
- Returns:
- the swiftPassword
-
setSwiftPassword
public StorageConfiguration setSwiftPassword(java.lang.String swiftPassword)
- Parameters:
swiftPassword
- the swiftPassword to set- Returns:
- this
-
getStoragePath
public java.lang.String getStoragePath()
- Returns:
- the storagePath
-
setStoragePath
public StorageConfiguration setStoragePath(java.lang.String storagePath)
- Parameters:
storagePath
- the storagePath to set- Returns:
- this
-
getContextPath
public java.lang.String getContextPath()
- Returns:
- the contextPath
-
setContextPath
public StorageConfiguration setContextPath(java.lang.String contextPath)
- Parameters:
contextPath
- the contextPath to set- Returns:
- this
-
isAuthentication
public boolean isAuthentication()
Description copied from interface:VitamApplicationConfigurationInterface
getter authentication- Specified by:
isAuthentication
in interfaceVitamApplicationConfigurationInterface
- Overrides:
isAuthentication
in classDefaultVitamApplicationConfiguration
- Returns:
- boolean
-
setAuthentication
public StorageConfiguration setAuthentication(boolean authentication)
- Specified by:
setAuthentication
in interfaceVitamApplicationConfigurationInterface
- Overrides:
setAuthentication
in classDefaultVitamApplicationConfiguration
- Parameters:
authentication
- to set ou unset- Returns:
- StorageConfiguration
-
getSwiftProjectName
public java.lang.String getSwiftProjectName()
-
setSwiftProjectName
public StorageConfiguration setSwiftProjectName(java.lang.String swiftProjectName)
-
getSwiftTrustStore
public java.lang.String getSwiftTrustStore()
-
setSwiftTrustStore
public void setSwiftTrustStore(java.lang.String swiftTrustStore)
-
getSwiftTrustStorePassword
public java.lang.String getSwiftTrustStorePassword()
-
setSwiftTrustStorePassword
public void setSwiftTrustStorePassword(java.lang.String swiftTrustStorePassword)
-
getSwiftMaxConnectionsPerRoute
public int getSwiftMaxConnectionsPerRoute()
-
setSwiftMaxConnectionsPerRoute
public void setSwiftMaxConnectionsPerRoute(int swiftMaxConnectionsPerRoute)
-
getSwiftMaxConnections
public int getSwiftMaxConnections()
-
setSwiftMaxConnections
public void setSwiftMaxConnections(int swiftMaxConnections)
-
getSwiftConnectionTimeout
public int getSwiftConnectionTimeout()
-
setSwiftConnectionTimeout
public void setSwiftConnectionTimeout(int swiftConnectionTimeout)
-
getSwiftReadTimeout
public int getSwiftReadTimeout()
-
setSwiftReadTimeout
public void setSwiftReadTimeout(int swiftReadTimeout)
-
getSwiftSoftRenewTokenDelayBeforeExpireTime
public long getSwiftSoftRenewTokenDelayBeforeExpireTime()
-
setSwiftSoftRenewTokenDelayBeforeExpireTime
public void setSwiftSoftRenewTokenDelayBeforeExpireTime(long swiftSoftRenewTokenDelayBeforeExpireTime)
-
getSwiftHardRenewTokenDelayBeforeExpireTime
public long getSwiftHardRenewTokenDelayBeforeExpireTime()
-
setSwiftHardRenewTokenDelayBeforeExpireTime
public void setSwiftHardRenewTokenDelayBeforeExpireTime(long swiftHardRenewTokenDelayBeforeExpireTime)
-
getS3RegionName
public java.lang.String getS3RegionName()
-
setS3RegionName
public StorageConfiguration setS3RegionName(java.lang.String s3RegionName)
-
getS3Endpoint
public java.lang.String getS3Endpoint()
-
setS3Endpoint
public StorageConfiguration setS3Endpoint(java.lang.String s3Endpoint)
-
getS3TrustStore
public java.lang.String getS3TrustStore()
-
setS3TrustStore
public StorageConfiguration setS3TrustStore(java.lang.String s3TrustStore)
-
getS3TrustStorePassword
public java.lang.String getS3TrustStorePassword()
-
setS3TrustStorePassword
public StorageConfiguration setS3TrustStorePassword(java.lang.String s3TrustStorePassword)
-
getS3AccessKey
public java.lang.String getS3AccessKey()
-
setS3AccessKey
public StorageConfiguration setS3AccessKey(java.lang.String s3AccessKey)
-
getS3SecretKey
public java.lang.String getS3SecretKey()
-
setS3SecretKey
public StorageConfiguration setS3SecretKey(java.lang.String s3SecretKey)
-
getS3SignerType
public java.lang.String getS3SignerType()
-
setS3SignerType
public StorageConfiguration setS3SignerType(java.lang.String s3SignerType)
-
isS3PathStyleAccessEnabled
public boolean isS3PathStyleAccessEnabled()
-
setS3PathStyleAccessEnabled
public StorageConfiguration setS3PathStyleAccessEnabled(boolean s3PathStyleAccessEnabled)
-
getS3MaxConnections
public int getS3MaxConnections()
-
setS3MaxConnections
public StorageConfiguration setS3MaxConnections(int s3MaxConnections)
-
getS3ConnectionTimeout
public int getS3ConnectionTimeout()
-
setS3ConnectionTimeout
public StorageConfiguration setS3ConnectionTimeout(int s3ConnectionTimeout)
-
getS3SocketTimeout
public int getS3SocketTimeout()
-
setS3SocketTimeout
public StorageConfiguration setS3SocketTimeout(int s3SocketTimeout)
-
getS3RequestTimeout
public int getS3RequestTimeout()
-
setS3RequestTimeout
public StorageConfiguration setS3RequestTimeout(int s3RequestTimeout)
-
getS3ClientExecutionTimeout
public int getS3ClientExecutionTimeout()
-
setS3ClientExecutionTimeout
public StorageConfiguration setS3ClientExecutionTimeout(int s3ClientExecutionTimeout)
-
getTapeLibraryConfiguration
public TapeLibraryConfiguration getTapeLibraryConfiguration()
-
setTapeLibraryConfiguration
public StorageConfiguration setTapeLibraryConfiguration(TapeLibraryConfiguration tapeLibraryConfiguration)
-
-