Skip to content

Commit dd618c1

Browse files
committed
move to new repository
0 parents  commit dd618c1

File tree

424 files changed

+43712
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

424 files changed

+43712
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### 该工程是Tars框架Java语言的源代码 ###
2+
3+
4+
| 目录名称 | 功能 |
5+
| ------------------ | ---------------- |
6+
| net | 框架rpc网络库 |
7+
| core | 框架rpc的实现 |
8+
| tools | 框架工具的实现,maven插件等 |
9+
| examples | 框架的示例代码 |
10+
| distributedContext | 框架的分布式上下文 |
11+
| protobuf | 框架的pb协议支持 |
12+
| spring | 框架的spring相关支持 |
13+
14+
15+
16+
17+
18+

core/README.md

Whitespace-only changes.

core/client.pom.xml

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.tencent.tars</groupId>
8+
<artifactId>tars-parent</artifactId>
9+
<version>1.6.0</version>
10+
</parent>
11+
<artifactId>tars-client</artifactId>
12+
<name>${project.artifactId}</name>
13+
<packaging>jar</packaging>
14+
15+
<properties>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
<brave.version>5.1.0</brave.version>
18+
<brave-opentracing.version>0.31.1</brave-opentracing.version>
19+
<zipkin-reporter.version>2.7.4</zipkin-reporter.version>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.tencent.tars</groupId>
25+
<artifactId>tars-net</artifactId>
26+
<version>${project.parent.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>com.tencent.tars</groupId>
30+
<artifactId>tars-context</artifactId>
31+
<version>${project.parent.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>javax.servlet</groupId>
35+
<artifactId>javax.servlet-api</artifactId>
36+
<version>3.0.1</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>junit</groupId>
40+
<artifactId>junit</artifactId>
41+
<version>3.8.1</version>
42+
<scope>test</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>io.zipkin.reporter2</groupId>
46+
<artifactId>zipkin-sender-kafka11</artifactId>
47+
<version>${zipkin-reporter.version}</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>io.opentracing.brave</groupId>
51+
<artifactId>brave-opentracing</artifactId>
52+
<version>${brave-opentracing.version}</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>io.zipkin.reporter2</groupId>
56+
<artifactId>zipkin-sender-kafka08</artifactId>
57+
<version>${zipkin-reporter.version}</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>io.zipkin.reporter2</groupId>
61+
<artifactId>zipkin-sender-urlconnection</artifactId>
62+
<version>${zipkin-reporter.version}</version>
63+
</dependency>
64+
</dependencies>
65+
66+
<build>
67+
<plugins>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-compiler-plugin</artifactId>
71+
<configuration>
72+
<includes>
73+
<include>com/qq/tars/client/**</include>
74+
<include>com/qq/tars/common/**</include>
75+
<include>com/qq/tars/protocol/**</include>
76+
<include>com/qq/tars/rpc/**</include>
77+
<include>com/qq/tars/register/**</include>
78+
<include>com/qq/tars/support/query/**</include>
79+
<include>com/qq/tars/support/stat/**</include>
80+
<include>com/qq/tars/support/log/**</include>
81+
</includes>
82+
</configuration>
83+
<dependencies>
84+
<dependency>
85+
<groupId>org.codehaus.plexus</groupId>
86+
<artifactId>plexus-compiler-javac</artifactId>
87+
<version>1.8.1</version>
88+
</dependency>
89+
</dependencies>
90+
</plugin>
91+
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-source-plugin</artifactId>
95+
<version>2.1.2</version>
96+
<executions>
97+
<execution>
98+
<id>attach-sources</id>
99+
<phase>verify</phase>
100+
<goals>
101+
<goal>jar-no-fork</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
<configuration>
106+
<includes>
107+
<include>com/qq/tars/client/**</include>
108+
<include>com/qq/tars/common/**</include>
109+
<include>com/qq/tars/protocol/**</include>
110+
<include>com/qq/tars/rpc/**</include>
111+
<include>com/qq/tars/register/**</include>
112+
<include>com/qq/tars/support/query/**</include>
113+
<include>com/qq/tars/support/stat/**</include>
114+
<include>com/qq/tars/support/log/**</include>
115+
</includes>
116+
</configuration>
117+
</plugin>
118+
</plugins>
119+
</build>
120+
</project>

core/pom.xml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.tencent.tars</groupId>
8+
<artifactId>tars-parent</artifactId>
9+
<version>1.6.0</version>
10+
</parent>
11+
<artifactId>tars-core</artifactId>
12+
<name>${project.artifactId}</name>
13+
<packaging>jar</packaging>
14+
15+
<properties>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
<brave.version>5.1.0</brave.version>
18+
<brave-opentracing.version>0.31.1</brave-opentracing.version>
19+
<zipkin-reporter.version>2.7.4</zipkin-reporter.version>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.tencent.tars</groupId>
25+
<artifactId>tars-net</artifactId>
26+
<version>${project.parent.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>javax.servlet</groupId>
30+
<artifactId>javax.servlet-api</artifactId>
31+
<version>3.0.1</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>com.tencent.tars</groupId>
35+
<artifactId>tars-context</artifactId>
36+
<version>${project.parent.version}</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>io.zipkin.reporter2</groupId>
40+
<artifactId>zipkin-sender-kafka11</artifactId>
41+
<version>${zipkin-reporter.version}</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>io.opentracing.brave</groupId>
45+
<artifactId>brave-opentracing</artifactId>
46+
<version>${brave-opentracing.version}</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>io.zipkin.reporter2</groupId>
50+
<artifactId>zipkin-sender-kafka08</artifactId>
51+
<version>${zipkin-reporter.version}</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>io.zipkin.reporter2</groupId>
55+
<artifactId>zipkin-sender-urlconnection</artifactId>
56+
<version>${zipkin-reporter.version}</version>
57+
</dependency>
58+
</dependencies>
59+
</project>

core/server.pom.xml

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.tencent.tars</groupId>
8+
<artifactId>tars-parent</artifactId>
9+
<version>1.6.0</version>
10+
</parent>
11+
<artifactId>tars-server</artifactId>
12+
<name>${project.artifactId}</name>
13+
<packaging>jar</packaging>
14+
15+
<properties>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
<brave.version>5.1.0</brave.version>
18+
<brave-opentracing.version>0.31.1</brave-opentracing.version>
19+
<zipkin-reporter.version>2.7.4</zipkin-reporter.version>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.tencent.tars</groupId>
25+
<artifactId>tars-client</artifactId>
26+
<version>${project.parent.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>javax.servlet</groupId>
30+
<artifactId>javax.servlet-api</artifactId>
31+
<version>3.0.1</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>junit</groupId>
35+
<artifactId>junit</artifactId>
36+
<version>3.8.1</version>
37+
<scope>test</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>io.zipkin.reporter2</groupId>
41+
<artifactId>zipkin-sender-kafka11</artifactId>
42+
<version>${zipkin-reporter.version}</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>io.opentracing.brave</groupId>
46+
<artifactId>brave-opentracing</artifactId>
47+
<version>${brave-opentracing.version}</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>io.zipkin.reporter2</groupId>
51+
<artifactId>zipkin-sender-kafka08</artifactId>
52+
<version>${zipkin-reporter.version}</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>io.zipkin.reporter2</groupId>
56+
<artifactId>zipkin-sender-urlconnection</artifactId>
57+
<version>${zipkin-reporter.version}</version>
58+
</dependency>
59+
</dependencies>
60+
<build>
61+
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<configuration>
66+
<includes>
67+
<include>com/qq/tars/server/**</include>
68+
<include>com/qq/tars/common/**</include>
69+
<include>com/qq/tars/protocol/**</include>
70+
<include>com/qq/tars/register/**</include>
71+
<include>com/qq/tars/support/log/**</include>
72+
<include>com/qq/tars/support/om/**</include>
73+
<include>com/qq/tars/support/trace/**</include>
74+
</includes>
75+
</configuration>
76+
<dependencies>
77+
<dependency>
78+
<groupId>org.codehaus.plexus</groupId>
79+
<artifactId>plexus-compiler-javac</artifactId>
80+
<version>1.8.1</version>
81+
</dependency>
82+
</dependencies>
83+
</plugin>
84+
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-source-plugin</artifactId>
88+
<executions>
89+
<execution>
90+
<id>attach-sources</id>
91+
<phase>verify</phase>
92+
<goals>
93+
<goal>jar-no-fork</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
<configuration>
98+
<includes>
99+
<include>com/qq/tars/server/**</include>
100+
<include>com/qq/tars/common/**</include>
101+
<include>com/qq/tars/protocol/**</include>
102+
<include>com/qq/tars/register/**</include>
103+
<include>com/qq/tars/support/log/**</include>
104+
<include>com/qq/tars/support/om/**</include>
105+
<include>com/qq/tars/support/trace/**</include>
106+
</includes>
107+
</configuration>
108+
</plugin>
109+
</plugins>
110+
</build>
111+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Tencent is pleased to support the open source community by making Tars available.
3+
*
4+
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
5+
*
6+
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
7+
* in compliance with the License. You may obtain a copy of the License at
8+
*
9+
* https://opensource.org/licenses/BSD-3-Clause
10+
*
11+
* Unless required by applicable law or agreed to in writing, software distributed
12+
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
14+
* specific language governing permissions and limitations under the License.
15+
*/
16+
17+
package com.qq.tars.client;
18+
19+
public final class ClientVersion {
20+
21+
public static final String major = "1";
22+
public static final String minor = "5";
23+
public static final String build = "0";
24+
25+
public static String getVersion() {
26+
return major + "." + minor + "." + build;
27+
}
28+
29+
public String toString() {
30+
return getVersion();
31+
}
32+
}

0 commit comments

Comments
 (0)