3a2c698ce0
Action is a class that encapsulates meta information about an action that allows it to be called remotely, specifically the action name and response type. With recent refactoring, the action class can now be constructed as a static constant, instead of needing to create a subclass. This makes the old pattern of creating a singleton INSTANCE both misnamed and lacking a common placement. This commit renames Action to ActionType, thus allowing the old INSTANCE naming pattern to be TYPE on the transport action itself. ActionType also conveys that this class is also not the action itself, although this change does not rename any concrete classes as those will be removed organically as they are converted to TYPE constants. relates #34389 |
||
---|---|---|
.. | ||
src/main/java/org/elasticsearch/plugin/noop | ||
README.md | ||
build.gradle |
README.md
Purpose
This plugin provides empty REST and transport endpoints for bulk indexing and search. It is used to avoid accidental server-side bottlenecks in client-side benchmarking.
Build Instructions
Build the plugin with gradle :client:client-benchmark-noop-api-plugin:assemble
from the Elasticsearch root project directory.
Installation Instructions
After, the binary has been built, install it with bin/elasticsearch-plugin install file:///full/path/to/noop-plugin.zip
.
Usage
The plugin provides two REST endpoints:
/_noop_bulk
and all variations that the bulk endpoint provides (except that all no op endpoints are called_noop_bulk
instead of_bulk
)_noop_search
and all variations that the search endpoint provides (except that all no op endpoints are called_noop_search
instead of_search
)
The corresponding transport actions are:
org.elasticsearch.plugin.noop.action.bulk.TransportNoopBulkAction
org.elasticsearch.plugin.noop.action.search.TransportNoopSearchAction