Class MongoDbAccessAdminFactory
java.lang.Object
fr.gouv.vitam.functional.administration.common.server.MongoDbAccessAdminFactory
Factory to get MongoDbAccess for Admin
-
Method Summary
Modifier and TypeMethodDescriptionstatic MongoDbAccessAdminImpl
create
(DbConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager) Creation of one MongoDbAccessstatic MongoDbAccessAdminImpl
create
(DbConfiguration configuration, String clusterName, List<ElasticsearchNode> nodes, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager) Creation of one MongoDbAccess and initialize elasticsearch access
-
Method Details
-
create
public static MongoDbAccessAdminImpl create(DbConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager) Creation of one MongoDbAccess- Parameters:
configuration
- config of MongoDbAcessontologyLoader
-- Returns:
- the MongoDbAccess
- Throws:
IllegalArgumentException
- if argument is null
-
create
public static MongoDbAccessAdminImpl create(DbConfiguration configuration, String clusterName, 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:
IllegalArgumentException
- if argument is null
-