Class MongoDbAccessAdminFactory
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.common.server.MongoDbAccessAdminFactory
-
public final class MongoDbAccessAdminFactory extends java.lang.Object
Factory to get MongoDbAccess for Admin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MongoDbAccessAdminImpl
create(DbConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
Creation of one MongoDbAccessstatic MongoDbAccessAdminImpl
create(DbConfiguration configuration, java.lang.String clusterName, java.util.List<ElasticsearchNode> nodes, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
Creation of one MongoDbAccess and initialize elasticsearch access
-
-
-
Method Detail
-
create
public static MongoDbAccessAdminImpl create(DbConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
Creation of one MongoDbAccess- Parameters:
configuration
- config of MongoDbAcessontologyLoader
-- Returns:
- the MongoDbAccess
- Throws:
java.lang.IllegalArgumentException
- if argument is null
-
create
public static MongoDbAccessAdminImpl create(DbConfiguration configuration, java.lang.String clusterName, java.util.List<ElasticsearchNode> nodes, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
Creation of one MongoDbAccess and initialize elasticsearch access- Parameters:
configuration
- config of MongoDbAcessclusterName
- the cluster namenodes
- the list of Elasticsearch nodesontologyLoader
-indexManager
-- Returns:
- the MongoDbAccess
- Throws:
java.lang.IllegalArgumentException
- if argument is null
-
-