Class MetaDataConfiguration
java.lang.Object
fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
fr.gouv.vitam.metadata.core.config.MetaDataConfiguration
- All Implemented Interfaces:
DbConfiguration
,VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
MetaDataConfiguration contains database access informations
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
Constructor Summary
ConstructorDescriptionMetaDataConfiguration empty constructor for YAMLFactoryMetaDataConfiguration
(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, String dbUserName, String dbPassword, MappingLoader mappingLoader) MetaDataConfiguration constructor with authenticationMetaDataConfiguration
(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader) MetaDataConfiguration constructor -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
boolean
short
long
int
long
int
int
boolean
int
int
int
short
long
boolean
setArchiveUnitProfileCacheMaxEntries
(int archiveUnitProfileCacheMaxEntries) setArchiveUnitProfileCacheTimeoutInSeconds
(int archiveUnitProfileCacheTimeoutInSeconds) setClusterName
(String clusterName) void
setCollectModule
(Boolean collectModule) setContextPath
(String contextPath) void
setCriticalDipTimeToLiveInMinutes
(int criticalDipTimeToLiveInMinutes) void
setDataConsistencyAuditOplogMaxSize
(Integer dataConsistencyAuditOplogMaxSize) void
setDipTimeToLiveInMinutes
(int dipTimeToLiveInMinutes) void
setElasticsearchConfigurationFile
(String elasticsearchConfigurationFile) void
setElasticsearchExternalMetadataMappings
(List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings) setElasticsearchNodes
(List<ElasticsearchNode> elasticsearchNodes) setEnableDataConsistencyRectificationMode
(boolean enableDataConsistencyRectificationMode) setIndexationConfiguration
(MetadataIndexationConfiguration indexationConfiguration) void
setIsDataConsistencyAuditRunnable
(boolean dataConsistencyAuditRunnable) void
setMongodShardsConf
(MongoDbShardConf mongodShardsConf) void
setObjectsStreamExecutionLimit
(short objectsStreamExecutionLimit) void
setObjectsStreamThreshold
(long objectsStreamThreshold) void
setPersistentIdentifierReconstructionBulkSize
(int persistentIdentifierReconstructionBulkSize) void
setPersistentIdentifierReconstructionDelayInMinutes
(long persistentIdentifierReconstructionDelayInMinutes) void
setPersistentIdentifierReconstructionThreadPoolSize
(int persistentIdentifierReconstructionThreadPoolSize) void
setReconstructionMetricsCacheDurationInMinutes
(int reconstructionMetricsCacheDurationInMinutes) void
setRefreshElasticIndexPostBulkIndexing
(Boolean refreshElasticIndexPostBulkIndexing) setSchemaValidatorCacheMaxEntries
(int schemaValidatorCacheMaxEntries) setSchemaValidatorCacheTimeoutInSeconds
(int schemaValidatorCacheTimeoutInSeconds) void
setTransfersSIPTimeToLiveInMinutes
(int transfersSIPTimeToLiveInMinutes) void
setUnitsStreamExecutionLimit
(short unitsStreamExecutionLimit) void
setUnitsStreamThreshold
(long unitsStreamThreshold) void
setUrlProcessing
(String urlProcessing) setWorkspaceUrl
(String workspaceUrl) 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, 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.VitamApplicationConfiguration
isEnableSession, isEnableXsrFilter, setEnableSession, setEnableXsrFilter
Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfigurationInterface
getBaseUri, getJettyConfig, isAuthentication, isTenantFilter, setAuthentication, setBaseUri, setBaseUrl, setJettyConfig, setTenantFilter
-
Constructor Details
-
MetaDataConfiguration
public MetaDataConfiguration(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader) MetaDataConfiguration constructor- Parameters:
mongoDbNodes
- database server IP addresses and portsdbName
- database nameclusterName
- cluster nameelasticsearchNodes
- elasticsearch nodes
-
MetaDataConfiguration
public MetaDataConfiguration(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, String dbUserName, String dbPassword, MappingLoader mappingLoader) MetaDataConfiguration constructor with authentication- Parameters:
mongoDbNodes
- database server IP addresses and portsdbName
- database nameclusterName
- cluster nameelasticsearchNodes
- elasticsearch nodesdbAuthentication
- if authentication modedbUserName
- db user namedbPassword
- db password
-
MetaDataConfiguration
public MetaDataConfiguration()MetaDataConfiguration empty constructor for YAMLFactory
-
-
Method Details
-
getContextPath
- Returns:
- the contextPath
-
setContextPath
- Parameters:
contextPath
- the contextPath to set- Returns:
- this
-
getCollectModule
-
setCollectModule
-
getClusterName
- Returns:
- the clusterName
-
setClusterName
- Parameters:
clusterName
- the clusterName to set- Returns:
- this
-
getElasticsearchNodes
- Returns:
- the elasticsearchNodes
-
setElasticsearchNodes
- Parameters:
elasticsearchNodes
- the elasticsearchNodes to set- Returns:
- MetaDataConfiguration
-
getWorkspaceUrl
-
setWorkspaceUrl
-
getArchiveUnitProfileCacheMaxEntries
public int getArchiveUnitProfileCacheMaxEntries() -
setArchiveUnitProfileCacheMaxEntries
public MetaDataConfiguration setArchiveUnitProfileCacheMaxEntries(int archiveUnitProfileCacheMaxEntries) -
getArchiveUnitProfileCacheTimeoutInSeconds
public int getArchiveUnitProfileCacheTimeoutInSeconds() -
setArchiveUnitProfileCacheTimeoutInSeconds
public MetaDataConfiguration setArchiveUnitProfileCacheTimeoutInSeconds(int archiveUnitProfileCacheTimeoutInSeconds) -
getSchemaValidatorCacheMaxEntries
public int getSchemaValidatorCacheMaxEntries() -
setSchemaValidatorCacheMaxEntries
-
getSchemaValidatorCacheTimeoutInSeconds
public int getSchemaValidatorCacheTimeoutInSeconds() -
setSchemaValidatorCacheTimeoutInSeconds
public MetaDataConfiguration setSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds) -
getUrlProcessing
-
setUrlProcessing
-
getDipTimeToLiveInMinutes
public int getDipTimeToLiveInMinutes() -
setDipTimeToLiveInMinutes
public void setDipTimeToLiveInMinutes(int dipTimeToLiveInMinutes) -
getTransfersSIPTimeToLiveInMinutes
public int getTransfersSIPTimeToLiveInMinutes() -
setTransfersSIPTimeToLiveInMinutes
public void setTransfersSIPTimeToLiveInMinutes(int transfersSIPTimeToLiveInMinutes) -
getCriticalDipTimeToLiveInMinutes
public int getCriticalDipTimeToLiveInMinutes() -
setCriticalDipTimeToLiveInMinutes
public void setCriticalDipTimeToLiveInMinutes(int criticalDipTimeToLiveInMinutes) -
getElasticsearchExternalMetadataMappings
-
setElasticsearchExternalMetadataMappings
public void setElasticsearchExternalMetadataMappings(List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings) -
getUnitsStreamThreshold
public long getUnitsStreamThreshold() -
setUnitsStreamThreshold
public void setUnitsStreamThreshold(long unitsStreamThreshold) -
getObjectsStreamThreshold
public long getObjectsStreamThreshold() -
setObjectsStreamThreshold
public void setObjectsStreamThreshold(long objectsStreamThreshold) -
getUnitsStreamExecutionLimit
public short getUnitsStreamExecutionLimit() -
setUnitsStreamExecutionLimit
public void setUnitsStreamExecutionLimit(short unitsStreamExecutionLimit) -
getObjectsStreamExecutionLimit
public short getObjectsStreamExecutionLimit() -
setObjectsStreamExecutionLimit
public void setObjectsStreamExecutionLimit(short objectsStreamExecutionLimit) -
getIndexationConfiguration
-
setIndexationConfiguration
public MetaDataConfiguration setIndexationConfiguration(MetadataIndexationConfiguration indexationConfiguration) -
getIsDataConsistencyAuditRunnable
public boolean getIsDataConsistencyAuditRunnable() -
setIsDataConsistencyAuditRunnable
public void setIsDataConsistencyAuditRunnable(boolean dataConsistencyAuditRunnable) -
isEnableDataConsistencyRectificationMode
public boolean isEnableDataConsistencyRectificationMode() -
setEnableDataConsistencyRectificationMode
public MetaDataConfiguration setEnableDataConsistencyRectificationMode(boolean enableDataConsistencyRectificationMode) -
getDataConsistencyAuditOplogMaxSize
-
setDataConsistencyAuditOplogMaxSize
-
getMongodShardsConf
-
setMongodShardsConf
-
getTimeToLiveConfiguration
-
getReconstructionMetricsCacheDurationInMinutes
public int getReconstructionMetricsCacheDurationInMinutes() -
setReconstructionMetricsCacheDurationInMinutes
public void setReconstructionMetricsCacheDurationInMinutes(int reconstructionMetricsCacheDurationInMinutes) -
getPersistentIdentifierReconstructionDelayInMinutes
public long getPersistentIdentifierReconstructionDelayInMinutes() -
setPersistentIdentifierReconstructionDelayInMinutes
public void setPersistentIdentifierReconstructionDelayInMinutes(long persistentIdentifierReconstructionDelayInMinutes) -
getBaseUrl
-
getPersistentIdentifierReconstructionThreadPoolSize
public int getPersistentIdentifierReconstructionThreadPoolSize() -
setPersistentIdentifierReconstructionThreadPoolSize
public void setPersistentIdentifierReconstructionThreadPoolSize(int persistentIdentifierReconstructionThreadPoolSize) -
getPersistentIdentifierReconstructionBulkSize
public int getPersistentIdentifierReconstructionBulkSize() -
setPersistentIdentifierReconstructionBulkSize
public void setPersistentIdentifierReconstructionBulkSize(int persistentIdentifierReconstructionBulkSize) -
getRefreshElasticIndexPostBulkIndexing
public boolean getRefreshElasticIndexPostBulkIndexing() -
setRefreshElasticIndexPostBulkIndexing
-
getElasticsearchConfigurationFile
-
setElasticsearchConfigurationFile
-