diff --git a/libs/nio/build.gradle b/libs/nio/build.gradle index 03a51c24cdf..bb13f83a50c 100644 --- a/libs/nio/build.gradle +++ b/libs/nio/build.gradle @@ -16,17 +16,17 @@ * specific language governing permissions and limitations * under the License. */ -apply plugin: 'elasticsearch.publish' +apply plugin: 'opensearch.publish' dependencies { - api project(':libs:elasticsearch-core') + api project(':libs:opensearch-core') testImplementation "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${versions.randomizedrunner}" testImplementation "junit:junit:${versions.junit}" testImplementation "org.hamcrest:hamcrest:${versions.hamcrest}" testImplementation(project(":test:framework")) { - exclude group: 'org.elasticsearch', module: 'elasticsearch-nio' + exclude group: 'org.opensearch', module: 'opensearch-nio' } } diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/BytesChannelContext.java b/libs/nio/src/main/java/org/opensearch/nio/BytesChannelContext.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/BytesChannelContext.java rename to libs/nio/src/main/java/org/opensearch/nio/BytesChannelContext.java index 5f257bd0265..348da71f1c0 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/BytesChannelContext.java +++ b/libs/nio/src/main/java/org/opensearch/nio/BytesChannelContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.IOException; import java.util.function.Consumer; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/BytesWriteHandler.java b/libs/nio/src/main/java/org/opensearch/nio/BytesWriteHandler.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/BytesWriteHandler.java rename to libs/nio/src/main/java/org/opensearch/nio/BytesWriteHandler.java index 8e590c830b9..425ae5489bc 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/BytesWriteHandler.java +++ b/libs/nio/src/main/java/org/opensearch/nio/BytesWriteHandler.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.nio.ByteBuffer; import java.util.Collections; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/ChannelContext.java b/libs/nio/src/main/java/org/opensearch/nio/ChannelContext.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/ChannelContext.java rename to libs/nio/src/main/java/org/opensearch/nio/ChannelContext.java index a030f68fe8b..768fa627ae3 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/ChannelContext.java +++ b/libs/nio/src/main/java/org/opensearch/nio/ChannelContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.concurrent.CompletableContext; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/ChannelFactory.java b/libs/nio/src/main/java/org/opensearch/nio/ChannelFactory.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/ChannelFactory.java rename to libs/nio/src/main/java/org/opensearch/nio/ChannelFactory.java index c4a2516a3cc..62c4637decb 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/ChannelFactory.java +++ b/libs/nio/src/main/java/org/opensearch/nio/ChannelFactory.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.Closeable; import java.io.IOException; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/Config.java b/libs/nio/src/main/java/org/opensearch/nio/Config.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/Config.java rename to libs/nio/src/main/java/org/opensearch/nio/Config.java index afa9f23945b..09fc6214e3a 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/Config.java +++ b/libs/nio/src/main/java/org/opensearch/nio/Config.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.net.InetSocketAddress; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/DelegatingHandler.java b/libs/nio/src/main/java/org/opensearch/nio/DelegatingHandler.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/DelegatingHandler.java rename to libs/nio/src/main/java/org/opensearch/nio/DelegatingHandler.java index e320f79f999..b282bf0f1ec 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/DelegatingHandler.java +++ b/libs/nio/src/main/java/org/opensearch/nio/DelegatingHandler.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.IOException; import java.util.List; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/EventHandler.java b/libs/nio/src/main/java/org/opensearch/nio/EventHandler.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/EventHandler.java rename to libs/nio/src/main/java/org/opensearch/nio/EventHandler.java index 302056578e9..049ac2d93c7 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/EventHandler.java +++ b/libs/nio/src/main/java/org/opensearch/nio/EventHandler.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.IOException; import java.nio.channels.SelectionKey; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/FlushOperation.java b/libs/nio/src/main/java/org/opensearch/nio/FlushOperation.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/FlushOperation.java rename to libs/nio/src/main/java/org/opensearch/nio/FlushOperation.java index de0318a941a..5f4bafd4e2b 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/FlushOperation.java +++ b/libs/nio/src/main/java/org/opensearch/nio/FlushOperation.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.nio.ByteBuffer; import java.util.Arrays; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/FlushReadyWrite.java b/libs/nio/src/main/java/org/opensearch/nio/FlushReadyWrite.java similarity index 97% rename from libs/nio/src/main/java/org/elasticsearch/nio/FlushReadyWrite.java rename to libs/nio/src/main/java/org/opensearch/nio/FlushReadyWrite.java index 4855e0cbade..22655469be5 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/FlushReadyWrite.java +++ b/libs/nio/src/main/java/org/opensearch/nio/FlushReadyWrite.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.nio.ByteBuffer; import java.util.function.BiConsumer; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/InboundChannelBuffer.java b/libs/nio/src/main/java/org/opensearch/nio/InboundChannelBuffer.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/InboundChannelBuffer.java rename to libs/nio/src/main/java/org/opensearch/nio/InboundChannelBuffer.java index 5c3b519e390..68ec4638385 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/InboundChannelBuffer.java +++ b/libs/nio/src/main/java/org/opensearch/nio/InboundChannelBuffer.java @@ -17,9 +17,9 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; -import org.elasticsearch.nio.utils.ExceptionsHelper; +import org.opensearch.nio.utils.ExceptionsHelper; import java.nio.ByteBuffer; import java.util.ArrayDeque; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioChannel.java b/libs/nio/src/main/java/org/opensearch/nio/NioChannel.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioChannel.java rename to libs/nio/src/main/java/org/opensearch/nio/NioChannel.java index 55038fabcef..f1a59adfe45 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioChannel.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioChannel.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.net.InetSocketAddress; import java.nio.channels.NetworkChannel; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioChannelHandler.java b/libs/nio/src/main/java/org/opensearch/nio/NioChannelHandler.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioChannelHandler.java rename to libs/nio/src/main/java/org/opensearch/nio/NioChannelHandler.java index 2d91e769368..18766a1d700 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioChannelHandler.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioChannelHandler.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.IOException; import java.util.List; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioGroup.java b/libs/nio/src/main/java/org/opensearch/nio/NioGroup.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioGroup.java rename to libs/nio/src/main/java/org/opensearch/nio/NioGroup.java index abb46cf3aea..3dd98b00f5d 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioGroup.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioGroup.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.Closeable; import java.io.IOException; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioSelector.java b/libs/nio/src/main/java/org/opensearch/nio/NioSelector.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioSelector.java rename to libs/nio/src/main/java/org/opensearch/nio/NioSelector.java index 9034f0c6433..f5baa724485 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioSelector.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioSelector.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.io.Closeable; import java.io.IOException; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioSelectorGroup.java b/libs/nio/src/main/java/org/opensearch/nio/NioSelectorGroup.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioSelectorGroup.java rename to libs/nio/src/main/java/org/opensearch/nio/NioSelectorGroup.java index bb4d4d14a0c..b8be000c48e 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioSelectorGroup.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioSelectorGroup.java @@ -17,9 +17,9 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; -import org.elasticsearch.nio.utils.ExceptionsHelper; +import org.opensearch.nio.utils.ExceptionsHelper; import java.io.IOException; import java.net.InetSocketAddress; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioServerSocketChannel.java b/libs/nio/src/main/java/org/opensearch/nio/NioServerSocketChannel.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioServerSocketChannel.java rename to libs/nio/src/main/java/org/opensearch/nio/NioServerSocketChannel.java index d18c2ec56dd..65959205141 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioServerSocketChannel.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioServerSocketChannel.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.net.InetSocketAddress; import java.nio.channels.ServerSocketChannel; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/NioSocketChannel.java b/libs/nio/src/main/java/org/opensearch/nio/NioSocketChannel.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/NioSocketChannel.java rename to libs/nio/src/main/java/org/opensearch/nio/NioSocketChannel.java index 2a9c97610d9..413cdc2ff75 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/NioSocketChannel.java +++ b/libs/nio/src/main/java/org/opensearch/nio/NioSocketChannel.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.net.InetSocketAddress; import java.nio.channels.SocketChannel; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/Page.java b/libs/nio/src/main/java/org/opensearch/nio/Page.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/Page.java rename to libs/nio/src/main/java/org/opensearch/nio/Page.java index b60c1c01279..cb384dd33bb 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/Page.java +++ b/libs/nio/src/main/java/org/opensearch/nio/Page.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.util.concurrent.AbstractRefCounted; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/RoundRobinSupplier.java b/libs/nio/src/main/java/org/opensearch/nio/RoundRobinSupplier.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/RoundRobinSupplier.java rename to libs/nio/src/main/java/org/opensearch/nio/RoundRobinSupplier.java index c35dca1c959..e0fca52be35 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/RoundRobinSupplier.java +++ b/libs/nio/src/main/java/org/opensearch/nio/RoundRobinSupplier.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/SelectionKeyUtils.java b/libs/nio/src/main/java/org/opensearch/nio/SelectionKeyUtils.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/SelectionKeyUtils.java rename to libs/nio/src/main/java/org/opensearch/nio/SelectionKeyUtils.java index 93d58344de6..7616f25fff6 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/SelectionKeyUtils.java +++ b/libs/nio/src/main/java/org/opensearch/nio/SelectionKeyUtils.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.nio.channels.CancelledKeyException; import java.nio.channels.SelectionKey; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/ServerChannelContext.java b/libs/nio/src/main/java/org/opensearch/nio/ServerChannelContext.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/ServerChannelContext.java rename to libs/nio/src/main/java/org/opensearch/nio/ServerChannelContext.java index e598ec0929e..004c8324220 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/ServerChannelContext.java +++ b/libs/nio/src/main/java/org/opensearch/nio/ServerChannelContext.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.concurrent.CompletableContext; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/SocketChannelContext.java b/libs/nio/src/main/java/org/opensearch/nio/SocketChannelContext.java similarity index 99% rename from libs/nio/src/main/java/org/elasticsearch/nio/SocketChannelContext.java rename to libs/nio/src/main/java/org/opensearch/nio/SocketChannelContext.java index ba653a2f8fc..78202420c35 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/SocketChannelContext.java +++ b/libs/nio/src/main/java/org/opensearch/nio/SocketChannelContext.java @@ -17,12 +17,12 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.concurrent.CompletableContext; import org.elasticsearch.core.internal.net.NetUtils; -import org.elasticsearch.nio.utils.ByteBufferUtils; -import org.elasticsearch.nio.utils.ExceptionsHelper; +import org.opensearch.nio.utils.ByteBufferUtils; +import org.opensearch.nio.utils.ExceptionsHelper; import java.io.IOException; import java.net.InetSocketAddress; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/TaskScheduler.java b/libs/nio/src/main/java/org/opensearch/nio/TaskScheduler.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/TaskScheduler.java rename to libs/nio/src/main/java/org/opensearch/nio/TaskScheduler.java index c460e214798..dcf82de5031 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/TaskScheduler.java +++ b/libs/nio/src/main/java/org/opensearch/nio/TaskScheduler.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.util.Comparator; import java.util.PriorityQueue; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/WriteOperation.java b/libs/nio/src/main/java/org/opensearch/nio/WriteOperation.java similarity index 97% rename from libs/nio/src/main/java/org/elasticsearch/nio/WriteOperation.java rename to libs/nio/src/main/java/org/opensearch/nio/WriteOperation.java index b5f60bd28a1..f64344fd085 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/WriteOperation.java +++ b/libs/nio/src/main/java/org/opensearch/nio/WriteOperation.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.util.function.BiConsumer; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/utils/ByteBufferUtils.java b/libs/nio/src/main/java/org/opensearch/nio/utils/ByteBufferUtils.java similarity index 98% rename from libs/nio/src/main/java/org/elasticsearch/nio/utils/ByteBufferUtils.java rename to libs/nio/src/main/java/org/opensearch/nio/utils/ByteBufferUtils.java index 0be9806bada..a9593fba578 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/utils/ByteBufferUtils.java +++ b/libs/nio/src/main/java/org/opensearch/nio/utils/ByteBufferUtils.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio.utils; +package org.opensearch.nio.utils; import java.nio.ByteBuffer; diff --git a/libs/nio/src/main/java/org/elasticsearch/nio/utils/ExceptionsHelper.java b/libs/nio/src/main/java/org/opensearch/nio/utils/ExceptionsHelper.java similarity index 97% rename from libs/nio/src/main/java/org/elasticsearch/nio/utils/ExceptionsHelper.java rename to libs/nio/src/main/java/org/opensearch/nio/utils/ExceptionsHelper.java index a2dceba7af4..4e88d06b559 100644 --- a/libs/nio/src/main/java/org/elasticsearch/nio/utils/ExceptionsHelper.java +++ b/libs/nio/src/main/java/org/opensearch/nio/utils/ExceptionsHelper.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio.utils; +package org.opensearch.nio.utils; import java.util.List; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/BytesChannelContextTests.java b/libs/nio/src/test/java/org/opensearch/nio/BytesChannelContextTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/BytesChannelContextTests.java rename to libs/nio/src/test/java/org/opensearch/nio/BytesChannelContextTests.java index 1bad1dd2b14..52833bc6905 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/BytesChannelContextTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/BytesChannelContextTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.CheckedFunction; import org.elasticsearch.common.util.PageCacheRecycler; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/ChannelContextTests.java b/libs/nio/src/test/java/org/opensearch/nio/ChannelContextTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/ChannelContextTests.java rename to libs/nio/src/test/java/org/opensearch/nio/ChannelContextTests.java index 13372055668..acf5917c74e 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/ChannelContextTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/ChannelContextTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.test.ESTestCase; import org.junit.Before; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/ChannelFactoryTests.java b/libs/nio/src/test/java/org/opensearch/nio/ChannelFactoryTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/ChannelFactoryTests.java rename to libs/nio/src/test/java/org/opensearch/nio/ChannelFactoryTests.java index 83bada4a466..07be339c8c3 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/ChannelFactoryTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/ChannelFactoryTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.core.internal.io.IOUtils; import org.elasticsearch.test.ESTestCase; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/EventHandlerTests.java b/libs/nio/src/test/java/org/opensearch/nio/EventHandlerTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/EventHandlerTests.java rename to libs/nio/src/test/java/org/opensearch/nio/EventHandlerTests.java index c3f6fee9c35..a7bca1ea54e 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/EventHandlerTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/EventHandlerTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.test.ESTestCase; import org.junit.Before; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/FlushOperationTests.java b/libs/nio/src/test/java/org/opensearch/nio/FlushOperationTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/FlushOperationTests.java rename to libs/nio/src/test/java/org/opensearch/nio/FlushOperationTests.java index 73dba34cc30..55af1c5559b 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/FlushOperationTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/FlushOperationTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.test.ESTestCase; import org.junit.Before; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/InboundChannelBufferTests.java b/libs/nio/src/test/java/org/opensearch/nio/InboundChannelBufferTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/InboundChannelBufferTests.java rename to libs/nio/src/test/java/org/opensearch/nio/InboundChannelBufferTests.java index 49e4fbecec9..ee986261fb7 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/InboundChannelBufferTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/InboundChannelBufferTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.test.ESTestCase; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorGroupTests.java b/libs/nio/src/test/java/org/opensearch/nio/NioSelectorGroupTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorGroupTests.java rename to libs/nio/src/test/java/org/opensearch/nio/NioSelectorGroupTests.java index 34a8d501ea3..cbf9e4695e5 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorGroupTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/NioSelectorGroupTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.CheckedRunnable; import org.elasticsearch.common.settings.Settings; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorTests.java b/libs/nio/src/test/java/org/opensearch/nio/NioSelectorTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorTests.java rename to libs/nio/src/test/java/org/opensearch/nio/NioSelectorTests.java index fe2039ec419..6ef966c1906 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/NioSelectorTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/NioSelectorTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.CheckedRunnable; import org.elasticsearch.common.unit.TimeValue; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/SocketChannelContextTests.java b/libs/nio/src/test/java/org/opensearch/nio/SocketChannelContextTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/SocketChannelContextTests.java rename to libs/nio/src/test/java/org/opensearch/nio/SocketChannelContextTests.java index 8a44394533a..22d4d9f113e 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/SocketChannelContextTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/SocketChannelContextTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.common.SuppressForbidden; import org.elasticsearch.test.ESTestCase; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/TaskSchedulerTests.java b/libs/nio/src/test/java/org/opensearch/nio/TaskSchedulerTests.java similarity index 99% rename from libs/nio/src/test/java/org/elasticsearch/nio/TaskSchedulerTests.java rename to libs/nio/src/test/java/org/opensearch/nio/TaskSchedulerTests.java index 4f5c074826b..08b5fd3cfcc 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/TaskSchedulerTests.java +++ b/libs/nio/src/test/java/org/opensearch/nio/TaskSchedulerTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import org.elasticsearch.test.ESTestCase; diff --git a/libs/nio/src/test/java/org/elasticsearch/nio/TestSelectionKey.java b/libs/nio/src/test/java/org/opensearch/nio/TestSelectionKey.java similarity index 98% rename from libs/nio/src/test/java/org/elasticsearch/nio/TestSelectionKey.java rename to libs/nio/src/test/java/org/opensearch/nio/TestSelectionKey.java index 1a195e7fe69..03e82b5f981 100644 --- a/libs/nio/src/test/java/org/elasticsearch/nio/TestSelectionKey.java +++ b/libs/nio/src/test/java/org/opensearch/nio/TestSelectionKey.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.nio; +package org.opensearch.nio; import java.nio.channels.SelectableChannel; import java.nio.channels.SelectionKey; diff --git a/test/framework/src/main/java/org/opensearch/transport/nio/MockNioTransport.java b/test/framework/src/main/java/org/opensearch/transport/nio/MockNioTransport.java index f2a3a148318..d9c990db824 100644 --- a/test/framework/src/main/java/org/opensearch/transport/nio/MockNioTransport.java +++ b/test/framework/src/main/java/org/opensearch/transport/nio/MockNioTransport.java @@ -41,17 +41,17 @@ import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.util.PageCacheRecycler; import org.elasticsearch.core.internal.io.IOUtils; import org.elasticsearch.indices.breaker.CircuitBreakerService; -import org.elasticsearch.nio.BytesChannelContext; -import org.elasticsearch.nio.BytesWriteHandler; -import org.elasticsearch.nio.ChannelFactory; -import org.elasticsearch.nio.Config; -import org.elasticsearch.nio.InboundChannelBuffer; -import org.elasticsearch.nio.NioSelector; -import org.elasticsearch.nio.NioSelectorGroup; -import org.elasticsearch.nio.NioServerSocketChannel; -import org.elasticsearch.nio.NioSocketChannel; -import org.elasticsearch.nio.Page; -import org.elasticsearch.nio.ServerChannelContext; +import org.opensearch.nio.BytesChannelContext; +import org.opensearch.nio.BytesWriteHandler; +import org.opensearch.nio.ChannelFactory; +import org.opensearch.nio.Config; +import org.opensearch.nio.InboundChannelBuffer; +import org.opensearch.nio.NioSelector; +import org.opensearch.nio.NioSelectorGroup; +import org.opensearch.nio.NioServerSocketChannel; +import org.opensearch.nio.NioSocketChannel; +import org.opensearch.nio.Page; +import org.opensearch.nio.ServerChannelContext; import org.opensearch.threadpool.ThreadPool; import org.opensearch.transport.ConnectionProfile; import org.opensearch.transport.InboundPipeline; diff --git a/test/framework/src/main/java/org/opensearch/transport/nio/TestEventHandler.java b/test/framework/src/main/java/org/opensearch/transport/nio/TestEventHandler.java index d1919b0f5eb..032dc422775 100644 --- a/test/framework/src/main/java/org/opensearch/transport/nio/TestEventHandler.java +++ b/test/framework/src/main/java/org/opensearch/transport/nio/TestEventHandler.java @@ -19,11 +19,11 @@ package org.opensearch.transport.nio; -import org.elasticsearch.nio.ChannelContext; -import org.elasticsearch.nio.EventHandler; -import org.elasticsearch.nio.NioSelector; -import org.elasticsearch.nio.ServerChannelContext; -import org.elasticsearch.nio.SocketChannelContext; +import org.opensearch.nio.ChannelContext; +import org.opensearch.nio.EventHandler; +import org.opensearch.nio.NioSelector; +import org.opensearch.nio.ServerChannelContext; +import org.opensearch.nio.SocketChannelContext; import java.io.IOException; import java.util.Collections; diff --git a/test/framework/src/test/java/org/opensearch/transport/nio/TestEventHandlerTests.java b/test/framework/src/test/java/org/opensearch/transport/nio/TestEventHandlerTests.java index 930955b9560..56fcd568d80 100644 --- a/test/framework/src/test/java/org/opensearch/transport/nio/TestEventHandlerTests.java +++ b/test/framework/src/test/java/org/opensearch/transport/nio/TestEventHandlerTests.java @@ -24,8 +24,8 @@ import org.apache.logging.log4j.LogManager; import org.elasticsearch.common.CheckedRunnable; import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.settings.Settings; -import org.elasticsearch.nio.ServerChannelContext; -import org.elasticsearch.nio.SocketChannelContext; +import org.opensearch.nio.ServerChannelContext; +import org.opensearch.nio.SocketChannelContext; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.MockLogAppender; import org.opensearch.threadpool.ThreadPool;