public class DefaultElasticsearchSchemaDropper extends Object implements ElasticsearchSchemaDropper, Startable, Stoppable
ElasticsearchSchemaDropper
implementation.Constructor and Description |
---|
DefaultElasticsearchSchemaDropper() |
Modifier and Type | Method and Description |
---|---|
void |
drop(String indexName,
ExecutionOptions executionOptions)
Drops an index, throwing an exception if dropping fails.
|
void |
dropIfExisting(String indexName,
ExecutionOptions executionOptions)
Drops an index, throwing an exception if dropping fails.
|
void |
start(Properties properties,
BuildContext context)
Start phase notification.
|
void |
stop()
Stop phase notification
|
public void start(Properties properties, BuildContext context)
Startable
public void stop()
Stoppable
public void drop(String indexName, ExecutionOptions executionOptions)
ElasticsearchSchemaDropper
drop
in interface ElasticsearchSchemaDropper
indexName
- The name of the index to drop.executionOptions
- The execution options, giving more context information.public void dropIfExisting(String indexName, ExecutionOptions executionOptions)
ElasticsearchSchemaDropper
This method will skip operations silently if the index does not exist.
dropIfExisting
in interface ElasticsearchSchemaDropper
indexName
- The name of the index to drop.executionOptions
- The execution options, giving more context information.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved