Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge EventMesh Function branch to master #5019

Merged
merged 27 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8481187
EventMesh function admin (#4851)
sodaRyCN Apr 18, 2024
02bcd35
EventMesh function admin (#4853)
sodaRyCN Apr 19, 2024
02f6d44
Eventmesh function admin (#4854)
sodaRyCN Apr 22, 2024
859ad8d
EventMesh function connector runtime (#4858)
xwm1992 Apr 22, 2024
78942c4
[ISSUE #4931]Add Registry Module for Discovery AdminServer
sodaRyCN May 29, 2024
aa8f604
[ISSUES #4933]Add Admin Module
sodaRyCN May 29, 2024
1cb3b02
[ISSUE #4935] Add and Move the Pojo Used By Both Runtime and Admin to…
sodaRyCN May 29, 2024
cb1b7b8
[ISSUE #4937]fix gradle dependecy and add runtime v2
sodaRyCN May 29, 2024
b4d3b2a
[ISSUES #4939]add canal connector
sodaRyCN May 29, 2024
c673a19
fix conflicts with master
xwm1992 May 29, 2024
a224b51
fix missing apache header
xwm1992 May 29, 2024
864cda0
fix missing apache header
xwm1992 May 29, 2024
ae3cbfc
fix missing apache header
xwm1992 May 29, 2024
6ab26df
update gradle dependencies
xwm1992 May 29, 2024
0a5686e
fix admin server ci check error
xwm1992 May 29, 2024
9934aa1
fix admin server ci check error
xwm1992 May 29, 2024
715c595
fix ci checkStyle error
xwm1992 May 30, 2024
0b9f6d0
Merge branch 'master' of https://github.com/apache/eventmesh into eve…
xwm1992 May 30, 2024
bfafbfb
fix ci check error
xwm1992 May 31, 2024
3550ac3
[ISSUE #4979]Canal Connector supports bidirectional data synchronization
xwm1992 Jun 5, 2024
5f1c1af
add bash files for admin & runtime-v2
xwm1992 Jun 6, 2024
8f4748f
fix ack offset read & persist
xwm1992 Jun 28, 2024
50a204e
fix checkStyle error
xwm1992 Jun 28, 2024
ae621d4
[ISSUE #4979] Canal Connector supports bidirectional data synchroniza…
xwm1992 Jul 1, 2024
fb411ba
Merge branch 'eventmesh-function' of https://github.com/apache/eventm…
xwm1992 Jul 1, 2024
f2d7645
solve conflicts with master branch
xwm1992 Jul 1, 2024
4e638f5
fix http source connector test error
xwm1992 Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[ISSUE #4935] Add and Move the Pojo Used By Both Runtime and Admin to…
… Common
  • Loading branch information
sodaRyCN authored May 29, 2024
commit 1cb3b02311b44b7524d6ab61fdb1bdfe51283d45
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,6 @@ public class Constants {
public static final String OS_WIN_PREFIX = "win";

public static final String DEFAULT = "default";

public static final String ADMIN_SERVER_REGISTRY_NAME = "DEFAULT_GROUP@@em_adm_server";
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public class CommonConfiguration {
@ConfigField(field = "registry.plugin.password")
private String eventMeshRegistryPluginPassword = "";

@ConfigField(field = "registry.plugin.enabled")
private boolean eventMeshRegistryPluginEnabled = false;

public void reload() {
this.eventMeshWebhookOrigin = "eventmesh." + eventMeshIDC;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

package org.apache.eventmesh.common.config;

import static org.apache.eventmesh.common.utils.ReflectUtils.lookUpFieldByParentClass;

import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import org.assertj.core.util.Strings;

import java.io.File;
import java.io.IOException;
Expand All @@ -29,9 +29,7 @@
import java.util.Objects;
import java.util.Properties;

import org.assertj.core.util.Strings;

import lombok.Getter;
import static org.apache.eventmesh.common.utils.ReflectUtils.lookUpFieldByParentClass;

public class ConfigService {

Expand Down Expand Up @@ -60,6 +58,9 @@ private ConfigService() {
}

public ConfigService setConfigPath(String configPath) {
if (StringUtils.isNotBlank(configPath) && !configPath.endsWith(File.separator)) {
configPath = configPath + File.separator;
}
this.configPath = configPath;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* 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.common.config.connector;

public abstract class Config {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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.common.config.connector;

public class Constants {

public static final String ENV_TARGET = "connectorTarget";

public static final String ENV_PORT = "connectorPort";

public static final String ENV_SOURCE_CONFIG_FILE = "sourceConnectorConf";

public static final String ENV_SINK_CONFIG_FILE = "sinkConnectorConf";

public static final int DEFAULT_ATTEMPT = 3;

public static final int DEFAULT_PORT = 8080;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* 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.common.config.connector;

import lombok.Data;

@Data
public class PubSubConfig {

private String meshAddress;

private String subject;

private String idc;

private String env;

private String group;

private String appId;

private String userName;

private String passWord;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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.common.config.connector;

import org.apache.eventmesh.common.config.connector.Config;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class SinkConfig extends Config {

private PubSubConfig pubSubConfig;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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.common.config.connector;

import org.apache.eventmesh.common.config.connector.offset.OffsetStorageConfig;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class SourceConfig extends Config {

private PubSubConfig pubSubConfig;

private OffsetStorageConfig offsetStorageConfig;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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.common.config.connector.dingtalk;

import org.apache.eventmesh.common.config.connector.SinkConfig;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DingDingSinkConfig extends SinkConfig {

private SinkConnectorConfig sinkConnectorConfig;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* 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.common.config.connector.dingtalk;

import lombok.Data;

@Data
public class SinkConnectorConfig {

private String connectorName;

private String appKey;

private String appSecret;

private String openConversationId;

private String robotCode;

private String coolAppCode;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* 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.common.config.connector.file;

import org.apache.eventmesh.common.config.connector.SinkConfig;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class FileSinkConfig extends SinkConfig {

public SinkConnectorConfig connectorConfig;

private Integer flushSize = 1000;

private boolean hourlyFlushEnabled = false;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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.common.config.connector.file;

import org.apache.eventmesh.common.config.connector.SourceConfig;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class FileSourceConfig extends SourceConfig {

public SourceConnectorConfig connectorConfig;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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.common.config.connector.file;

import lombok.Data;

@Data
public class SinkConnectorConfig {

private String connectorName;

private String topic;
}
Loading
Loading