Package fr.gouv.vitam.functional.administration.common.server

# Class ElasticsearchAccessAdminFactory

java.lang.Object
fr.gouv.vitam.functional.administration.common.server.ElasticsearchAccessAdminFactory

public final class ElasticsearchAccessAdminFactory extends Object
Factory to get ElasticsearchAccess for Admin

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static final ElasticsearchAccessFunctionalAdmin`
  `create(AdminManagementConfiguration configuration, ElasticsearchFunctionalAdminIndexManager indexManager)`
  Creation of one ElasticsearchDbAcess
  `static ElasticsearchAccessFunctionalAdmin`
  `create(String clusterName, List<ElasticsearchNode> nodes, ElasticsearchFunctionalAdminIndexManager indexManager)`
  Creation of one ElasticsearchDbAcess

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### create

    public static final ElasticsearchAccessFunctionalAdmin create(AdminManagementConfiguration configuration, ElasticsearchFunctionalAdminIndexManager indexManager)
    Creation of one ElasticsearchDbAcess
    Parameters:
      `configuration` - config of ElasticsearchDbAcess
      `indexManager` -
    Returns:
      the ElasticsearchDbAcess
    Throws:
      `VitamException` - if elasticsearch list nodes is empty
      `IllegalArgumentException` - if argument is null

  - ### create

    public static ElasticsearchAccessFunctionalAdmin create(String clusterName, List<ElasticsearchNode> nodes, ElasticsearchFunctionalAdminIndexManager indexManager)
    Creation of one ElasticsearchDbAcess
    Parameters:
      `clusterName` - the cluster name
      `nodes` - the node list
      `indexManager` -
    Returns:
      the ElasticsearchDbAcess
    Throws:
      `VitamException` - if elasticsearch list nodes is empty
      `IllegalArgumentException` - if argument is null