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
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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
long
int
int
int
int
int
long
int
boolean
getter authenticationboolean
setAuthentication
(boolean authentication) setContextPath
(String contextPath) void
setCustomHeaders
(List<VitamCustomizedHeader> customHeaders) void
setEnableCustomHeaders
(Boolean enableCustomHeaders) setProvider
(String provider) setS3AccessKey
(String s3AccessKey) setS3ClientExecutionTimeout
(int s3ClientExecutionTimeout) setS3ConnectionTimeout
(int s3ConnectionTimeout) setS3Endpoint
(String s3Endpoint) setS3MaxConnections
(int s3MaxConnections) setS3PathStyleAccessEnabled
(boolean s3PathStyleAccessEnabled) setS3RegionName
(String s3RegionName) setS3RequestTimeout
(int s3RequestTimeout) setS3SecretKey
(String s3SecretKey) setS3SignerType
(String s3SignerType) setS3SocketTimeout
(int s3SocketTimeout) setS3TrustStore
(String s3TrustStore) setS3TrustStorePassword
(String s3TrustStorePassword) setStoragePath
(String storagePath) void
setSwiftConnectionTimeout
(int swiftConnectionTimeout) setSwiftDomain
(String swiftDomain) void
setSwiftHardRenewTokenDelayBeforeExpireTime
(long swiftHardRenewTokenDelayBeforeExpireTime) setSwiftKeystoneAuthUrl
(String swiftKeystoneAuthUrl) void
setSwiftMaxConnections
(int swiftMaxConnections) void
setSwiftMaxConnectionsPerRoute
(int swiftMaxConnectionsPerRoute) setSwiftNbRetries
(int swiftNbRetries) setSwiftPassword
(String swiftPassword) setSwiftProjectName
(String swiftProjectName) setSwiftRandomRangeSleepInMilliseconds
(int swiftRandomRangeSleepInMilliseconds) void
setSwiftReadTimeout
(int swiftReadTimeout) void
setSwiftSoftRenewTokenDelayBeforeExpireTime
(long swiftSoftRenewTokenDelayBeforeExpireTime) void
setSwiftTrustStore
(String swiftTrustStore) void
setSwiftTrustStorePassword
(String swiftTrustStorePassword) setSwiftUrl
(String swiftUrl) setSwiftUser
(String swiftUser) setSwiftWaitingTimeInMilliseconds
(int swiftWaitingTimeInMilliseconds) setTapeLibraryConfiguration
(TapeLibraryConfiguration tapeLibraryConfiguration) Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
getAdminBasicAuth, getJettyConfig, isAuthorizeTrackTotalHits, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthorizeTrackTotalHits, 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, setBaseUri, setBaseUrl
-
Constructor Details
-
StorageConfiguration
public StorageConfiguration()
-
-
Method Details
-
getSwiftUrl
- Returns:
- the swiftUrl
-
setSwiftUrl
- Parameters:
swiftUrl
- the swiftUrl to set- Returns:
- this
-
getProvider
- Returns:
- the provider
-
setProvider
- Parameters:
provider
- the provider to set- Returns:
- this
-
getSwiftKeystoneAuthUrl
- Returns:
- the swiftKeystoneAuthUrl
-
setSwiftKeystoneAuthUrl
- Parameters:
swiftKeystoneAuthUrl
- the swiftKeystoneAuthUrl to set- Returns:
- this
-
getSwiftDomain
- Returns:
- the tenantName
-
setSwiftDomain
- Parameters:
swiftDomain
- the tenantName to set- Returns:
- this
-
getSwiftUser
- Returns:
- the swiftUser
-
setSwiftUser
- Parameters:
swiftUser
- the userName to set- Returns:
- this
-
getSwiftPassword
- Returns:
- the swiftPassword
-
setSwiftPassword
- Parameters:
swiftPassword
- the swiftPassword to set- Returns:
- this
-
getStoragePath
- Returns:
- the storagePath
-
setStoragePath
- Parameters:
storagePath
- the storagePath to set- Returns:
- this
-
getContextPath
- Returns:
- the contextPath
-
setContextPath
- 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
- Specified by:
setAuthentication
in interfaceVitamApplicationConfigurationInterface
- Overrides:
setAuthentication
in classDefaultVitamApplicationConfiguration
- Parameters:
authentication
- to set ou unset- Returns:
- StorageConfiguration
-
getSwiftProjectName
-
setSwiftProjectName
-
getSwiftTrustStore
-
setSwiftTrustStore
-
getSwiftTrustStorePassword
-
setSwiftTrustStorePassword
-
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
-
setS3RegionName
-
getS3Endpoint
-
setS3Endpoint
-
getS3TrustStore
-
setS3TrustStore
-
getS3TrustStorePassword
-
setS3TrustStorePassword
-
getS3AccessKey
-
setS3AccessKey
-
getS3SecretKey
-
setS3SecretKey
-
getS3SignerType
-
setS3SignerType
-
isS3PathStyleAccessEnabled
public boolean isS3PathStyleAccessEnabled() -
setS3PathStyleAccessEnabled
-
getS3MaxConnections
public int getS3MaxConnections() -
setS3MaxConnections
-
getS3ConnectionTimeout
public int getS3ConnectionTimeout() -
setS3ConnectionTimeout
-
getS3SocketTimeout
public int getS3SocketTimeout() -
setS3SocketTimeout
-
getS3RequestTimeout
public int getS3RequestTimeout() -
setS3RequestTimeout
-
getS3ClientExecutionTimeout
public int getS3ClientExecutionTimeout() -
setS3ClientExecutionTimeout
-
getTapeLibraryConfiguration
-
setTapeLibraryConfiguration
public StorageConfiguration setTapeLibraryConfiguration(TapeLibraryConfiguration tapeLibraryConfiguration) -
getSwiftNbRetries
public int getSwiftNbRetries() -
setSwiftNbRetries
-
getSwiftWaitingTimeInMilliseconds
public int getSwiftWaitingTimeInMilliseconds() -
setSwiftWaitingTimeInMilliseconds
-
getSwiftRandomRangeSleepInMilliseconds
public int getSwiftRandomRangeSleepInMilliseconds() -
setSwiftRandomRangeSleepInMilliseconds
public StorageConfiguration setSwiftRandomRangeSleepInMilliseconds(int swiftRandomRangeSleepInMilliseconds) -
getEnableCustomHeaders
-
setEnableCustomHeaders
-
getCustomHeaders
-
setCustomHeaders
-
getBaseUrl
-