public class ElasticsearchRule
extends org.junit.rules.ExternalResource
Modifier and Type | Field and Description |
---|---|
static int |
TCP_PORT |
static String |
VITAM_CLUSTER |
Constructor and Description |
---|
ElasticsearchRule(String... indexesToBePurged) |
Modifier and Type | Method and Description |
---|---|
ElasticsearchRule |
addIndexToBePurged(String indexName) |
protected void |
after() |
void |
close() |
void |
deleteIndex(org.elasticsearch.client.Client client,
String indexName) |
void |
deleteIndexes() |
void |
deleteIndexesWithoutClose() |
org.elasticsearch.client.Client |
getClient()
get the Client
|
static String |
getClusterName()
get the cluster name
|
static int |
getTcpPort()
get the tcp port
|
void |
handleAfter()
Used when annotated @ClassRule
|
void |
handleAfter(Set<String> collections) |
static void |
purge(org.elasticsearch.client.Client client,
String indexName) |
public static final int TCP_PORT
public static final String VITAM_CLUSTER
public ElasticsearchRule(String... indexesToBePurged)
protected void after()
after
in class org.junit.rules.ExternalResource
public static void purge(org.elasticsearch.client.Client client, String indexName)
public final void deleteIndex(org.elasticsearch.client.Client client, String indexName)
public void deleteIndexesWithoutClose()
public void deleteIndexes()
public ElasticsearchRule addIndexToBePurged(String indexName)
public void handleAfter()
public static String getClusterName()
public static int getTcpPort()
public org.elasticsearch.client.Client getClient()
public void close()
Copyright © 2019 Vitam. All rights reserved.