Skip to content

Commit

Permalink
add annotation @public and upgrade version to 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Jan 18, 2022
1 parent f06cb57 commit cf5f02a
Show file tree
Hide file tree
Showing 42 changed files with 140 additions and 73 deletions.
2 changes: 1 addition & 1 deletion maven-tpi-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<!--https://maven.apache.org/maven-ci-friendly.html-->
<version>3.4.0</version>
<version>3.5.0</version>
<packaging>pom</packaging>
<name>tis</name>
<url>https://maven.apache.org</url>
Expand Down
2 changes: 1 addition & 1 deletion setversion.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mvn versions:set -DnewVersion=3.4.0 -DprocessDependencies=true -DgenerateBackupPoms=false
mvn versions:set -DnewVersion=3.5.0 -DprocessDependencies=true -DgenerateBackupPoms=false
2 changes: 1 addition & 1 deletion tis-assemble/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion tis-base-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>tis</artifactId>
<groupId>com.qlangtech.tis</groupId>
<version>3.4.0</version>
<version>3.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion tis-builder-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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
*
* https://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 com.qlangtech.tis.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* Annotation for marking classes as public, stable interfaces.
*
* <p>Classes, methods and fields with this annotation are stable across minor releases (1.0, 1.1,
* 1.2). In other words, applications using @Public annotated classes will compile against newer
* versions of the same major release.
*
* <p>Only major releases (1.0, 2.0, 3.0) can break interfaces with this annotation.
*/
@Documented
@Target(ElementType.TYPE)
@Public
public @interface Public {
}
2 changes: 1 addition & 1 deletion tis-collection-info-collect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>tis-collection-info-collect</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion tis-common-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>tis</artifactId>
<groupId>com.qlangtech.tis</groupId>
<version>3.4.0</version>
<version>3.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion tis-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>com.qlangtech.tis</groupId>
Expand Down
2 changes: 1 addition & 1 deletion tis-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion tis-dag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>tis</artifactId>
<groupId>com.qlangtech.tis</groupId>
<version>3.4.0</version>
<version>3.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion tis-datax-executor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion tis-hadoop-rpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion tis-manage-pojo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion tis-plugin-sezpoz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>tis</artifactId>
<groupId>com.qlangtech.tis</groupId>
<version>3.4.0</version>
<version>3.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.CLASS)
@Documented
Expand Down
2 changes: 1 addition & 1 deletion tis-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.qlangtech.tis</groupId>
<artifactId>tis</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* 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
*
* https://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.
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 com.qlangtech.tis.async.message.client.consumer;

Expand All @@ -24,12 +24,12 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
public interface IConsumerHandle<SOURCE> {
public interface IConsumerHandle<SOURCE,FLINK_RESULT> {

/**
* 处理消息Handle,业务逻辑在此处理
*
* @param asyncMsg
*/
void consume(TargetResName dataxName, AsyncMsg<SOURCE> asyncMsg, IDataxProcessor dataXProcessor) throws Exception;
FLINK_RESULT consume(TargetResName dataxName, AsyncMsg<SOURCE> asyncMsg, IDataxProcessor dataXProcessor) throws Exception;
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* 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
*
* https://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.
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 com.qlangtech.tis.async.message.client.consumer;

Expand All @@ -28,7 +28,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
public interface IMQListener {
public interface IMQListener<FLINK_RESULT> {

String getTopic();

Expand All @@ -39,5 +39,5 @@ public interface IMQListener {
/**
* Listener启动
*/
void start(TargetResName dataxName, IDataxReader rdbmsReader, List<ISelectedTab> tabs, IDataxProcessor dataXProcessor) throws MQConsumeException;
FLINK_RESULT start(TargetResName dataxName, IDataxReader rdbmsReader, List<ISelectedTab> tabs, IDataxProcessor dataXProcessor) throws MQConsumeException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package com.qlangtech.tis.async.message.client.consumer.impl;

import com.qlangtech.tis.TIS;
import com.qlangtech.tis.annotation.Public;
import com.qlangtech.tis.async.message.client.consumer.IAsyncMsgDeserialize;
import com.qlangtech.tis.extension.Describable;
import com.qlangtech.tis.extension.Descriptor;
Expand All @@ -26,6 +27,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
@Public
public abstract class AbstractAsyncMsgDeserialize implements IAsyncMsgDeserialize, Describable<AbstractAsyncMsgDeserialize> {

// public abstract String getName();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* 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
*
* https://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.
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 com.qlangtech.tis.async.message.client.consumer.impl;

Expand All @@ -26,7 +26,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
public abstract class AbstractConsumerHandle<SOURCE> implements IConsumerHandle<SOURCE> {
public abstract class AbstractConsumerHandle<SOURCE, FLINK_RESULT> implements IConsumerHandle<SOURCE, FLINK_RESULT> {

public abstract String getName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package com.qlangtech.tis.async.message.client.consumer.impl;

import com.qlangtech.tis.TIS;
import com.qlangtech.tis.annotation.Public;
import com.qlangtech.tis.async.message.client.consumer.IConsumerHandle;
import com.qlangtech.tis.async.message.client.consumer.IMQConsumerStatusFactory;
import com.qlangtech.tis.async.message.client.consumer.IMQListenerFactory;
Expand All @@ -35,6 +36,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
@Public
public abstract class MQListenerFactory implements IMQListenerFactory, IMQConsumerStatusFactory, Describable<MQListenerFactory> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import com.alibaba.fastjson.annotation.JSONField;
import com.qlangtech.tis.TIS;
import com.qlangtech.tis.annotation.Public;
import com.qlangtech.tis.extension.Describable;
import com.qlangtech.tis.extension.Descriptor;
import com.qlangtech.tis.plugin.IPluginStore;
Expand All @@ -33,6 +34,7 @@
* @author 百岁([email protected]
* @date 2020/04/13
*/
@Public
public abstract class ParamsConfig implements Describable<ParamsConfig>, IdentityName {
public static final String CONTEXT_PARAMS_CFG = "params-cfg";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.alibaba.citrus.turbine.Context;
import com.qlangtech.tis.TIS;
import com.qlangtech.tis.annotation.Public;
import com.qlangtech.tis.datax.job.DataXJobWorker;
import com.qlangtech.tis.extension.ExtensionList;
import com.qlangtech.tis.extension.TISExtensible;
Expand All @@ -39,6 +40,7 @@
* @create: 2021-04-27 17:03
**/
@TISExtensible
@Public
public abstract class DataXJobSubmit {

public static final int MAX_TABS_NUM_IN_PER_JOB = 40;
Expand Down
Loading

0 comments on commit cf5f02a

Please sign in to comment.