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
public class MetaDataConfiguration extends DbConfigurationImpl
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
Constructors Constructor Description MetaDataConfiguration()
MetaDataConfiguration empty constructor for YAMLFactoryMetaDataConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, java.lang.String dbUserName, java.lang.String dbPassword, MappingLoader mappingLoader)
MetaDataConfiguration constructor with authenticationMetaDataConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader)
MetaDataConfiguration constructor
-
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, isAuthentication, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthentication, 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, getStaticContent, isAuthentication, isTenantFilter, setAuthentication, setBaseUri, setBaseUrl, setJettyConfig, setStaticContent, setTenantFilter
-
-
-
-
Constructor Detail
-
MetaDataConfiguration
public MetaDataConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader)
MetaDataConfiguration constructor- Parameters:
mongoDbNodes
- database server IP addresses and portsdbName
- database nameclusterName
- cluster nameelasticsearchNodes
- elasticsearch nodes
-
MetaDataConfiguration
public MetaDataConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, java.lang.String dbUserName, java.lang.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 Detail
-
getClusterName
public java.lang.String getClusterName()
- Returns:
- the clusterName
-
setClusterName
public MetaDataConfiguration setClusterName(java.lang.String clusterName)
- Parameters:
clusterName
- the clusterName to set- Returns:
- this
-
getElasticsearchNodes
public java.util.List<ElasticsearchNode> getElasticsearchNodes()
- Returns:
- the elasticsearchNodes
-
setElasticsearchNodes
public MetaDataConfiguration setElasticsearchNodes(java.util.List<ElasticsearchNode> elasticsearchNodes)
- Parameters:
elasticsearchNodes
- the elasticsearchNodes to set- Returns:
- MetaDataConfiguration
-
getWorkspaceUrl
public java.lang.String getWorkspaceUrl()
-
setWorkspaceUrl
public MetaDataConfiguration setWorkspaceUrl(java.lang.String workspaceUrl)
-
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
public MetaDataConfiguration setSchemaValidatorCacheMaxEntries(int schemaValidatorCacheMaxEntries)
-
getSchemaValidatorCacheTimeoutInSeconds
public int getSchemaValidatorCacheTimeoutInSeconds()
-
setSchemaValidatorCacheTimeoutInSeconds
public MetaDataConfiguration setSchemaValidatorCacheTimeoutInSeconds(int schemaValidatorCacheTimeoutInSeconds)
-
getUrlProcessing
public java.lang.String getUrlProcessing()
-
setUrlProcessing
public void setUrlProcessing(java.lang.String urlProcessing)
-
getDipTimeToLiveInMinutes
public int getDipTimeToLiveInMinutes()
-
setDipTimeToLiveInMinutes
public MetaDataConfiguration setDipTimeToLiveInMinutes(int dipTimeToLiveInMinutes)
-
getTransfersSIPTimeToLiveInMinutes
public int getTransfersSIPTimeToLiveInMinutes()
-
setTransfersSIPTimeToLiveInMinutes
public void setTransfersSIPTimeToLiveInMinutes(int transfersSIPTimeToLiveInMinutes)
-
getElasticsearchExternalMetadataMappings
public java.util.List<ElasticsearchExternalMetadataMapping> getElasticsearchExternalMetadataMappings()
-
setElasticsearchExternalMetadataMappings
public void setElasticsearchExternalMetadataMappings(java.util.List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings)
-
getIndexationConfiguration
public MetadataIndexationConfiguration getIndexationConfiguration()
-
setIndexationConfiguration
public MetaDataConfiguration setIndexationConfiguration(MetadataIndexationConfiguration indexationConfiguration)
-
getIsDataConsistencyAuditRunnable
public java.lang.Boolean getIsDataConsistencyAuditRunnable()
-
setIsDataConsistencyAuditRunnable
public void setIsDataConsistencyAuditRunnable(java.lang.Boolean dataConsistencyAuditRunnable)
-
getDataConsistencyAuditOplogMaxSize
public java.lang.Integer getDataConsistencyAuditOplogMaxSize()
-
setDataConsistencyAuditOplogMaxSize
public void setDataConsistencyAuditOplogMaxSize(java.lang.Integer dataConsistencyAuditOplogMaxSize)
-
getMongodShardsConf
public MongoDbShardConf getMongodShardsConf()
-
setMongodShardsConf
public void setMongodShardsConf(MongoDbShardConf mongodShardsConf)
-
-