Class StorageConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
-
- fr.gouv.vitam.storage.engine.server.rest.StorageConfiguration
-
- All Implemented Interfaces:
VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
public final class StorageConfiguration extends DefaultVitamApplicationConfiguration
-
-
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()
StorageConfiguration empty constructor for YAMLFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLoggingDirectory()
int
getMinBulkWriteTimeoutMsPerObject()
int
getMinWriteTimeoutMs()
int
getOfferSyncAccessRequestCheckWaitingTime()
int
getOfferSyncFirstAttemptWaitingTime()
int
getOfferSynchronizationBulkSize()
int
getOfferSyncNumberOfRetries()
int
getOfferSyncThreadPoolSize()
int
getOfferSyncWaitingTime()
java.lang.String
getP12LogbookFile()
java.lang.String
getP12LogbookPassword()
int
getStorageLogBackupThreadPoolSize()
int
getStorageLogTraceabilityThreadPoolSize()
java.lang.Integer
getStorageTraceabilityOverlapDelay()
Gets the overlap delay (in seconds) for logbook operation traceability events.java.lang.Integer
getTimeoutMsPerKB()
java.lang.String
getUrlWorkspace()
java.lang.String
getZippingDirecorty()
java.lang.Boolean
isReadOnly()
void
setLoggingDirectory(java.lang.String loggingDirectory)
StorageConfiguration
setMinBulkWriteTimeoutMsPerObject(int minBulkWriteTimeoutMsPerObject)
StorageConfiguration
setMinWriteTimeoutMs(int minWriteTimeoutMs)
void
setOfferSyncAccessRequestCheckWaitingTime(int offerSyncAccessRequestCheckWaitingTime)
void
setOfferSyncFirstAttemptWaitingTime(int offerSyncFirstAttemptWaitingTime)
StorageConfiguration
setOfferSynchronizationBulkSize(int offerSynchronizationBulkSize)
void
setOfferSyncNumberOfRetries(int offerSyncNumberOfRetries)
StorageConfiguration
setOfferSyncThreadPoolSize(int offerSyncThreadPoolSize)
void
setOfferSyncWaitingTime(int offerSyncWaitingTime)
void
setP12LogbookFile(java.lang.String p12LogbookFile)
void
setP12LogbookPassword(java.lang.String p12LogbookPassword)
StorageConfiguration
setReadOnly(java.lang.Boolean readOnly)
void
setStorageLogBackupThreadPoolSize(int storageLogBackupThreadPoolSize)
void
setStorageLogTraceabilityThreadPoolSize(int storageLogTraceabilityThreadPoolSize)
void
setStorageTraceabilityOverlapDelay(java.lang.Integer storageTraceabilityOverlapDelay)
Sets the overlap delay (in seconds) for logbook operation traceability events.StorageConfiguration
setTimeoutMsPerKB(java.lang.Integer timeoutMsPerKB)
StorageConfiguration
setUrlWorkspace(java.lang.String urlWorkspace)
void
setZippingDirecorty(java.lang.String zippingDirecorty)
-
Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
getAdminBasicAuth, getJettyConfig, isAuthentication, isAuthorizeTrackTotalHits, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthentication, 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, getBaseUrl, setBaseUri, setBaseUrl
-
-
-
-
Method Detail
-
getUrlWorkspace
public java.lang.String getUrlWorkspace()
- Returns:
- the urlWorkspace
-
setUrlWorkspace
public StorageConfiguration setUrlWorkspace(java.lang.String urlWorkspace)
- Parameters:
urlWorkspace
- the urlWorkspace to set- Returns:
- this
-
getTimeoutMsPerKB
public java.lang.Integer getTimeoutMsPerKB()
- Returns:
- the timeout in millisecond for one kB
-
setTimeoutMsPerKB
public StorageConfiguration setTimeoutMsPerKB(java.lang.Integer timeoutMsPerKB)
- Parameters:
timeoutMsPerKB
- the timeout for on kB transfered in milliseconds- Returns:
- this
-
getLoggingDirectory
public java.lang.String getLoggingDirectory()
- Returns:
- loggingDirectory
-
setLoggingDirectory
public void setLoggingDirectory(java.lang.String loggingDirectory)
- Parameters:
loggingDirectory
-
-
getZippingDirecorty
public java.lang.String getZippingDirecorty()
- Returns:
- zippingDirecorty
-
setZippingDirecorty
public void setZippingDirecorty(java.lang.String zippingDirecorty)
- Parameters:
zippingDirecorty
-
-
getP12LogbookPassword
public java.lang.String getP12LogbookPassword()
- Returns:
- password of p12
-
setP12LogbookPassword
public void setP12LogbookPassword(java.lang.String p12LogbookPassword)
- Parameters:
p12LogbookPassword
- file to set
-
getP12LogbookFile
public java.lang.String getP12LogbookFile()
- Returns:
- p12 logbook file
-
setP12LogbookFile
public void setP12LogbookFile(java.lang.String p12LogbookFile)
- Parameters:
p12LogbookFile
- file to set
-
getStorageTraceabilityOverlapDelay
public java.lang.Integer getStorageTraceabilityOverlapDelay()
Gets the overlap delay (in seconds) for logbook operation traceability events. Used to catch up possibly missed events due to clock difference.- Returns:
- The overlap delay (in seconds).
-
setStorageTraceabilityOverlapDelay
public void setStorageTraceabilityOverlapDelay(java.lang.Integer storageTraceabilityOverlapDelay)
Sets the overlap delay (in seconds) for logbook operation traceability events.
-
getOfferSynchronizationBulkSize
public int getOfferSynchronizationBulkSize()
-
setOfferSynchronizationBulkSize
public StorageConfiguration setOfferSynchronizationBulkSize(int offerSynchronizationBulkSize)
-
getOfferSyncThreadPoolSize
public int getOfferSyncThreadPoolSize()
-
setOfferSyncThreadPoolSize
public StorageConfiguration setOfferSyncThreadPoolSize(int offerSyncThreadPoolSize)
-
getOfferSyncNumberOfRetries
public int getOfferSyncNumberOfRetries()
-
setOfferSyncNumberOfRetries
public void setOfferSyncNumberOfRetries(int offerSyncNumberOfRetries)
-
getOfferSyncFirstAttemptWaitingTime
public int getOfferSyncFirstAttemptWaitingTime()
-
setOfferSyncFirstAttemptWaitingTime
public void setOfferSyncFirstAttemptWaitingTime(int offerSyncFirstAttemptWaitingTime)
-
getOfferSyncWaitingTime
public int getOfferSyncWaitingTime()
-
setOfferSyncWaitingTime
public void setOfferSyncWaitingTime(int offerSyncWaitingTime)
-
getOfferSyncAccessRequestCheckWaitingTime
public int getOfferSyncAccessRequestCheckWaitingTime()
-
setOfferSyncAccessRequestCheckWaitingTime
public void setOfferSyncAccessRequestCheckWaitingTime(int offerSyncAccessRequestCheckWaitingTime)
-
getStorageLogBackupThreadPoolSize
public int getStorageLogBackupThreadPoolSize()
-
setStorageLogBackupThreadPoolSize
public void setStorageLogBackupThreadPoolSize(int storageLogBackupThreadPoolSize)
-
getStorageLogTraceabilityThreadPoolSize
public int getStorageLogTraceabilityThreadPoolSize()
-
setStorageLogTraceabilityThreadPoolSize
public void setStorageLogTraceabilityThreadPoolSize(int storageLogTraceabilityThreadPoolSize)
-
getMinWriteTimeoutMs
public int getMinWriteTimeoutMs()
-
setMinWriteTimeoutMs
public StorageConfiguration setMinWriteTimeoutMs(int minWriteTimeoutMs)
-
getMinBulkWriteTimeoutMsPerObject
public int getMinBulkWriteTimeoutMsPerObject()
-
setMinBulkWriteTimeoutMsPerObject
public StorageConfiguration setMinBulkWriteTimeoutMsPerObject(int minBulkWriteTimeoutMsPerObject)
-
isReadOnly
public java.lang.Boolean isReadOnly()
-
setReadOnly
public StorageConfiguration setReadOnly(java.lang.Boolean readOnly)
-
-