mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 18:04:52 +00:00
[Rename] refactor client/client-benchmark-noop-api-plugin. (#192)
This PR refactors the `client/benchmark-noop-api-plugin` directory for renaming to OpenSearch. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
fe7f29f549
commit
066777241b
@ -32,9 +32,9 @@ import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.transport.TransportAddress;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.plugin.noop.NoopPlugin;
|
||||
import org.elasticsearch.plugin.noop.action.bulk.NoopBulkAction;
|
||||
import org.elasticsearch.plugin.noop.action.search.NoopSearchAction;
|
||||
import org.opensearch.plugin.noop.NoopPlugin;
|
||||
import org.opensearch.plugin.noop.action.bulk.NoopBulkAction;
|
||||
import org.opensearch.plugin.noop.action.search.NoopSearchAction;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.opensearch.transport.client.PreBuiltTransportClient;
|
||||
|
@ -8,7 +8,7 @@ Build the plugin with `gradle :client:client-benchmark-noop-api-plugin:assemble`
|
||||
|
||||
### Installation Instructions
|
||||
|
||||
After, the binary has been built, install it with `bin/elasticsearch-plugin install file:///full/path/to/noop-plugin.zip`.
|
||||
After, the binary has been built, install it with `bin/opensearch-plugin install file:///full/path/to/noop-plugin.zip`.
|
||||
|
||||
### Usage
|
||||
|
||||
@ -19,5 +19,5 @@ The plugin provides two REST endpoints:
|
||||
|
||||
The corresponding transport actions are:
|
||||
|
||||
* `org.elasticsearch.plugin.noop.action.bulk.TransportNoopBulkAction`
|
||||
* `org.elasticsearch.plugin.noop.action.search.TransportNoopSearchAction`
|
||||
* `org.opensearch.plugin.noop.action.bulk.TransportNoopBulkAction`
|
||||
* `org.opensearch.plugin.noop.action.search.TransportNoopSearchAction`
|
||||
|
@ -17,14 +17,14 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
group = 'org.elasticsearch.plugin'
|
||||
group = 'org.opensearch.plugin'
|
||||
|
||||
apply plugin: 'elasticsearch.esplugin'
|
||||
apply plugin: 'opensearch.opensearchplugin'
|
||||
|
||||
esplugin {
|
||||
opensearchplugin {
|
||||
name 'client-benchmark-noop-api'
|
||||
description 'Stubbed out Elasticsearch actions that can be used for client-side benchmarking'
|
||||
classname 'org.elasticsearch.plugin.noop.NoopPlugin'
|
||||
description 'Stubbed out OpenSearch actions that can be used for client-side benchmarking'
|
||||
classname 'org.opensearch.plugin.noop.NoopPlugin'
|
||||
}
|
||||
|
||||
// Not published so no need to assemble
|
||||
|
@ -16,11 +16,11 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop;
|
||||
package org.opensearch.plugin.noop;
|
||||
|
||||
import org.elasticsearch.plugin.noop.action.bulk.NoopBulkAction;
|
||||
import org.elasticsearch.plugin.noop.action.bulk.RestNoopBulkAction;
|
||||
import org.elasticsearch.plugin.noop.action.bulk.TransportNoopBulkAction;
|
||||
import org.opensearch.plugin.noop.action.bulk.NoopBulkAction;
|
||||
import org.opensearch.plugin.noop.action.bulk.RestNoopBulkAction;
|
||||
import org.opensearch.plugin.noop.action.bulk.TransportNoopBulkAction;
|
||||
import org.opensearch.action.ActionRequest;
|
||||
import org.opensearch.action.ActionResponse;
|
||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||
@ -29,9 +29,9 @@ import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.IndexScopedSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.settings.SettingsFilter;
|
||||
import org.elasticsearch.plugin.noop.action.search.NoopSearchAction;
|
||||
import org.elasticsearch.plugin.noop.action.search.RestNoopSearchAction;
|
||||
import org.elasticsearch.plugin.noop.action.search.TransportNoopSearchAction;
|
||||
import org.opensearch.plugin.noop.action.search.NoopSearchAction;
|
||||
import org.opensearch.plugin.noop.action.search.RestNoopSearchAction;
|
||||
import org.opensearch.plugin.noop.action.search.TransportNoopSearchAction;
|
||||
import org.elasticsearch.plugins.ActionPlugin;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.opensearch.rest.RestController;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.bulk;
|
||||
package org.opensearch.plugin.noop.action.bulk;
|
||||
|
||||
import org.opensearch.action.ActionType;
|
||||
import org.opensearch.action.bulk.BulkResponse;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.bulk;
|
||||
package org.opensearch.plugin.noop.action.bulk;
|
||||
|
||||
import org.opensearch.action.DocWriteRequest;
|
||||
import org.opensearch.action.DocWriteResponse;
|
@ -7,7 +7,7 @@
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.bulk;
|
||||
package org.opensearch.plugin.noop.action.bulk;
|
||||
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.DocWriteRequest;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.search;
|
||||
package org.opensearch.plugin.noop.action.search;
|
||||
|
||||
import org.opensearch.action.ActionType;
|
||||
import org.elasticsearch.action.search.SearchResponse;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.search;
|
||||
package org.opensearch.plugin.noop.action.search;
|
||||
|
||||
import org.elasticsearch.action.search.SearchRequest;
|
||||
import org.elasticsearch.client.node.NodeClient;
|
@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.noop.action.search;
|
||||
package org.opensearch.plugin.noop.action.search;
|
||||
|
||||
import org.apache.lucene.search.TotalHits;
|
||||
import org.opensearch.action.ActionListener;
|
Loading…
x
Reference in New Issue
Block a user