-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into master-issue3918
- Loading branch information
Showing
407 changed files
with
3,636 additions
and
1,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...ocketmq/src/test/java/org/apache/eventmesh/admin/rocketmq/response/TopicResponseTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.admin.rocketmq.response; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
import org.junit.Test; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
public class TopicResponseTest { | ||
|
||
@Test | ||
public void testTopicResponse() { | ||
String topic = "testtopic"; | ||
String createdTime = "2023-05-17 10:30:00"; | ||
TopicResponse topicResponse = new TopicResponse(topic, createdTime); | ||
|
||
assertEquals(topic, topicResponse.getTopic()); | ||
assertEquals(createdTime, topicResponse.getCreatedTime()); | ||
} | ||
|
||
@Test | ||
public void testTopicResponseSerialization() throws Exception { | ||
String topic = "testtopic"; | ||
String createdTime = "2023-05-17 10:30:00"; | ||
TopicResponse topicResponse = new TopicResponse(topic, createdTime); | ||
|
||
ObjectMapper objectMapper = new ObjectMapper(); | ||
String json = objectMapper.writeValueAsString(topicResponse); | ||
|
||
assertTrue(json.contains("topic")); | ||
assertTrue(json.contains("created_time")); | ||
|
||
TopicResponse deserializedResponse = objectMapper.readValue(json, TopicResponse.class); | ||
|
||
assertEquals(topic, deserializedResponse.getTopic()); | ||
assertEquals(createdTime, deserializedResponse.getCreatedTime()); | ||
} | ||
} |
24 changes: 11 additions & 13 deletions
24
eventmesh-common/src/main/java/org/apache/eventmesh/common/loadbalance/LoadBalanceType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/PropertiesUtilsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
Connector - A connector is a bridge that interacts with a specific external service or underlying data source (e.g., Databases) on behalf of user applications. A connector is either a Source or a Sink. | ||
# Connectors | ||
|
||
Source - A source connector obtains data from an underlying data producer and delivers it to targets, after original data has been transformed into CloudEvents. It doesn't limit the way how a source retrieves data. (e.g., A source may pull data from a message queue or act as an HTTP server waiting for data sent to it). | ||
## Connector | ||
A connector is a bridge that interacts with a specific external service or underlying data source (e.g., Databases) on behalf of user applications. A connector is either a Source or a Sink. | ||
|
||
Sink - A sink connector receives CloudEvents and does some specific business logics. (e.g., A MySQL Sink extracts useful data from CloudEvents and writes them to a MySQL database). | ||
## Source | ||
A source connector obtains data from an underlying data producer and delivers it to targets, after original data has been transformed into CloudEvents. It doesn't limit the way how a source retrieves data. (e.g., A source may pull data from a message queue or act as an HTTP server waiting for data sent to it). | ||
|
||
## Sink | ||
A sink connector receives CloudEvents and does some specific business logics. (e.g., A MySQL Sink extracts useful data from CloudEvents and writes them to a MySQL database). | ||
CloudEvents - A specification for describing event data in common formats to provide interoperability across services, platforms and systems. | ||
|
||
Add a new connector by implementting the source/sink interface using different SDKs: | ||
## Implements | ||
Add a new connector by implementing the source/sink interface using : | ||
|
||
[eventmesh-sdk-java](https://github.com/apache/eventmesh/tree/master/eventmesh-sdk-java) | ||
[eventmesh-openconnect-java](https://github.com/apache/eventmesh/tree/master/eventmesh-openconnect/eventmesh-openconnect-java) | ||
|
||
[eventmesh-sdk-go](https://github.com/apache/eventmesh/tree/master/eventmesh-sdk-go) | ||
## Connector Status | ||
|
||
[eventmesh-sdk-rust](https://github.com/apache/eventmesh/tree/master/eventmesh-sdk-rust) | ||
| Connector Name | Type | Support Version | | ||
|---------------------------------------|--------|-----------------| | ||
| [RocketMQ](sink-connector-rocketmq) | Sink | N/A | | ||
| [RocketMQ](source-connector-rocketmq) | Source | N/A | | ||
| ClickHouse | Sink | N/A | | ||
| ClickHouse | Source | N/A | | ||
| DingTalk | Sink | N/A | | ||
| Email | Sink | N/A | | ||
| FeiShu | Sink | N/A | | ||
| Github | Source | N/A | | ||
| Http | Sink | N/A | | ||
| Http | Source | N/A | | ||
| Jdbc | Sink | N/A | | ||
| Jdbc | Source | N/A | | ||
| MySqlCDC | Source | N/A | | ||
| MongoDB | Sink | N/A | | ||
| MongoDB | Source | N/A | | ||
| S3File | Sink | N/A | | ||
| S3File | Source | N/A | | ||
| More connectors will be added... | Source/Sink | N/A | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# |
Oops, something went wrong.