Class ElasticsearchMetadataIndexManager
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.config.ElasticsearchMetadataIndexManager
-
public class ElasticsearchMetadataIndexManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchMetadataIndexManager(MetaDataConfiguration configuration, java.util.List<java.lang.Integer> tenantIds, MappingLoader mappingLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.Integer>
getDedicatedTenants()
ElasticsearchIndexAliasResolver
getElasticsearchIndexAliasResolver(MetadataCollections collection)
ElasticsearchIndexSettings
getElasticsearchIndexSettings(MetadataCollections collection, int tenantId)
java.lang.String
getTenantGroup(int tenantId)
java.util.Collection<java.lang.String>
getTenantGroups()
java.util.List<java.lang.Integer>
getTenantGroupTenants(java.lang.String tenantGroupName)
boolean
isGroupedTenant(java.lang.Integer tenantId)
-
-
-
Constructor Detail
-
ElasticsearchMetadataIndexManager
public ElasticsearchMetadataIndexManager(MetaDataConfiguration configuration, java.util.List<java.lang.Integer> tenantIds, MappingLoader mappingLoader)
-
-
Method Detail
-
getElasticsearchIndexAliasResolver
public ElasticsearchIndexAliasResolver getElasticsearchIndexAliasResolver(MetadataCollections collection)
-
getElasticsearchIndexSettings
public ElasticsearchIndexSettings getElasticsearchIndexSettings(MetadataCollections collection, int tenantId)
-
getDedicatedTenants
public java.util.Collection<java.lang.Integer> getDedicatedTenants()
-
getTenantGroups
public java.util.Collection<java.lang.String> getTenantGroups()
-
getTenantGroupTenants
public java.util.List<java.lang.Integer> getTenantGroupTenants(java.lang.String tenantGroupName)
-
isGroupedTenant
public boolean isGroupedTenant(java.lang.Integer tenantId)
-
getTenantGroup
public java.lang.String getTenantGroup(int tenantId)
-
-