From 43a2c32832e3b1e3b1b56aacb7685210c60fdbd6 Mon Sep 17 00:00:00 2001 From: Lan Liang Date: Tue, 20 Apr 2021 22:35:45 +0800 Subject: [PATCH] refactor runtime module package com.webank to org.apache --- .../controller/ClientManageController.java | 18 ++++---- .../runtime/boot/AbrstractHTTPServer.java | 32 +++++++------- .../runtime/boot/AbstractRemotingServer.java | 4 +- .../runtime/boot/EventMeshHTTPServer.java | 26 +++++------ .../runtime/boot/EventMeshServer.java | 10 ++--- .../runtime/boot/EventMeshStartup.java | 10 ++--- .../runtime/boot/EventMeshTCPServer.java | 24 +++++----- .../runtime/boot/SSLContextFactory.java | 4 +- .../eventmesh/runtime/common/Pair.java | 2 +- .../runtime/common/ServiceState.java | 2 +- .../configuration/CommonConfiguration.java | 0 .../configuration/ConfigurationWraper.java | 2 +- .../EventMeshHTTPConfiguration.java | 6 +-- .../EventMeshTCPConfiguration.java | 6 +-- .../runtime/constants/DeFiBusConstant.java | 2 +- .../runtime/constants/EventMeshConstants.java | 2 +- .../runtime/constants/EventMeshVersion.java | 2 +- .../core/consumergroup/ConsumerGroupConf.java | 2 +- .../consumergroup/ConsumerGroupTopicConf.java | 2 +- .../core/consumergroup/ProducerGroupConf.java | 2 +- .../ConsumerGroupInstanceChangeEvent.java | 2 +- .../event/ConsumerGroupStateEvent.java | 4 +- .../ConsumerGroupTopicConfChangeEvent.java | 4 +- .../core/plugin/MQConsumerWrapper.java | 6 +-- .../core/plugin/MQProducerWrapper.java | 6 +-- .../runtime/core/plugin/MQWrapper.java | 4 +- .../protocol/http/async/AsyncContext.java | 2 +- .../protocol/http/async/CompleteHandler.java | 2 +- .../http/consumer/ConsumerGroupManager.java | 6 +-- .../http/consumer/ConsumerManager.java | 14 +++--- .../http/consumer/EventMeshConsumer.java | 28 ++++++------ .../http/consumer/HandleMsgContext.java | 12 ++--- .../http/processor/AdminMetricsProcessor.java | 10 ++--- .../processor/AdminShutdownProcessor.java | 22 +++++----- .../processor/BatchSendMessageProcessor.java | 38 ++++++++-------- .../BatchSendMessageV2Processor.java | 38 ++++++++-------- .../http/processor/HeartBeatProcessor.java | 36 +++++++-------- .../http/processor/ReplyMessageProcessor.java | 42 +++++++++--------- .../processor/SendAsyncMessageProcessor.java | 42 +++++++++--------- .../processor/SendSyncMessageProcessor.java | 44 +++++++++---------- .../http/processor/SubscribeProcessor.java | 38 ++++++++-------- .../http/processor/UnSubscribeProcessor.java | 42 +++++++++--------- .../protocol/http/processor/inf/Client.java | 2 +- .../processor/inf/HttpRequestProcessor.java | 6 +-- .../http/producer/EventMeshProducer.java | 12 ++--- .../http/producer/ProducerManager.java | 6 +-- .../http/producer/SendMessageContext.java | 8 ++-- .../http/push/AbstractHTTPPushRequest.java | 16 +++---- .../http/push/AsyncHTTPPushRequest.java | 26 +++++------ .../protocol/http/push/HTTPClientPool.java | 2 +- .../http/push/HTTPMessageHandler.java | 8 ++-- .../protocol/http/push/MessageHandler.java | 4 +- .../protocol/http/retry/DelayRetryable.java | 2 +- .../core/protocol/http/retry/HttpRetryer.java | 4 +- .../protocol/http/retry/RetryContext.java | 2 +- .../tcp/client/EventMeshTcp2Client.java | 30 ++++++------- .../client/EventMeshTcpConnectionHandler.java | 6 +-- .../client/EventMeshTcpExceptionHandler.java | 10 ++--- .../client/EventMeshTcpMessageDispatcher.java | 30 ++++++------- .../tcp/client/group/ClientGroupWrapper.java | 32 +++++++------- .../group/ClientSessionGroupMapping.java | 30 ++++++------- .../dispatch/DownstreamDispatchStrategy.java | 4 +- .../FreePriorityDispatchStrategy.java | 4 +- .../protocol/tcp/client/session/Session.java | 34 +++++++------- .../tcp/client/session/SessionContext.java | 4 +- .../tcp/client/session/SessionState.java | 2 +- .../client/session/push/ClientAckContext.java | 12 ++--- .../session/push/DownStreamMsgContext.java | 16 +++---- .../tcp/client/session/push/PushContext.java | 8 ++-- .../client/session/push/SessionPusher.java | 22 +++++----- .../push/retry/EventMeshTcpRetryer.java | 22 +++++----- .../session/send/EventMeshTcpSendResult.java | 2 +- .../session/send/EventMeshTcpSendStatus.java | 2 +- .../client/session/send/SessionSender.java | 26 +++++------ .../session/send/UpStreamMsgContext.java | 8 ++-- .../tcp/client/task/AbstractTask.java | 8 ++-- .../protocol/tcp/client/task/GoodbyeTask.java | 18 ++++---- .../tcp/client/task/HeartBeatTask.java | 14 +++--- .../protocol/tcp/client/task/HelloTask.java | 22 +++++----- .../protocol/tcp/client/task/ListenTask.java | 12 ++--- .../tcp/client/task/MessageAckTask.java | 10 ++--- .../tcp/client/task/MessageTransferTask.java | 30 ++++++------- .../tcp/client/task/SubscribeTask.java | 18 ++++---- .../tcp/client/task/UnSubscribeTask.java | 14 +++--- .../runtime/domain/BytesMessageImpl.java | 2 +- .../runtime/domain/ConsumeRequest.java | 0 .../runtime/domain/NonStandardKeys.java | 2 +- .../runtime/domain/RocketMQConstants.java | 2 +- .../runtime/domain/SendResultImpl.java | 2 +- .../metrics/MonitorMetricConstants.java | 2 +- .../runtime/metrics/http/GroupMetrics.java | 4 +- .../metrics/http/HTTPMetricsServer.java | 4 +- .../runtime/metrics/http/HealthMetrics.java | 4 +- .../runtime/metrics/http/SummaryMetrics.java | 4 +- .../metrics/http/TcpSummaryMetrics.java | 4 +- .../runtime/metrics/http/TopicMetrics.java | 4 +- .../metrics/tcp/EventMeshTcpMonitor.java | 12 ++--- .../EventMeshConsumeConcurrentlyContext.java | 2 +- .../EventMeshConsumeConcurrentlyStatus.java | 2 +- .../EventMeshMessageListenerConcurrently.java | 2 +- .../util/EventMeshThreadFactoryImpl.java | 2 +- .../eventmesh/runtime/util/EventMeshUtil.java | 16 +++---- .../runtime/util/HttpTinyClient.java | 4 +- .../eventmesh/runtime/util/IOTinyUtils.java | 4 +- .../runtime/util/MessageClientIDSetter.java | 2 +- .../eventmesh/runtime/util/OMSUtil.java | 2 +- .../runtime/util/RemotingHelper.java | 2 +- .../eventmesh/runtime/util/ServerGlobal.java | 2 +- .../apache}/eventmesh/runtime/util/Utils.java | 16 +++---- .../runtime/util/ValueComparator.java | 2 +- .../src/test/java/client/EventMeshClient.java | 2 +- .../src/test/java/client/PubClient.java | 4 +- .../src/test/java/client/SubClient.java | 4 +- .../src/test/java/client/common/Codec.java | 16 +++---- .../test/java/client/common/MessageUtils.java | 12 ++--- .../java/client/common/RequestContext.java | 2 +- .../src/test/java/client/common/Server.java | 4 +- .../test/java/client/common/TCPClient.java | 2 +- .../java/client/common/UserAgentUtils.java | 4 +- .../test/java/client/hook/ReceiveMsgHook.java | 2 +- .../java/client/impl/EventMeshClientImpl.java | 4 +- .../test/java/client/impl/PubClientImpl.java | 8 ++-- .../test/java/client/impl/SubClientImpl.java | 8 ++-- .../src/test/java/demo/AsyncPubClient.java | 4 +- .../src/test/java/demo/AsyncSubClient.java | 4 +- .../test/java/demo/BroadCastPubClient.java | 2 +- .../test/java/demo/BroadCastSubClient.java | 6 +-- .../src/test/java/demo/CCSubClient.java | 4 +- .../src/test/java/demo/CClientDemo.java | 4 +- .../src/test/java/demo/SyncPubClient.java | 4 +- .../src/test/java/demo/SyncSubClient.java | 4 +- .../java/protocol/CmdAsync2ClientTest.java | 4 +- .../java/protocol/CmdAsync2ServerTest.java | 4 +- .../protocol/CmdBroadCast2ClientTest.java | 4 +- .../protocol/CmdBroadCast2ServerTest.java | 4 +- .../java/protocol/CmdClientGoodByTest.java | 4 +- .../test/java/protocol/CmdHeartbeatTest.java | 4 +- .../src/test/java/protocol/CmdListenTest.java | 4 +- .../test/java/protocol/CmdRecommendTest.java | 4 +- .../src/test/java/protocol/CmdSendRRTest.java | 4 +- .../test/java/protocol/CmdSubscribeTest.java | 4 +- .../src/test/java/protocol/CmdSysLogTest.java | 2 +- .../test/java/protocol/CmdTraceLogTest.java | 2 +- .../java/protocol/CmdUnSubscribeTest.java | 4 +- .../src/test/java/test/BasicTest.java | 4 +- 145 files changed, 704 insertions(+), 704 deletions(-) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/admin/controller/ClientManageController.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/AbrstractHTTPServer.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/AbstractRemotingServer.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/EventMeshHTTPServer.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/EventMeshServer.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/EventMeshStartup.java (89%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/EventMeshTCPServer.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/boot/SSLContextFactory.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/common/Pair.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/common/ServiceState.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/configuration/CommonConfiguration.java (100%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/configuration/ConfigurationWraper.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/constants/DeFiBusConstant.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/constants/EventMeshConstants.java (99%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/constants/EventMeshVersion.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/plugin/MQConsumerWrapper.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/plugin/MQProducerWrapper.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/plugin/MQWrapper.java (87%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/async/AsyncContext.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java (83%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java (77%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java (90%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java (89%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/inf/Client.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java (85%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java (89%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/push/MessageHandler.java (87%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/http/retry/RetryContext.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java (88%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java (88%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java (86%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java (89%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/Session.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java (94%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java (93%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java (88%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java (86%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java (82%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java (82%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java (86%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java (85%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java (87%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java (84%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java (86%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/domain/BytesMessageImpl.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/domain/ConsumeRequest.java (100%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/domain/NonStandardKeys.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/domain/RocketMQConstants.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/domain/SendResultImpl.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/MonitorMetricConstants.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/GroupMetrics.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/HTTPMetricsServer.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/HealthMetrics.java (92%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/SummaryMetrics.java (99%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java (99%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/http/TopicMetrics.java (91%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java (98%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/EventMeshUtil.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/HttpTinyClient.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/IOTinyUtils.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/MessageClientIDSetter.java (99%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/OMSUtil.java (97%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/RemotingHelper.java (99%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/ServerGlobal.java (96%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/Utils.java (95%) rename eventmesh-runtime/src/main/java/{com/webank => org/apache}/eventmesh/runtime/util/ValueComparator.java (96%) diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/admin/controller/ClientManageController.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/controller/ClientManageController.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/admin/controller/ClientManageController.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/controller/ClientManageController.java index 1d0e508684..ed8cbf39b3 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/admin/controller/ClientManageController.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/controller/ClientManageController.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.admin.controller; - -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +package org.apache.eventmesh.runtime.admin.controller; + +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import com.sun.net.httpserver.HttpServer; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbrstractHTTPServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbrstractHTTPServer.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbrstractHTTPServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbrstractHTTPServer.java index 5210bd2f7a..fa9d85ad81 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbrstractHTTPServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbrstractHTTPServer.java @@ -15,24 +15,24 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; import com.google.common.base.Preconditions; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; -import com.webank.eventmesh.runtime.common.Pair; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.metrics.http.HTTPMetricsServer; -import com.webank.eventmesh.common.ThreadPoolFactory; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.Body; -import com.webank.eventmesh.common.protocol.http.common.ProtocolKey; -import com.webank.eventmesh.common.protocol.http.common.ProtocolVersion; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.Header; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.runtime.common.Pair; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.metrics.http.HTTPMetricsServer; +import org.apache.eventmesh.common.ThreadPoolFactory; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.Body; +import org.apache.eventmesh.common.protocol.http.common.ProtocolKey; +import org.apache.eventmesh.common.protocol.http.common.ProtocolVersion; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.Header; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.*; import io.netty.channel.socket.SocketChannel; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbstractRemotingServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbstractRemotingServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java index daeafef665..feec752f3d 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/AbstractRemotingServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractRemotingServer.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; -import com.webank.eventmesh.common.ThreadUtil; +import org.apache.eventmesh.common.ThreadUtil; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshHTTPServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshHTTPServer.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshHTTPServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshHTTPServer.java index a25c4312cf..5c4dc5ac48 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshHTTPServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshHTTPServer.java @@ -15,21 +15,21 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; import com.google.common.eventbus.EventBus; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.protocol.http.processor.*; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.Client; -import com.webank.eventmesh.runtime.core.protocol.http.producer.ProducerManager; -import com.webank.eventmesh.runtime.core.protocol.http.consumer.ConsumerManager; -import com.webank.eventmesh.runtime.core.protocol.http.push.AbstractHTTPPushRequest; -import com.webank.eventmesh.runtime.core.protocol.http.retry.HttpRetryer; -import com.webank.eventmesh.runtime.common.ServiceState; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; -import com.webank.eventmesh.runtime.metrics.http.HTTPMetricsServer; -import com.webank.eventmesh.common.ThreadPoolFactory; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.protocol.http.processor.*; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.Client; +import org.apache.eventmesh.runtime.core.protocol.http.producer.ProducerManager; +import org.apache.eventmesh.runtime.core.protocol.http.consumer.ConsumerManager; +import org.apache.eventmesh.runtime.core.protocol.http.push.AbstractHTTPPushRequest; +import org.apache.eventmesh.runtime.core.protocol.http.retry.HttpRetryer; +import org.apache.eventmesh.runtime.common.ServiceState; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.metrics.http.HTTPMetricsServer; +import org.apache.eventmesh.common.ThreadPoolFactory; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; import java.util.List; import java.util.concurrent.BlockingQueue; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshServer.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshServer.java index 81ad7baeed..b26771d2a5 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshServer.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; -import com.webank.eventmesh.runtime.common.ServiceState; -import com.webank.eventmesh.runtime.configuration.EventMeshTCPConfiguration; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.common.ServiceState; +import org.apache.eventmesh.runtime.configuration.EventMeshTCPConfiguration; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; //import org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshStartup.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshStartup.java similarity index 89% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshStartup.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshStartup.java index 8c2a97995d..57c106274f 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshStartup.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshStartup.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; -import com.webank.eventmesh.common.config.ConfigurationWraper; -import com.webank.eventmesh.runtime.configuration.EventMeshTCPConfiguration; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.config.ConfigurationWraper; +import org.apache.eventmesh.runtime.configuration.EventMeshTCPConfiguration; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshTCPServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshTCPServer.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshTCPServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshTCPServer.java index cff186f73d..b677246e14 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/EventMeshTCPServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/EventMeshTCPServer.java @@ -15,20 +15,20 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; import com.google.common.util.concurrent.RateLimiter; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpConnectionHandler; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpExceptionHandler; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpMessageDispatcher; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.retry.EventMeshTcpRetryer; -import com.webank.eventmesh.runtime.util.EventMeshThreadFactoryImpl; -import com.webank.eventmesh.runtime.admin.controller.ClientManageController; -import com.webank.eventmesh.runtime.configuration.EventMeshTCPConfiguration; -import com.webank.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; -import com.webank.eventmesh.common.ThreadPoolFactory; -import com.webank.eventmesh.common.protocol.tcp.codec.Codec; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpConnectionHandler; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpExceptionHandler; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpMessageDispatcher; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.retry.EventMeshTcpRetryer; +import org.apache.eventmesh.runtime.util.EventMeshThreadFactoryImpl; +import org.apache.eventmesh.runtime.admin.controller.ClientManageController; +import org.apache.eventmesh.runtime.configuration.EventMeshTCPConfiguration; +import org.apache.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; +import org.apache.eventmesh.common.ThreadPoolFactory; +import org.apache.eventmesh.common.protocol.tcp.codec.Codec; import io.netty.bootstrap.ServerBootstrap; import io.netty.buffer.PooledByteBufAllocator; import io.netty.channel.*; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/SSLContextFactory.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/SSLContextFactory.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/SSLContextFactory.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/SSLContextFactory.java index 60ffdd3984..1da2f62457 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/boot/SSLContextFactory.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/SSLContextFactory.java @@ -1,6 +1,6 @@ -package com.webank.eventmesh.runtime.boot; +package org.apache.eventmesh.runtime.boot; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/Pair.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/Pair.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/Pair.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/Pair.java index 1d7590523e..5e2a428ef6 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/Pair.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/Pair.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.common; +package org.apache.eventmesh.runtime.common; public class Pair { private T1 object1; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/ServiceState.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/ServiceState.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/ServiceState.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/ServiceState.java index 910ce8f489..6848b2c2bc 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/common/ServiceState.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/common/ServiceState.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.common; +package org.apache.eventmesh.runtime.common; public enum ServiceState { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/CommonConfiguration.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/CommonConfiguration.java similarity index 100% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/CommonConfiguration.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/CommonConfiguration.java diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/ConfigurationWraper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/ConfigurationWraper.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/ConfigurationWraper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/ConfigurationWraper.java index d3fc20c9ad..af67038e1a 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/ConfigurationWraper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/ConfigurationWraper.java @@ -17,7 +17,7 @@ // //package com.webank.runtime.configuration; // -//import com.webank.eventmesh.common.ThreadPoolFactory; +//import org.apache.eventmesh.common.ThreadPoolFactory; //import org.apache.commons.lang3.StringUtils; //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java index 8a230eea48..2390881880 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshHTTPConfiguration.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.configuration; +package org.apache.eventmesh.runtime.configuration; import com.google.common.base.Preconditions; import com.google.common.util.concurrent.RateLimiter; -import com.webank.eventmesh.common.config.CommonConfiguration; -import com.webank.eventmesh.common.config.ConfigurationWraper; +import org.apache.eventmesh.common.config.CommonConfiguration; +import org.apache.eventmesh.common.config.ConfigurationWraper; import org.apache.commons.lang3.StringUtils; public class EventMeshHTTPConfiguration extends CommonConfiguration { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java index 3810c70e02..bd674ac705 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/configuration/EventMeshTCPConfiguration.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.configuration; +package org.apache.eventmesh.runtime.configuration; import com.google.common.base.Preconditions; -import com.webank.eventmesh.common.config.CommonConfiguration; -import com.webank.eventmesh.common.config.ConfigurationWraper; +import org.apache.eventmesh.common.config.CommonConfiguration; +import org.apache.eventmesh.common.config.ConfigurationWraper; import org.apache.commons.lang3.StringUtils; public class EventMeshTCPConfiguration extends CommonConfiguration { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/DeFiBusConstant.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/DeFiBusConstant.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/DeFiBusConstant.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/DeFiBusConstant.java index 88d35ba863..8b9ea25519 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/DeFiBusConstant.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/DeFiBusConstant.java @@ -1,4 +1,4 @@ -package com.webank.eventmesh.runtime.constants; +package org.apache.eventmesh.runtime.constants; //TODO public class DeFiBusConstant { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshConstants.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshConstants.java similarity index 99% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshConstants.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshConstants.java index eb3f95de3c..a4a1d85ddc 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshConstants.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshConstants.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.constants; +package org.apache.eventmesh.runtime.constants; public class EventMeshConstants { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshVersion.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshVersion.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshVersion.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshVersion.java index b58dbc64f7..91cc68475f 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/constants/EventMeshVersion.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/constants/EventMeshVersion.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.constants; +package org.apache.eventmesh.runtime.constants; public class EventMeshVersion { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java index 509b0beb23..91d6e0dd8e 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupConf.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup; +package org.apache.eventmesh.runtime.core.consumergroup; import com.google.common.collect.Maps; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java index c1c86b8913..8a3ee63371 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ConsumerGroupTopicConf.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup; +package org.apache.eventmesh.runtime.core.consumergroup; import com.google.common.collect.Maps; import com.google.common.collect.Sets; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java index 2f4718789a..8518850cab 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup; +package org.apache.eventmesh.runtime.core.consumergroup; import java.util.Objects; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java index fd9f462b4c..f06ba0263a 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupInstanceChangeEvent.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup.event; +package org.apache.eventmesh.runtime.core.consumergroup.event; public class ConsumerGroupInstanceChangeEvent { } diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java index 0202d36695..fbf06125d3 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupStateEvent.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup.event; +package org.apache.eventmesh.runtime.core.consumergroup.event; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; public class ConsumerGroupStateEvent { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java index d1a3f3b985..7b19ffb041 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/event/ConsumerGroupTopicConfChangeEvent.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.consumergroup.event; +package org.apache.eventmesh.runtime.core.consumergroup.event; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; public class ConsumerGroupTopicConfChangeEvent { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQConsumerWrapper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQConsumerWrapper.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQConsumerWrapper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQConsumerWrapper.java index ded0ba89a4..44e008aee1 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQConsumerWrapper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQConsumerWrapper.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.plugin; +package org.apache.eventmesh.runtime.core.plugin; -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.api.consumer.MeshMQPushConsumer; +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.api.consumer.MeshMQPushConsumer; import io.openmessaging.api.AsyncMessageListener; import io.openmessaging.api.Message; import io.openmessaging.api.MessageListener; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQProducerWrapper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQProducerWrapper.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQProducerWrapper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQProducerWrapper.java index 26cdc0c4fb..93dadf7e57 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQProducerWrapper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQProducerWrapper.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.plugin; +package org.apache.eventmesh.runtime.core.plugin; -import com.webank.eventmesh.api.RRCallback; -import com.webank.eventmesh.api.producer.MeshMQProducer; +import org.apache.eventmesh.api.RRCallback; +import org.apache.eventmesh.api.producer.MeshMQProducer; import io.openmessaging.api.Message; import io.openmessaging.api.SendCallback; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQWrapper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQWrapper.java similarity index 87% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQWrapper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQWrapper.java index d5daf5fde8..a0c05e0b7e 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/plugin/MQWrapper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/plugin/MQWrapper.java @@ -1,6 +1,6 @@ -package com.webank.eventmesh.runtime.core.plugin; +package org.apache.eventmesh.runtime.core.plugin; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import org.apache.commons.lang3.StringUtils; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/AsyncContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/AsyncContext.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/AsyncContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/AsyncContext.java index 49895ea171..0f44345ca1 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/AsyncContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/AsyncContext.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.async; +package org.apache.eventmesh.runtime.core.protocol.http.async; import com.google.common.base.Preconditions; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java index eba32d78e6..6faa01f98d 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/async/CompleteHandler.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.async; +package org.apache.eventmesh.runtime.core.protocol.http.async; public interface CompleteHandler { void onResponse(T t); diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java index d9c2238da2..585f2bc3c3 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerGroupManager.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.consumer; +package org.apache.eventmesh.runtime.core.protocol.http.consumer; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java index f2d361deb4..7242d433e9 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/ConsumerManager.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.consumer; +package org.apache.eventmesh.runtime.core.protocol.http.consumer; import com.alibaba.fastjson.JSONObject; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; -import com.webank.eventmesh.runtime.core.consumergroup.event.ConsumerGroupStateEvent; -import com.webank.eventmesh.runtime.core.consumergroup.event.ConsumerGroupTopicConfChangeEvent; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.runtime.core.consumergroup.event.ConsumerGroupStateEvent; +import org.apache.eventmesh.runtime.core.consumergroup.event.ConsumerGroupTopicConfChangeEvent; import com.google.common.eventbus.Subscribe; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.Client; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.Client; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java index f83f30cba3..c50593289a 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/EventMeshConsumer.java @@ -15,20 +15,20 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.consumer; - -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; -import com.webank.eventmesh.runtime.core.plugin.MQConsumerWrapper; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.runtime.core.protocol.http.push.HTTPMessageHandler; -import com.webank.eventmesh.runtime.core.protocol.http.push.MessageHandler; -import com.webank.eventmesh.runtime.util.EventMeshUtil; +package org.apache.eventmesh.runtime.core.protocol.http.consumer; + +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.runtime.core.plugin.MQConsumerWrapper; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.runtime.core.protocol.http.push.HTTPMessageHandler; +import org.apache.eventmesh.runtime.core.protocol.http.push.MessageHandler; +import org.apache.eventmesh.runtime.util.EventMeshUtil; import io.openmessaging.api.*; import org.apache.commons.collections4.MapUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java index 520a1c5c8d..06805be82b 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/consumer/HandleMsgContext.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.consumer; +package org.apache.eventmesh.runtime.core.protocol.http.consumer; -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; -import com.webank.eventmesh.common.Constants; +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.common.Constants; import io.openmessaging.api.Message; import org.apache.commons.lang3.time.DateFormatUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java similarity index 83% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java index 35ed2fd0df..d1deecb520 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminMetricsProcessor.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; +package org.apache.eventmesh.runtime.core.protocol.http.processor; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.common.command.HttpCommand; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java similarity index 77% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java index 252cbc04dd..c61037e6ac 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AdminShutdownProcessor.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; - -import com.webank.eventmesh.runtime.boot.EventMeshServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.http.processor; + +import org.apache.eventmesh.runtime.boot.EventMeshServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java index 72a9a8caa1..cd50234082 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java @@ -15,25 +15,25 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageBatchRequestBody; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageBatchResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageBatchRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageBatchResponseHeader; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.http.processor; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageBatchRequestBody; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageBatchResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageBatchRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageBatchResponseHeader; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java index 8dc33d8284..c15e53eb87 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageV2Processor.java @@ -15,25 +15,25 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageBatchV2RequestBody; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageBatchV2ResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageBatchV2RequestHeader; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageBatchV2ResponseHeader; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.http.processor; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageBatchV2RequestBody; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageBatchV2ResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageBatchV2RequestHeader; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageBatchV2ResponseHeader; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java similarity index 90% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java index 182f51b2d4..e16d96a6ae 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java @@ -15,24 +15,24 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; - -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.client.HeartbeatRequestBody; -import com.webank.eventmesh.common.protocol.http.body.client.HeartbeatResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.client.HeartbeatRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.client.HeartbeatResponseHeader; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.Client; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.http.processor; + +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.client.HeartbeatRequestBody; +import org.apache.eventmesh.common.protocol.http.body.client.HeartbeatResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.client.HeartbeatRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.client.HeartbeatResponseHeader; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.Client; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java index de4cbe9938..e99a800e5d 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/ReplyMessageProcessor.java @@ -15,28 +15,28 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; +package org.apache.eventmesh.runtime.core.protocol.http.processor; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.LiteMessage; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.message.ReplyMessageRequestBody; -import com.webank.eventmesh.common.protocol.http.body.message.ReplyMessageResponseBody; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.message.ReplyMessageRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.message.ReplyMessageResponseHeader; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.LiteMessage; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.message.ReplyMessageRequestBody; +import org.apache.eventmesh.common.protocol.http.body.message.ReplyMessageResponseBody; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.message.ReplyMessageRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.message.ReplyMessageResponseHeader; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java index 0ba1afe6ec..3157122754 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendAsyncMessageProcessor.java @@ -15,27 +15,27 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; - -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.LiteMessage; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageRequestBody; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageResponseHeader; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.http.processor; + +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.LiteMessage; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageRequestBody; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageResponseHeader; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java index 03b4f46504..bea8802e76 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SendSyncMessageProcessor.java @@ -15,30 +15,30 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; +package org.apache.eventmesh.runtime.core.protocol.http.processor; -import com.webank.eventmesh.api.RRCallback; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; -import com.webank.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.LiteMessage; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageRequestBody; -import com.webank.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.message.SendMessageResponseHeader; -import com.webank.eventmesh.runtime.util.OMSUtil; -import com.webank.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.api.RRCallback; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.core.protocol.http.producer.EventMeshProducer; +import org.apache.eventmesh.runtime.core.protocol.http.producer.SendMessageContext; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.LiteMessage; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageRequestBody; +import org.apache.eventmesh.common.protocol.http.body.message.SendMessageResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.message.SendMessageResponseHeader; +import org.apache.eventmesh.runtime.util.OMSUtil; +import org.apache.eventmesh.runtime.util.EventMeshUtil; import com.alibaba.fastjson.JSON; -import com.webank.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java similarity index 89% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java index bc510a3754..422a601fdc 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/SubscribeProcessor.java @@ -15,27 +15,27 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; +package org.apache.eventmesh.runtime.core.protocol.http.processor; import com.alibaba.fastjson.JSONObject; -import com.webank.eventmesh.common.protocol.http.body.client.SubscribeRequestBody; -import com.webank.eventmesh.common.protocol.http.body.client.SubscribeResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.header.client.SubscribeRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.client.SubscribeResponseHeader; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.Client; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.common.protocol.http.body.client.SubscribeRequestBody; +import org.apache.eventmesh.common.protocol.http.body.client.SubscribeResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.header.client.SubscribeRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.client.SubscribeResponseHeader; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.Client; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java index 9540eab776..d908f2d894 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java @@ -15,29 +15,29 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor; +package org.apache.eventmesh.runtime.core.protocol.http.processor; import com.alibaba.fastjson.JSONObject; -import com.webank.eventmesh.common.protocol.http.body.client.UnSubscribeRequestBody; -import com.webank.eventmesh.common.protocol.http.body.client.UnSubscribeResponseBody; -import com.webank.eventmesh.common.protocol.http.common.EventMeshRetCode; -import com.webank.eventmesh.common.protocol.http.header.client.UnSubscribeRequestHeader; -import com.webank.eventmesh.common.protocol.http.header.client.UnSubscribeResponseHeader; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; -import com.webank.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; -import com.webank.eventmesh.runtime.core.consumergroup.event.ConsumerGroupStateEvent; -import com.webank.eventmesh.runtime.core.protocol.http.async.CompleteHandler; -import com.webank.eventmesh.runtime.core.protocol.http.consumer.ConsumerGroupManager; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.Client; -import com.webank.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.command.HttpCommand; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.common.protocol.http.body.client.UnSubscribeRequestBody; +import org.apache.eventmesh.common.protocol.http.body.client.UnSubscribeResponseBody; +import org.apache.eventmesh.common.protocol.http.common.EventMeshRetCode; +import org.apache.eventmesh.common.protocol.http.header.client.UnSubscribeRequestHeader; +import org.apache.eventmesh.common.protocol.http.header.client.UnSubscribeResponseHeader; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupConf; +import org.apache.eventmesh.runtime.core.consumergroup.ConsumerGroupTopicConf; +import org.apache.eventmesh.runtime.core.consumergroup.event.ConsumerGroupStateEvent; +import org.apache.eventmesh.runtime.core.protocol.http.async.CompleteHandler; +import org.apache.eventmesh.runtime.core.protocol.http.consumer.ConsumerGroupManager; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.Client; +import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelHandlerContext; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/Client.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/Client.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/Client.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/Client.java index 393ea6cf6c..fd3349655c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/Client.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/Client.java @@ -1,4 +1,4 @@ -package com.webank.eventmesh.runtime.core.protocol.http.processor.inf; +package org.apache.eventmesh.runtime.core.protocol.http.processor.inf; import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java similarity index 85% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java index ddc2d443cc..4ea3412990 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/inf/HttpRequestProcessor.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.processor.inf; +package org.apache.eventmesh.runtime.core.protocol.http.processor.inf; -import com.webank.eventmesh.runtime.core.protocol.http.async.AsyncContext; -import com.webank.eventmesh.common.command.HttpCommand; +import org.apache.eventmesh.runtime.core.protocol.http.async.AsyncContext; +import org.apache.eventmesh.common.command.HttpCommand; import io.netty.channel.ChannelHandlerContext; public interface HttpRequestProcessor { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java index c2853dd796..f40e81ff2f 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/EventMeshProducer.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.producer; +package org.apache.eventmesh.runtime.core.protocol.http.producer; -import com.webank.eventmesh.api.RRCallback; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; -import com.webank.eventmesh.runtime.core.consumergroup.ProducerGroupConf; -import com.webank.eventmesh.runtime.core.plugin.MQProducerWrapper; -import com.webank.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.api.RRCallback; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.core.consumergroup.ProducerGroupConf; +import org.apache.eventmesh.runtime.core.plugin.MQProducerWrapper; +import org.apache.eventmesh.runtime.util.EventMeshUtil; import io.openmessaging.api.Message; import io.openmessaging.api.SendCallback; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java index 96c16da8d9..bf4d25caf6 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/ProducerManager.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.producer; +package org.apache.eventmesh.runtime.core.protocol.http.producer; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.consumergroup.ProducerGroupConf; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.consumergroup.ProducerGroupConf; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java index 38ac9b3681..ea6e46ed47 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/producer/SendMessageContext.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.producer; +package org.apache.eventmesh.runtime.core.protocol.http.producer; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.core.protocol.http.retry.RetryContext; -import com.webank.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.core.protocol.http.retry.RetryContext; +import org.apache.eventmesh.common.Constants; import io.openmessaging.api.Message; import io.openmessaging.api.OnExceptionContext; import io.openmessaging.api.SendCallback; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java similarity index 89% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java index 622d81c86a..e5cb34d58b 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AbstractHTTPPushRequest.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.push; - -import com.webank.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; -import com.webank.eventmesh.runtime.core.protocol.http.retry.HttpRetryer; -import com.webank.eventmesh.runtime.core.protocol.http.retry.RetryContext; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +package org.apache.eventmesh.runtime.core.protocol.http.push; + +import org.apache.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; +import org.apache.eventmesh.runtime.core.protocol.http.retry.HttpRetryer; +import org.apache.eventmesh.runtime.core.protocol.http.retry.RetryContext; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import com.google.common.collect.Lists; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.MapUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java index da1e195870..ed6cd34651 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/AsyncHTTPPushRequest.java @@ -15,19 +15,19 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.push; - -import com.webank.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.common.IPUtil; -import com.webank.eventmesh.common.protocol.http.body.message.PushMessageRequestBody; -import com.webank.eventmesh.common.protocol.http.common.ClientRetCode; -import com.webank.eventmesh.common.protocol.http.common.ProtocolKey; -import com.webank.eventmesh.common.protocol.http.common.ProtocolVersion; -import com.webank.eventmesh.common.protocol.http.common.RequestCode; -import com.webank.eventmesh.runtime.util.OMSUtil; +package org.apache.eventmesh.runtime.core.protocol.http.push; + +import org.apache.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.common.IPUtil; +import org.apache.eventmesh.common.protocol.http.body.message.PushMessageRequestBody; +import org.apache.eventmesh.common.protocol.http.common.ClientRetCode; +import org.apache.eventmesh.common.protocol.http.common.ProtocolKey; +import org.apache.eventmesh.common.protocol.http.common.ProtocolVersion; +import org.apache.eventmesh.common.protocol.http.common.RequestCode; +import org.apache.eventmesh.runtime.util.OMSUtil; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONObject; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java index 45a71f24bd..0d16504b4c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPClientPool.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.push; +package org.apache.eventmesh.runtime.core.protocol.http.push; import com.google.common.collect.Lists; import org.apache.commons.collections4.CollectionUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java index 7d5d0e3738..9373ec0e32 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/HTTPMessageHandler.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.push; +package org.apache.eventmesh.runtime.core.protocol.http.push; -import com.webank.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; -import com.webank.eventmesh.runtime.core.protocol.http.consumer.EventMeshConsumer; -import com.webank.eventmesh.common.ThreadPoolFactory; +import org.apache.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; +import org.apache.eventmesh.runtime.core.protocol.http.consumer.EventMeshConsumer; +import org.apache.eventmesh.common.ThreadPoolFactory; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import org.apache.commons.collections4.MapUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/MessageHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/MessageHandler.java similarity index 87% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/MessageHandler.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/MessageHandler.java index 7eb4c84420..403ed8e3f5 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/push/MessageHandler.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/push/MessageHandler.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.push; +package org.apache.eventmesh.runtime.core.protocol.http.push; -import com.webank.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; +import org.apache.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext; public interface MessageHandler { boolean handle(HandleMsgContext handleMsgContext); diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java index 5a6ad814f8..194322576a 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/DelayRetryable.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.retry; +package org.apache.eventmesh.runtime.core.protocol.http.retry; import java.util.concurrent.Delayed; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java index 931153b0be..3febac555a 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.retry; +package org.apache.eventmesh.runtime.core.protocol.http.retry; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/RetryContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/RetryContext.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/RetryContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/RetryContext.java index 6c9717cff4..7841cca1e4 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/http/retry/RetryContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/RetryContext.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.http.retry; +package org.apache.eventmesh.runtime.core.protocol.http.retry; import java.util.concurrent.Delayed; import java.util.concurrent.TimeUnit; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java similarity index 88% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java index 2a22648fe6..315726343c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcp2Client.java @@ -15,19 +15,19 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client; - -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; -import com.webank.eventmesh.runtime.util.RemotingHelper; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.RedirectInfo; -import com.webank.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; +package org.apache.eventmesh.runtime.core.protocol.tcp.client; + +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; +import org.apache.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.RedirectInfo; +import org.apache.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; @@ -37,8 +37,8 @@ import java.net.InetSocketAddress; import java.util.concurrent.TimeUnit; -import static com.webank.eventmesh.common.protocol.tcp.Command.REDIRECT_TO_CLIENT; -import static com.webank.eventmesh.common.protocol.tcp.Command.SERVER_GOODBYE_REQUEST; +import static org.apache.eventmesh.common.protocol.tcp.Command.REDIRECT_TO_CLIENT; +import static org.apache.eventmesh.common.protocol.tcp.Command.SERVER_GOODBYE_REQUEST; public class EventMeshTcp2Client { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java index 29bbcd3ff2..15a47cc87f 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client; +package org.apache.eventmesh.runtime.core.protocol.tcp.client; -import com.webank.eventmesh.runtime.util.RemotingHelper; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.util.RemotingHelper; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; import io.netty.channel.ChannelDuplexHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.timeout.IdleState; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java similarity index 88% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java index 0cd0a0b0de..714ee3b346 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpExceptionHandler.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client; +package org.apache.eventmesh.runtime.core.protocol.tcp.client; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.channel.ChannelDuplexHandler; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java similarity index 86% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java index 7ffc4bc4d4..9ef5e16527 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpMessageDispatcher.java @@ -15,22 +15,22 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client; +package org.apache.eventmesh.runtime.core.protocol.tcp.client; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.GoodbyeTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.HeartBeatTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.HelloTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.ListenTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.MessageAckTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.MessageTransferTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.SubscribeTask; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.task.UnSubscribeTask; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.GoodbyeTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.HeartBeatTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.HelloTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.ListenTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.MessageAckTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.MessageTransferTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.SubscribeTask; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.task.UnSubscribeTask; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java index 9045620b14..3789155863 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientGroupWrapper.java @@ -15,24 +15,24 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.group; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.group; import com.alibaba.fastjson.JSON; -import com.webank.eventmesh.api.RRCallback; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.core.plugin.MQConsumerWrapper; -import com.webank.eventmesh.runtime.core.plugin.MQProducerWrapper; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.dispatch.DownstreamDispatchStrategy; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.retry.EventMeshTcpRetryer; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send.UpStreamMsgContext; -import com.webank.eventmesh.runtime.util.HttpTinyClient; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.configuration.EventMeshTCPConfiguration; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; +import org.apache.eventmesh.api.RRCallback; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.core.plugin.MQConsumerWrapper; +import org.apache.eventmesh.runtime.core.plugin.MQProducerWrapper; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.dispatch.DownstreamDispatchStrategy; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.retry.EventMeshTcpRetryer; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.UpStreamMsgContext; +import org.apache.eventmesh.runtime.util.HttpTinyClient; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.configuration.EventMeshTCPConfiguration; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.metrics.tcp.EventMeshTcpMonitor; import io.openmessaging.api.*; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java index 7beb4d18b2..241e115ec6 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/ClientSessionGroupMapping.java @@ -15,21 +15,21 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.group; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.dispatch.FreePriorityDispatchStrategy; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.ClientAckContext; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; -import com.webank.eventmesh.common.ThreadUtil; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.group; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.dispatch.FreePriorityDispatchStrategy; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.ClientAckContext; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; +import org.apache.eventmesh.common.ThreadUtil; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java similarity index 89% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java index f1cfa63123..046f2a820c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/DownstreamDispatchStrategy.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.group.dispatch; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.group.dispatch; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; import java.util.Set; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java index a6ad47d251..3943633bee 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/group/dispatch/FreePriorityDispatchStrategy.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.group.dispatch; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.group.dispatch; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/Session.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/Session.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/Session.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/Session.java index 135d4b0cd8..11c2596539 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/Session.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/Session.java @@ -15,22 +15,22 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.SessionPusher; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send.SessionSender; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendResult; -import com.webank.eventmesh.runtime.configuration.EventMeshTCPConfiguration; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; -import com.webank.eventmesh.runtime.util.RemotingHelper; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.SessionPusher; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.SessionSender; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendResult; +import org.apache.eventmesh.runtime.configuration.EventMeshTCPConfiguration; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.util.RemotingHelper; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; @@ -45,7 +45,7 @@ import java.util.List; import java.util.concurrent.locks.ReentrantLock; -import static com.webank.eventmesh.common.protocol.tcp.Command.LISTEN_RESPONSE; +import static org.apache.eventmesh.common.protocol.tcp.Command.LISTEN_RESPONSE; public class Session { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java index 19365503b6..2b05ec0e2f 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionContext.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import org.apache.commons.lang3.time.DateFormatUtils; import java.util.concurrent.ConcurrentHashMap; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java index 0c7445f28e..2093a8e4e0 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/SessionState.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session; public enum SessionState { CREATED, diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java index c0d1c8a24c..27da878425 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/ClientAckContext.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push; -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.plugin.MQConsumerWrapper; +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.plugin.MQConsumerWrapper; import io.openmessaging.api.Message; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.time.DateFormatUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java index db3ae09268..ba177b6ee1 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push; - -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.util.ServerGlobal; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.plugin.MQConsumerWrapper; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push; + +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.util.ServerGlobal; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.plugin.MQConsumerWrapper; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; import io.openmessaging.api.Message; import org.apache.commons.lang3.time.DateFormatUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java index 604a0058fc..f7e643ead8 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/PushContext.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push; -import com.webank.eventmesh.api.AbstractContext; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.plugin.MQConsumerWrapper; +import org.apache.eventmesh.api.AbstractContext; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.plugin.MQConsumerWrapper; import io.openmessaging.api.Message; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.time.DateFormatUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java index 2f4a2e7936..ef88d2ffe6 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/SessionPusher.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.openmessaging.api.Message; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java similarity index 94% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java index 83173c64ee..3e0fcf2075 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/retry/EventMeshTcpRetryer.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.retry; - -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.util.EventMeshThreadFactoryImpl; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.constants.DeFiBusConstant; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; -//import com.webank.eventmesh.connector.defibus.common.Constants; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.retry; + +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.util.EventMeshThreadFactoryImpl; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.constants.DeFiBusConstant; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.DownStreamMsgContext; +//import org.apache.eventmesh.connector.defibus.common.Constants; import io.openmessaging.api.Message; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java index 59b38e4b50..61c4d041e4 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendResult.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send; public class EventMeshTcpSendResult { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java similarity index 93% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java index 664c88637b..75d0823630 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/EventMeshTcpSendStatus.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send; public enum EventMeshTcpSendStatus { SUCCESS, diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java index 6c5427b7b1..4f02161904 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/SessionSender.java @@ -15,19 +15,19 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send; - -import com.webank.eventmesh.api.RRCallback; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.constants.DeFiBusConstant; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send; + +import org.apache.eventmesh.api.RRCallback; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.constants.DeFiBusConstant; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.openmessaging.api.Message; import io.openmessaging.api.SendCallback; import org.apache.commons.lang3.StringUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java similarity index 88% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java index fa320855a8..b260e14d3c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/send/UpStreamMsgContext.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; import io.openmessaging.api.Message; import org.apache.commons.lang3.time.DateFormatUtils; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java similarity index 86% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java index 1122cf3e6b..defe126b18 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/AbstractTask.java @@ -15,11 +15,11 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java similarity index 82% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java index 235598f4bc..8240cbba2d 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/GoodbyeTask.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcp2Client; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; -import static com.webank.eventmesh.common.protocol.tcp.Command.CLIENT_GOODBYE_RESPONSE; +import static org.apache.eventmesh.common.protocol.tcp.Command.CLIENT_GOODBYE_RESPONSE; public class GoodbyeTask extends AbstractTask { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java similarity index 82% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java index d939b62a26..9b79617136 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HeartBeatTask.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; -import static com.webank.eventmesh.common.protocol.tcp.Command.HEARTBEAT_RESPONSE; +import static org.apache.eventmesh.common.protocol.tcp.Command.HEARTBEAT_RESPONSE; public class HeartBeatTask extends AbstractTask { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java similarity index 86% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java index 0001a79f91..c95988da17 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/HelloTask.java @@ -15,17 +15,17 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.common.ServiceState; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.common.ServiceState; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; @@ -33,7 +33,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static com.webank.eventmesh.common.protocol.tcp.Command.HELLO_RESPONSE; +import static org.apache.eventmesh.common.protocol.tcp.Command.HELLO_RESPONSE; public class HelloTask extends AbstractTask { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java similarity index 85% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java index a7a5c9dd44..1c10ff0523 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/ListenTask.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; -import static com.webank.eventmesh.common.protocol.tcp.Command.LISTEN_RESPONSE; +import static org.apache.eventmesh.common.protocol.tcp.Command.LISTEN_RESPONSE; public class ListenTask extends AbstractTask { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java similarity index 87% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java index 9bfe00615a..f79c143a34 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageAckTask.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.push.ClientAckContext; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.push.ClientAckContext; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java index 71c147a042..d0127f33ea 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/MessageTransferTask.java @@ -15,20 +15,20 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; - -import com.webank.eventmesh.runtime.constants.DeFiBusConstant; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendResult; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendStatus; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; + +import org.apache.eventmesh.runtime.constants.DeFiBusConstant; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendResult; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.EventMeshTcpSendStatus; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; @@ -41,7 +41,7 @@ import java.util.concurrent.TimeUnit; -import static com.webank.eventmesh.common.protocol.tcp.Command.RESPONSE_TO_SERVER; +import static org.apache.eventmesh.common.protocol.tcp.Command.RESPONSE_TO_SERVER; public class MessageTransferTask extends AbstractTask { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java similarity index 84% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java index 9e0604fc62..2d44ed7363 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/SubscribeTask.java @@ -15,16 +15,16 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.util.EventMeshUtil; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.Subscription; +import org.apache.eventmesh.runtime.util.EventMeshUtil; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Subscription; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java similarity index 86% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java index fd19b662d8..155910fb83 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/task/UnSubscribeTask.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.core.protocol.tcp.client.task; +package org.apache.eventmesh.runtime.core.protocol.tcp.client.task; -import com.webank.eventmesh.runtime.util.Utils; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.runtime.util.Utils; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.apache.commons.collections4.MapUtils; import org.slf4j.Logger; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/BytesMessageImpl.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/BytesMessageImpl.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/BytesMessageImpl.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/BytesMessageImpl.java index ca82dd6016..a91c9a3381 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/BytesMessageImpl.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/BytesMessageImpl.java @@ -14,7 +14,7 @@ // * See the License for the specific language governing permissions and // * limitations under the License. // */ -//package com.webank.eventmesh.runtime.domain; +//package org.apache.eventmesh.runtime.domain; // //import io.openmessaging.BytesMessage; //import io.openmessaging.KeyValue; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/ConsumeRequest.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/ConsumeRequest.java similarity index 100% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/ConsumeRequest.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/ConsumeRequest.java diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/NonStandardKeys.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/NonStandardKeys.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/NonStandardKeys.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/NonStandardKeys.java index 745ec5cb15..779b3dccef 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/NonStandardKeys.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/NonStandardKeys.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.webank.eventmesh.runtime.domain; +package org.apache.eventmesh.runtime.domain; public interface NonStandardKeys { String CONSUMER_GROUP = "rmq.consumer.group"; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/RocketMQConstants.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/RocketMQConstants.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/RocketMQConstants.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/RocketMQConstants.java index d31b5875cc..a8f08533df 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/RocketMQConstants.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/RocketMQConstants.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.webank.eventmesh.runtime.domain; +package org.apache.eventmesh.runtime.domain; public interface RocketMQConstants { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/SendResultImpl.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/SendResultImpl.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/SendResultImpl.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/SendResultImpl.java index 9f31d0725f..3a8d12f999 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/domain/SendResultImpl.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/domain/SendResultImpl.java @@ -14,7 +14,7 @@ // * See the License for the specific language governing permissions and // * limitations under the License. // */ -//package com.webank.eventmesh.runtime.domain; +//package org.apache.eventmesh.runtime.domain; // //import io.openmessaging.KeyValue; //import io.openmessaging.producer.SendResult; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/MonitorMetricConstants.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/MonitorMetricConstants.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/MonitorMetricConstants.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/MonitorMetricConstants.java index 22ec426a28..60a2360ca1 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/MonitorMetricConstants.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/MonitorMetricConstants.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics; +package org.apache.eventmesh.runtime.metrics; public class MonitorMetricConstants { public static final String EVENTMESH_MONITOR_FORMAT_COMMON = "{\"protocol\":\"%s\",\"s\":\"%s\",\"t\":\"%s\"}"; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/GroupMetrics.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/GroupMetrics.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/GroupMetrics.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/GroupMetrics.java index ebe13821b4..6a1fc6e7f9 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/GroupMetrics.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/GroupMetrics.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; public class GroupMetrics { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HTTPMetricsServer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HTTPMetricsServer.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HTTPMetricsServer.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HTTPMetricsServer.java index c66e06e526..c28623e946 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HTTPMetricsServer.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HTTPMetricsServer.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HealthMetrics.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HealthMetrics.java similarity index 92% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HealthMetrics.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HealthMetrics.java index c40fa82286..1a5995f131 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/HealthMetrics.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HealthMetrics.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/SummaryMetrics.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/SummaryMetrics.java similarity index 99% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/SummaryMetrics.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/SummaryMetrics.java index f1e25e53f5..40f347f9f3 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/SummaryMetrics.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/SummaryMetrics.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java similarity index 99% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java index 73a3cdd4bf..97b819bcdc 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TcpSummaryMetrics.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TopicMetrics.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TopicMetrics.java similarity index 91% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TopicMetrics.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TopicMetrics.java index 2d89414436..51e9991022 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/http/TopicMetrics.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/TopicMetrics.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.http; +package org.apache.eventmesh.runtime.metrics.http; -import com.webank.eventmesh.runtime.boot.EventMeshHTTPServer; +import org.apache.eventmesh.runtime.boot.EventMeshHTTPServer; import com.codahale.metrics.MetricRegistry; public class TopicMetrics { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java index 84528b5ba9..7dd3f27440 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java @@ -15,13 +15,13 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.metrics.tcp; +package org.apache.eventmesh.runtime.metrics.tcp; -import com.webank.eventmesh.runtime.boot.EventMeshTCPServer; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpConnectionHandler; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.metrics.MonitorMetricConstants; +import org.apache.eventmesh.runtime.boot.EventMeshTCPServer; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.EventMeshTcpConnectionHandler; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.metrics.MonitorMetricConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java index 3b17f097fb..80c90bf4a5 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyContext.java @@ -15,7 +15,7 @@ // * limitations under the License. // */ // -//package com.webank.eventmesh.runtime.patch; +//package org.apache.eventmesh.runtime.patch; // //import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext; //import org.apache.rocketmq.client.impl.consumer.ProcessQueue; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java index f3d0756893..008f459f18 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshConsumeConcurrentlyStatus.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.patch; +package org.apache.eventmesh.runtime.patch; public enum EventMeshConsumeConcurrentlyStatus { /** diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java similarity index 98% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java index d89d8ad143..202c0e19d1 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/patch/EventMeshMessageListenerConcurrently.java @@ -15,7 +15,7 @@ // * limitations under the License. // */ // -//package com.webank.eventmesh.runtime.patch; +//package org.apache.eventmesh.runtime.patch; // //import org.apache.commons.collections4.CollectionUtils; //import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java index f63d5e039d..e53cefc3fa 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshThreadFactoryImpl.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicLong; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshUtil.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshUtil.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java index 560e3c2d1e..8f86efc6be 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/EventMeshUtil.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshUtil.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; -import com.webank.eventmesh.common.Constants; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.constants.EventMeshVersion; -import com.webank.eventmesh.common.ThreadUtil; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.Constants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshVersion; +import org.apache.eventmesh.common.ThreadUtil; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; @@ -43,7 +43,7 @@ import java.nio.charset.StandardCharsets; import java.util.*; -import static com.webank.eventmesh.runtime.util.OMSUtil.isOMSHeader; +import static org.apache.eventmesh.runtime.util.OMSUtil.isOMSHeader; public class EventMeshUtil { diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/HttpTinyClient.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/HttpTinyClient.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java index 121e59e36c..560dee8497 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/HttpTinyClient.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import java.io.IOException; import java.io.UnsupportedEncodingException; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/IOTinyUtils.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/IOTinyUtils.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/IOTinyUtils.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/IOTinyUtils.java index e4d4867d8e..7851a0dc92 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/IOTinyUtils.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/IOTinyUtils.java @@ -15,9 +15,9 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; import java.io.*; import java.nio.channels.FileChannel; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/MessageClientIDSetter.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/MessageClientIDSetter.java similarity index 99% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/MessageClientIDSetter.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/MessageClientIDSetter.java index c71bdb54f9..274733513c 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/MessageClientIDSetter.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/MessageClientIDSetter.java @@ -1,4 +1,4 @@ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import io.openmessaging.api.Message; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/OMSUtil.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/OMSUtil.java similarity index 97% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/OMSUtil.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/OMSUtil.java index 82927e362b..cf0c43891b 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/OMSUtil.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/OMSUtil.java @@ -1,5 +1,5 @@ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import java.lang.reflect.Field; import java.util.HashMap; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/RemotingHelper.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/RemotingHelper.java similarity index 99% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/RemotingHelper.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/RemotingHelper.java index 942b2ecb11..7b4504639b 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/RemotingHelper.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/RemotingHelper.java @@ -1,4 +1,4 @@ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import io.netty.channel.Channel; import java.net.InetSocketAddress; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ServerGlobal.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ServerGlobal.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ServerGlobal.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ServerGlobal.java index 28541680ee..9ef4422946 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ServerGlobal.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ServerGlobal.java @@ -16,7 +16,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import java.util.concurrent.atomic.AtomicLong; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/Utils.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/Utils.java similarity index 95% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/Utils.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/Utils.java index c46253fa8e..c96c2c9dfa 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/Utils.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/Utils.java @@ -15,14 +15,14 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; - -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.Session; -import com.webank.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +package org.apache.eventmesh.runtime.util; + +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.Session; +import org.apache.eventmesh.runtime.core.protocol.tcp.client.session.SessionState; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; diff --git a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ValueComparator.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ValueComparator.java similarity index 96% rename from eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ValueComparator.java rename to eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ValueComparator.java index 6e429ccf40..2eb24e57fd 100644 --- a/eventmesh-runtime/src/main/java/com/webank/eventmesh/runtime/util/ValueComparator.java +++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ValueComparator.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.webank.eventmesh.runtime.util; +package org.apache.eventmesh.runtime.util; import java.util.Comparator; import java.util.Map; diff --git a/eventmesh-runtime/src/test/java/client/EventMeshClient.java b/eventmesh-runtime/src/test/java/client/EventMeshClient.java index 9b6c890d81..82c1e53e67 100644 --- a/eventmesh-runtime/src/test/java/client/EventMeshClient.java +++ b/eventmesh-runtime/src/test/java/client/EventMeshClient.java @@ -18,7 +18,7 @@ package client; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; public interface EventMeshClient { Package rr(Package msg, long timeout) throws Exception; diff --git a/eventmesh-runtime/src/test/java/client/PubClient.java b/eventmesh-runtime/src/test/java/client/PubClient.java index 90c8c57ef2..faf3558db5 100644 --- a/eventmesh-runtime/src/test/java/client/PubClient.java +++ b/eventmesh-runtime/src/test/java/client/PubClient.java @@ -18,8 +18,8 @@ package client; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; public interface PubClient { diff --git a/eventmesh-runtime/src/test/java/client/SubClient.java b/eventmesh-runtime/src/test/java/client/SubClient.java index a15ab114f2..ad78191d74 100644 --- a/eventmesh-runtime/src/test/java/client/SubClient.java +++ b/eventmesh-runtime/src/test/java/client/SubClient.java @@ -18,8 +18,8 @@ package client; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; public interface SubClient { diff --git a/eventmesh-runtime/src/test/java/client/common/Codec.java b/eventmesh-runtime/src/test/java/client/common/Codec.java index ec9026a282..a772d1d1e7 100644 --- a/eventmesh-runtime/src/test/java/client/common/Codec.java +++ b/eventmesh-runtime/src/test/java/client/common/Codec.java @@ -17,14 +17,14 @@ package client.common; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.RedirectInfo; -import com.webank.eventmesh.common.protocol.tcp.Subscription; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.RedirectInfo; +import org.apache.eventmesh.common.protocol.tcp.Subscription; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToByteEncoder; diff --git a/eventmesh-runtime/src/test/java/client/common/MessageUtils.java b/eventmesh-runtime/src/test/java/client/common/MessageUtils.java index 9b10574ab4..3eb0e76c7a 100644 --- a/eventmesh-runtime/src/test/java/client/common/MessageUtils.java +++ b/eventmesh-runtime/src/test/java/client/common/MessageUtils.java @@ -17,12 +17,12 @@ package client.common; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Header; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.Subscription; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Header; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Subscription; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import java.util.ArrayList; import java.util.List; diff --git a/eventmesh-runtime/src/test/java/client/common/RequestContext.java b/eventmesh-runtime/src/test/java/client/common/RequestContext.java index 149b4b4e0d..e32b1dbf24 100644 --- a/eventmesh-runtime/src/test/java/client/common/RequestContext.java +++ b/eventmesh-runtime/src/test/java/client/common/RequestContext.java @@ -17,7 +17,7 @@ package client.common; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/test/java/client/common/Server.java b/eventmesh-runtime/src/test/java/client/common/Server.java index 909041c822..85402890fa 100644 --- a/eventmesh-runtime/src/test/java/client/common/Server.java +++ b/eventmesh-runtime/src/test/java/client/common/Server.java @@ -17,8 +17,8 @@ package client.common; -import com.webank.eventmesh.runtime.boot.EventMeshServer; -import com.webank.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; +import org.apache.eventmesh.runtime.boot.EventMeshServer; +import org.apache.eventmesh.runtime.configuration.EventMeshHTTPConfiguration; public class Server { diff --git a/eventmesh-runtime/src/test/java/client/common/TCPClient.java b/eventmesh-runtime/src/test/java/client/common/TCPClient.java index 4a7d30c13f..de03f4758e 100644 --- a/eventmesh-runtime/src/test/java/client/common/TCPClient.java +++ b/eventmesh-runtime/src/test/java/client/common/TCPClient.java @@ -17,7 +17,7 @@ package client.common; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.bootstrap.Bootstrap; import io.netty.buffer.PooledByteBufAllocator; import io.netty.channel.AdaptiveRecvByteBufAllocator; diff --git a/eventmesh-runtime/src/test/java/client/common/UserAgentUtils.java b/eventmesh-runtime/src/test/java/client/common/UserAgentUtils.java index 7ba72d6863..3c484ab582 100644 --- a/eventmesh-runtime/src/test/java/client/common/UserAgentUtils.java +++ b/eventmesh-runtime/src/test/java/client/common/UserAgentUtils.java @@ -17,8 +17,8 @@ package client.common; -import com.webank.eventmesh.runtime.constants.EventMeshConstants; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.runtime.constants.EventMeshConstants; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; //import org.apache.rocketmq.common.UtilAll; //import org.apache.rocketmq.remoting.common.RemotingUtil; diff --git a/eventmesh-runtime/src/test/java/client/hook/ReceiveMsgHook.java b/eventmesh-runtime/src/test/java/client/hook/ReceiveMsgHook.java index bd6622c88b..dbac44b1ee 100644 --- a/eventmesh-runtime/src/test/java/client/hook/ReceiveMsgHook.java +++ b/eventmesh-runtime/src/test/java/client/hook/ReceiveMsgHook.java @@ -17,7 +17,7 @@ package client.hook; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; /** * 业务回调钩子, 这是针对所有类型的消息都会进行的回调 diff --git a/eventmesh-runtime/src/test/java/client/impl/EventMeshClientImpl.java b/eventmesh-runtime/src/test/java/client/impl/EventMeshClientImpl.java index a0f361d0e8..34489e85bf 100644 --- a/eventmesh-runtime/src/test/java/client/impl/EventMeshClientImpl.java +++ b/eventmesh-runtime/src/test/java/client/impl/EventMeshClientImpl.java @@ -22,8 +22,8 @@ import client.SubClient; import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; public class EventMeshClientImpl implements EventMeshClient { protected UserAgent agent; diff --git a/eventmesh-runtime/src/test/java/client/impl/PubClientImpl.java b/eventmesh-runtime/src/test/java/client/impl/PubClientImpl.java index 2cb8f3238b..90b6038abd 100644 --- a/eventmesh-runtime/src/test/java/client/impl/PubClientImpl.java +++ b/eventmesh-runtime/src/test/java/client/impl/PubClientImpl.java @@ -23,10 +23,10 @@ import client.common.RequestContext; import client.common.TCPClient; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; diff --git a/eventmesh-runtime/src/test/java/client/impl/SubClientImpl.java b/eventmesh-runtime/src/test/java/client/impl/SubClientImpl.java index 0f578567b1..00fa525197 100644 --- a/eventmesh-runtime/src/test/java/client/impl/SubClientImpl.java +++ b/eventmesh-runtime/src/test/java/client/impl/SubClientImpl.java @@ -23,10 +23,10 @@ import client.common.RequestContext; import client.common.TCPClient; import client.hook.ReceiveMsgHook; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.OPStatus; -import com.webank.eventmesh.common.protocol.tcp.Package; -import com.webank.eventmesh.common.protocol.tcp.UserAgent; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.OPStatus; +import org.apache.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.UserAgent; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; diff --git a/eventmesh-runtime/src/test/java/demo/AsyncPubClient.java b/eventmesh-runtime/src/test/java/demo/AsyncPubClient.java index 115537c4ec..195cd18fac 100644 --- a/eventmesh-runtime/src/test/java/demo/AsyncPubClient.java +++ b/eventmesh-runtime/src/test/java/demo/AsyncPubClient.java @@ -22,8 +22,8 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.ThreadUtil; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.ThreadUtil; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; public class AsyncPubClient { diff --git a/eventmesh-runtime/src/test/java/demo/AsyncSubClient.java b/eventmesh-runtime/src/test/java/demo/AsyncSubClient.java index a2f71550b8..715c444d46 100644 --- a/eventmesh-runtime/src/test/java/demo/AsyncSubClient.java +++ b/eventmesh-runtime/src/test/java/demo/AsyncSubClient.java @@ -21,8 +21,8 @@ import client.common.MessageUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; public class AsyncSubClient { diff --git a/eventmesh-runtime/src/test/java/demo/BroadCastPubClient.java b/eventmesh-runtime/src/test/java/demo/BroadCastPubClient.java index e0e2841873..63a5b10deb 100644 --- a/eventmesh-runtime/src/test/java/demo/BroadCastPubClient.java +++ b/eventmesh-runtime/src/test/java/demo/BroadCastPubClient.java @@ -21,7 +21,7 @@ import client.common.MessageUtils; import client.common.UserAgentUtils; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.ThreadUtil; +import org.apache.eventmesh.common.ThreadUtil; public class BroadCastPubClient { public static void main(String[] args) throws Exception { diff --git a/eventmesh-runtime/src/test/java/demo/BroadCastSubClient.java b/eventmesh-runtime/src/test/java/demo/BroadCastSubClient.java index dbecf4254b..018edaf7f7 100644 --- a/eventmesh-runtime/src/test/java/demo/BroadCastSubClient.java +++ b/eventmesh-runtime/src/test/java/demo/BroadCastSubClient.java @@ -21,9 +21,9 @@ import client.common.MessageUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; public class BroadCastSubClient { diff --git a/eventmesh-runtime/src/test/java/demo/CCSubClient.java b/eventmesh-runtime/src/test/java/demo/CCSubClient.java index 6c1e21fef9..85b696aeef 100644 --- a/eventmesh-runtime/src/test/java/demo/CCSubClient.java +++ b/eventmesh-runtime/src/test/java/demo/CCSubClient.java @@ -21,8 +21,8 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; public class CCSubClient { diff --git a/eventmesh-runtime/src/test/java/demo/CClientDemo.java b/eventmesh-runtime/src/test/java/demo/CClientDemo.java index ebc2a5563f..42d89d929c 100644 --- a/eventmesh-runtime/src/test/java/demo/CClientDemo.java +++ b/eventmesh-runtime/src/test/java/demo/CClientDemo.java @@ -20,8 +20,8 @@ import client.common.MessageUtils; import client.hook.ReceiveMsgHook; import client.impl.EventMeshClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/eventmesh-runtime/src/test/java/demo/SyncPubClient.java b/eventmesh-runtime/src/test/java/demo/SyncPubClient.java index ae87df0565..afd258aac8 100644 --- a/eventmesh-runtime/src/test/java/demo/SyncPubClient.java +++ b/eventmesh-runtime/src/test/java/demo/SyncPubClient.java @@ -20,8 +20,8 @@ import client.common.MessageUtils; import client.common.UserAgentUtils; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Package; public class SyncPubClient { public static void main(String[] args) throws Exception { diff --git a/eventmesh-runtime/src/test/java/demo/SyncSubClient.java b/eventmesh-runtime/src/test/java/demo/SyncSubClient.java index 50a62adf8b..08e08ca9b7 100644 --- a/eventmesh-runtime/src/test/java/demo/SyncSubClient.java +++ b/eventmesh-runtime/src/test/java/demo/SyncSubClient.java @@ -21,8 +21,8 @@ import client.common.MessageUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; public class SyncSubClient { diff --git a/eventmesh-runtime/src/test/java/protocol/CmdAsync2ClientTest.java b/eventmesh-runtime/src/test/java/protocol/CmdAsync2ClientTest.java index 774f1325e0..61dec46252 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdAsync2ClientTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdAsync2ClientTest.java @@ -22,8 +22,8 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.AfterClass; import org.junit.Assert; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdAsync2ServerTest.java b/eventmesh-runtime/src/test/java/protocol/CmdAsync2ServerTest.java index 7c3b1ae979..15cfbfa705 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdAsync2ServerTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdAsync2ServerTest.java @@ -22,8 +22,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ClientTest.java b/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ClientTest.java index ddd2afbcfb..db04c5be5b 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ClientTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ClientTest.java @@ -22,8 +22,8 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.AfterClass; import org.junit.Assert; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ServerTest.java b/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ServerTest.java index 928a76fed0..04c5177d77 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ServerTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdBroadCast2ServerTest.java @@ -22,8 +22,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdClientGoodByTest.java b/eventmesh-runtime/src/test/java/protocol/CmdClientGoodByTest.java index b0a3d51de5..0db52376a4 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdClientGoodByTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdClientGoodByTest.java @@ -21,8 +21,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdHeartbeatTest.java b/eventmesh-runtime/src/test/java/protocol/CmdHeartbeatTest.java index 978abbd159..52d1961a40 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdHeartbeatTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdHeartbeatTest.java @@ -22,8 +22,8 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.AfterClass; import org.junit.Assert; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdListenTest.java b/eventmesh-runtime/src/test/java/protocol/CmdListenTest.java index 300bb2b469..e1d8cba0e8 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdListenTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdListenTest.java @@ -21,8 +21,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdRecommendTest.java b/eventmesh-runtime/src/test/java/protocol/CmdRecommendTest.java index 6973511611..d158852647 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdRecommendTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdRecommendTest.java @@ -21,8 +21,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.PubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdSendRRTest.java b/eventmesh-runtime/src/test/java/protocol/CmdSendRRTest.java index 2516437d96..bffd1790be 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdSendRRTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdSendRRTest.java @@ -24,8 +24,8 @@ import client.common.UserAgentUtils; import client.impl.PubClientImpl; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdSubscribeTest.java b/eventmesh-runtime/src/test/java/protocol/CmdSubscribeTest.java index 3d6a3b2e3f..66e99b5627 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdSubscribeTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdSubscribeTest.java @@ -21,8 +21,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdSysLogTest.java b/eventmesh-runtime/src/test/java/protocol/CmdSysLogTest.java index caf8fce570..0bedddb9ae 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdSysLogTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdSysLogTest.java @@ -22,7 +22,7 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.AfterClass; import org.junit.Assert; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdTraceLogTest.java b/eventmesh-runtime/src/test/java/protocol/CmdTraceLogTest.java index 7255adc3a6..b6a60d279a 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdTraceLogTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdTraceLogTest.java @@ -22,7 +22,7 @@ import client.common.UserAgentUtils; import client.hook.ReceiveMsgHook; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.AfterClass; import org.junit.Assert; diff --git a/eventmesh-runtime/src/test/java/protocol/CmdUnSubscribeTest.java b/eventmesh-runtime/src/test/java/protocol/CmdUnSubscribeTest.java index 4210655195..537cae1649 100644 --- a/eventmesh-runtime/src/test/java/protocol/CmdUnSubscribeTest.java +++ b/eventmesh-runtime/src/test/java/protocol/CmdUnSubscribeTest.java @@ -21,8 +21,8 @@ import client.common.Server; import client.common.UserAgentUtils; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.Command; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.Command; +import org.apache.eventmesh.common.protocol.tcp.Package; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; diff --git a/eventmesh-runtime/src/test/java/test/BasicTest.java b/eventmesh-runtime/src/test/java/test/BasicTest.java index a95d3d4f6c..3beb06b238 100644 --- a/eventmesh-runtime/src/test/java/test/BasicTest.java +++ b/eventmesh-runtime/src/test/java/test/BasicTest.java @@ -25,8 +25,8 @@ import client.impl.EventMeshClientImpl; import client.impl.PubClientImpl; import client.impl.SubClientImpl; -import com.webank.eventmesh.common.protocol.tcp.EventMeshMessage; -import com.webank.eventmesh.common.protocol.tcp.Package; +import org.apache.eventmesh.common.protocol.tcp.EventMeshMessage; +import org.apache.eventmesh.common.protocol.tcp.Package; import io.netty.channel.ChannelHandlerContext; import org.junit.Test;