Class ElasticsearchIndexAlias
- java.lang.Object
-
- fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchIndexAlias
-
public class ElasticsearchIndexAlias extends java.lang.ObjectRepresents an elasticsearch index or index alias
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticsearchIndexAliascreateUniqueIndexName()java.lang.StringgetName()booleanisValidAliasOfIndex(ElasticsearchIndexAlias indexName)static ElasticsearchIndexAliasofCrossTenantCollection(java.lang.String collectionName)Builder for collection that store documents of all tenants in same index (functional admin collections)static ElasticsearchIndexAliasofFullIndexName(java.lang.String fullIndexName)Stored for building indexes with exact full name (eg.static ElasticsearchIndexAliasofMultiTenantCollection(java.lang.String collectionName, int tenantId)Builder for collection that store documents per-tenant indexes (unit/objectgroup/logbookoperation collections when tenant is not in a tenant group)static ElasticsearchIndexAliasofMultiTenantCollection(java.lang.String collectionName, java.lang.String tenantGroupName)Builder for collection that store documents per-tenant-group indexes (unit/objectgroup/logbookoperation collections when tenant is in a tenant group)java.lang.StringtoString()
-
-
-
Method Detail
-
ofCrossTenantCollection
public static ElasticsearchIndexAlias ofCrossTenantCollection(java.lang.String collectionName)
Builder for collection that store documents of all tenants in same index (functional admin collections)
-
ofMultiTenantCollection
public static ElasticsearchIndexAlias ofMultiTenantCollection(java.lang.String collectionName, int tenantId)
Builder for collection that store documents per-tenant indexes (unit/objectgroup/logbookoperation collections when tenant is not in a tenant group)
-
ofMultiTenantCollection
public static ElasticsearchIndexAlias ofMultiTenantCollection(java.lang.String collectionName, java.lang.String tenantGroupName)
Builder for collection that store documents per-tenant-group indexes (unit/objectgroup/logbookoperation collections when tenant is in a tenant group)
-
ofFullIndexName
public static ElasticsearchIndexAlias ofFullIndexName(java.lang.String fullIndexName)
Stored for building indexes with exact full name (eg. index creation / alias switching)
-
getName
public java.lang.String getName()
-
isValidAliasOfIndex
public boolean isValidAliasOfIndex(ElasticsearchIndexAlias indexName)
-
createUniqueIndexName
public ElasticsearchIndexAlias createUniqueIndexName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-