[Rename] refactor the libs/nio module. (#318)

Refactor the `libs/nio` module to rename `org.elasticsearch.nio` to `org.opensearch.nio`.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-16 01:17:24 -07:00 committed by Nick Knize
parent 193bd770d3
commit 7fd65d1d9e
41 changed files with 62 additions and 62 deletions

View File

@ -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'
}
}

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.IOException;
import java.util.function.Consumer;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.nio.ByteBuffer;
import java.util.Collections;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.common.concurrent.CompletableContext;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.Closeable;
import java.io.IOException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.net.InetSocketAddress;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.IOException;
import java.util.List;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.IOException;
import java.nio.channels.SelectionKey;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.nio.ByteBuffer;
import java.util.Arrays;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.nio.ByteBuffer;
import java.util.function.BiConsumer;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.net.InetSocketAddress;
import java.nio.channels.NetworkChannel;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.IOException;
import java.util.List;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.Closeable;
import java.io.IOException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.io.Closeable;
import java.io.IOException;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.net.InetSocketAddress;
import java.nio.channels.ServerSocketChannel;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.common.util.concurrent.AbstractRefCounted;

View File

@ -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;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.common.concurrent.CompletableContext;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import java.util.Comparator;
import java.util.PriorityQueue;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio.utils;
package org.opensearch.nio.utils;
import java.nio.ByteBuffer;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio.utils;
package org.opensearch.nio.utils;
import java.util.List;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.test.ESTestCase;
import org.junit.Before;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.test.ESTestCase;
import org.junit.Before;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.test.ESTestCase;
import org.junit.Before;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.test.ESTestCase;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.nio;
package org.opensearch.nio;
import org.elasticsearch.test.ESTestCase;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;