Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mloufra committed Jul 20, 2022
1 parent 9018985 commit b81a7a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 95 deletions.
88 changes: 0 additions & 88 deletions server/src/main/java/org/opensearch/discovery/PluginResponse.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.settings.Settings;
import org.opensearch.common.transport.TransportAddress;
import org.opensearch.discovery.PluginRequest;
import org.opensearch.discovery.PluginResponse;
import org.opensearch.discovery.InitializeExtensionsRequest;
import org.opensearch.discovery.InitializeExtensionsResponse;
import org.opensearch.extensions.ExtensionsSettings.Extension;
import org.opensearch.index.IndexModule;
import org.opensearch.index.IndexService;
Expand Down Expand Up @@ -204,15 +204,15 @@ public void extensionsInitialize() {

private void extensionInitialize(DiscoveryNode extensionNode) {

final TransportResponseHandler<PluginResponse> pluginResponseHandler = new TransportResponseHandler<PluginResponse>() {
final TransportResponseHandler<InitializeExtensionsResponse> pluginResponseHandler = new TransportResponseHandler<InitializeExtensionsResponse>() {

@Override
public PluginResponse read(StreamInput in) throws IOException {
return new PluginResponse(in);
public InitializeExtensionsResponse read(StreamInput in) throws IOException {
return new InitializeExtensionsResponse(in);
}

@Override
public void handleResponse(PluginResponse response) {
public void handleResponse(InitializeExtensionsResponse response) {
for (DiscoveryExtension extension : extensionsList) {
if (extension.getName().equals(response.getName())) {
extensionsInitializedList.add(extension);
Expand All @@ -236,7 +236,7 @@ public String executor() {
transportService.sendRequest(
extensionNode,
REQUEST_EXTENSION_ACTION_NAME,
new PluginRequest(transportService.getLocalNode(), new ArrayList<DiscoveryExtension>(extensionsList)),
new InitializeExtensionsRequest(transportService.getLocalNode(), new ArrayList<DiscoveryExtension>(extensionsList)),
pluginResponseHandler
);
} catch (Exception e) {
Expand Down

0 comments on commit b81a7a1

Please sign in to comment.