Skip to content

Commit

Permalink
Removing old implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
  • Loading branch information
saratvemulapalli committed Apr 4, 2023
1 parent f1940e0 commit 49a937a
Showing 1 changed file with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,8 @@ public class ExtensionsManager {
public static final String REQUEST_EXTENSION_HANDLE_REMOTE_TRANSPORT_ACTION = "internal:extensions/handle-remote-transportaction";
public static final String TRANSPORT_ACTION_REQUEST_FROM_EXTENSION = "internal:extensions/request-transportaction-from-extension";
public static final int EXTENSION_REQUEST_WAIT_TIMEOUT = 10;

private static final Logger logger = LogManager.getLogger(ExtensionsManager.class);

/**
* Enum for Extension Requests
*
* @opensearch.internal
*/
public static enum RequestType {
REQUEST_EXTENSION_CLUSTER_STATE,
REQUEST_EXTENSION_CLUSTER_SETTINGS,
REQUEST_EXTENSION_REGISTER_REST_ACTIONS,
REQUEST_EXTENSION_REGISTER_SETTINGS,
REQUEST_EXTENSION_ENVIRONMENT_SETTINGS,
REQUEST_EXTENSION_DEPENDENCY_INFORMATION,
CREATE_COMPONENT,
ON_INDEX_MODULE,
GET_SETTINGS
};

/**
* Enum for OpenSearch Requests
*
Expand Down Expand Up @@ -429,7 +411,7 @@ public String executor() {
/**
* Handles an {@link ExtensionRequest}.
*
* @param extensionRequest The request to handle, of a type defined in the {@link RequestType} enum.
* @param extensionRequest The request to handle, of a type defined in the {@link org.opensearch.extensions.proto.ExtensionRequestOuterClass.RequestType} enum.
* @return an Response matching the request.
* @throws Exception if the request is not handled properly.
*/
Expand Down

0 comments on commit 49a937a

Please sign in to comment.