Class OfferConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
-
- fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
-
- fr.gouv.vitam.storage.offers.rest.OfferConfiguration
-
- All Implemented Interfaces:
DbConfiguration
,VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
public class OfferConfiguration extends DbConfigurationImpl
Offer configuration
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
-
Constructor Summary
Constructors Constructor Description OfferConfiguration()
-
Method Summary
-
Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
getDbName, getDbPassword, getDbUserName, getMongoDbNodes, isDbAuthentication, setDbAuthentication, setDbName, setDbPassword, setDbUserName, setMongoDbNodes
-
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.VitamApplicationConfiguration
isEnableSession, isEnableXsrFilter, setEnableSession, setEnableXsrFilter
-
Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfigurationInterface
getBaseUri, getBaseUrl, getJettyConfig, isTenantFilter, setBaseUri, setBaseUrl, setJettyConfig, setTenantFilter
-
-
-
-
Method Detail
-
getProvider
public java.lang.String getProvider()
- Returns:
- the provider
-
setProvider
public OfferConfiguration setProvider(java.lang.String provider)
- Parameters:
provider
- the provider to set- Returns:
- this
-
getSwiftKeystoneAuthUrl
public java.lang.String getSwiftKeystoneAuthUrl()
- Returns:
- the swiftKeystoneAuthUrl
-
setSwiftKeystoneAuthUrl
public OfferConfiguration setSwiftKeystoneAuthUrl(java.lang.String swiftKeystoneAuthUrl)
- Parameters:
swiftKeystoneAuthUrl
- the swiftKeystoneAuthUrl to set- Returns:
- this
-
getSwiftDomain
public java.lang.String getSwiftDomain()
- Returns:
- the tenantName
-
setSwiftDomain
public OfferConfiguration setSwiftDomain(java.lang.String swiftDomain)
- Parameters:
swiftDomain
- the tenantName to set- Returns:
- this
-
getSwiftUser
public java.lang.String getSwiftUser()
- Returns:
- the swiftUser
-
setSwiftUser
public OfferConfiguration setSwiftUser(java.lang.String swiftUser)
- Parameters:
swiftUser
- the userName to set- Returns:
- this
-
getSwiftPassword
public java.lang.String getSwiftPassword()
- Returns:
- the swiftPassword
-
setSwiftPassword
public OfferConfiguration setSwiftPassword(java.lang.String swiftPassword)
- Parameters:
swiftPassword
- the swiftPassword to set- Returns:
- this
-
getStoragePath
public java.lang.String getStoragePath()
- Returns:
- the storagePath
-
setStoragePath
public OfferConfiguration setStoragePath(java.lang.String storagePath)
- Parameters:
storagePath
- the storagePath to set- Returns:
- this
-
getContextPath
public java.lang.String getContextPath()
- Returns:
- the contextPath
-
setContextPath
public OfferConfiguration 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 OfferConfiguration setAuthentication(boolean authentication)
- Specified by:
setAuthentication
in interfaceVitamApplicationConfigurationInterface
- Overrides:
setAuthentication
in classDefaultVitamApplicationConfiguration
- Parameters:
authentication
- to set or unset- Returns:
- OfferConfiguration
-
getSwiftProjectName
public java.lang.String getSwiftProjectName()
- Returns:
- swiftProjectName
-
setSwiftProjectName
public OfferConfiguration setSwiftProjectName(java.lang.String swiftProjectName)
- Parameters:
swiftProjectName
- the swiftProjectName to set or unset- Returns:
- OfferConfiguration
-
getOfferLogCompactionConfiguration
public OfferLogCompactionConfiguration getOfferLogCompactionConfiguration()
-
setOfferLogCompactionConfiguration
public OfferConfiguration setOfferLogCompactionConfiguration(OfferLogCompactionConfiguration offerLogCompactionConfiguration)
-
getMaxBatchThreadPoolSize
public int getMaxBatchThreadPoolSize()
-
setMaxBatchThreadPoolSize
public OfferConfiguration setMaxBatchThreadPoolSize(int maxBatchThreadPoolSize)
-
getBatchMetadataComputationTimeout
public int getBatchMetadataComputationTimeout()
-
setBatchMetadataComputationTimeout
public OfferConfiguration setBatchMetadataComputationTimeout(int batchMetadataComputationTimeout)
-
-