From c0b7f2705f273617ebde9b0aaba654b933eedf71 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Thu, 26 Dec 2024 11:56:23 -0800 Subject: [PATCH] GrpcPlugin constructor public. Rename GrpcModulePlugin -> GrpcPlugin. Signed-off-by: Finn Carroll --- plugins/transport-grpc/build.gradle | 2 +- .../grpc/{GrpcModulePlugin.java => GrpcPlugin.java} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/{GrpcModulePlugin.java => GrpcPlugin.java} (93%) diff --git a/plugins/transport-grpc/build.gradle b/plugins/transport-grpc/build.gradle index 66c19c0d218f4..47f62b2b8c3f3 100644 --- a/plugins/transport-grpc/build.gradle +++ b/plugins/transport-grpc/build.gradle @@ -10,7 +10,7 @@ import org.gradle.api.attributes.java.TargetJvmEnvironment opensearchplugin { description 'gRPC based transport implementation' - classname 'org.opensearch.transport.grpc.GrpcModulePlugin' + classname 'org.opensearch.transport.grpc.GrpcPlugin' } dependencies { diff --git a/plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcModulePlugin.java b/plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcPlugin.java similarity index 93% rename from plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcModulePlugin.java rename to plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcPlugin.java index 50c12885044a4..0a464e135350b 100644 --- a/plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcModulePlugin.java +++ b/plugins/transport-grpc/src/main/java/org/opensearch/transport/grpc/GrpcPlugin.java @@ -33,12 +33,12 @@ /** * Main class for the gRPC plugin. */ -public final class GrpcModulePlugin extends Plugin implements NetworkPlugin { +public final class GrpcPlugin extends Plugin implements NetworkPlugin { /** - * Creates a new GrpcModulePlugin instance. + * Creates a new GrpcPlugin instance. */ - GrpcModulePlugin() {} + public GrpcPlugin() {} @Override public Map> getAuxTransports(