Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
c4098a23
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c4098a23
编写于
10月 12, 2017
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Support javadoc generation."
This reverts commit
5c56d41a
.
上级
5c56d41a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
34 deletion
+12
-34
apm-commons/apm-datacarrier/src/main/java/org/skywalking/apm/commons/datacarrier/DataCarrier.java
...a/org/skywalking/apm/commons/datacarrier/DataCarrier.java
+10
-12
apm-commons/apm-datacarrier/src/main/java/org/skywalking/apm/commons/datacarrier/buffer/Channels.java
...g/skywalking/apm/commons/datacarrier/buffer/Channels.java
+2
-2
pom.xml
pom.xml
+0
-20
未找到文件。
apm-commons/apm-datacarrier/src/main/java/org/skywalking/apm/commons/datacarrier/DataCarrier.java
浏览文件 @
c4098a23
...
...
@@ -45,10 +45,10 @@ public class DataCarrier<T> {
/**
* set a new IDataPartitioner.
* It will cover the current one or default one.(Default is {@link SimpleRollingPartitioner}
* It will cover the current one or default one.(Default is {@link SimpleRollingPartitioner
)
}
*
* @param dataPartitioner
implementation
* @return
{@link DataCarrier} instance itself
* @param dataPartitioner
* @return
*/
public
DataCarrier
setPartitioner
(
IDataPartitioner
<
T
>
dataPartitioner
)
{
this
.
channels
.
setPartitioner
(
dataPartitioner
);
...
...
@@ -57,10 +57,9 @@ public class DataCarrier<T> {
/**
* override the strategy at runtime.
* Notice, {@link Channels} will override several channels one by one.
* Notice, {@link Channels
<T>
} will override several channels one by one.
*
* @param strategy {@link BufferStrategy}
* @return {@link DataCarrier} instance itself
* @param strategy
*/
public
DataCarrier
setBufferStrategy
(
BufferStrategy
strategy
)
{
this
.
channels
.
setStrategy
(
strategy
);
...
...
@@ -68,9 +67,9 @@ public class DataCarrier<T> {
}
/**
* produce data to buffer, using the given {@link BufferStrategy}.
* produce data to buffer, using the giv
v
en {@link BufferStrategy}.
*
* @param data
inserted into the channel.
* @param data
* @return false means produce data failure. The data will not be consumed.
*/
public
boolean
produce
(
T
data
)
{
...
...
@@ -85,11 +84,10 @@ public class DataCarrier<T> {
/**
* set consumers to this Carrier.
* consumer begin to run when {@link DataCarrier<T>
{@link #produce(Object)}
} begin to work.
* consumer begin to run when {@link DataCarrier<T>
#produce(T)
} begin to work.
*
* @param consumerClass class of consumer
* @param num number of consumer threads
* @return {@link DataCarrier} instance itself
*/
public
DataCarrier
consume
(
Class
<?
extends
IConsumer
<
T
>>
consumerClass
,
int
num
)
{
if
(
consumerPool
!=
null
)
{
...
...
@@ -102,11 +100,11 @@ public class DataCarrier<T> {
/**
* set consumers to this Carrier.
* consumer begin to run when
produce
begin to work.
* consumer begin to run when
{@link DataCarrier<T>#produce(T)}
begin to work.
*
* @param consumer single instance of consumer, all consumer threads will all use this instance.
* @param num number of consumer threads
* @return
{@link DataCarrier} instance itself
* @return
*/
public
DataCarrier
consume
(
IConsumer
<
T
>
consumer
,
int
num
)
{
if
(
consumerPool
!=
null
)
{
...
...
apm-commons/apm-datacarrier/src/main/java/org/skywalking/apm/commons/datacarrier/buffer/Channels.java
浏览文件 @
c4098a23
...
...
@@ -66,7 +66,7 @@ public class Channels<T> {
* override the strategy at runtime. Notice, this will override several channels one by one. So, when running
* setStrategy, each channel may use different BufferStrategy
*
* @param strategy
{@link BufferStrategy}
* @param strategy
*/
public
void
setStrategy
(
BufferStrategy
strategy
)
{
for
(
Buffer
<
T
>
buffer
:
bufferChannels
)
{
...
...
@@ -77,7 +77,7 @@ public class Channels<T> {
/**
* get channelSize
*
* @return
channel size
* @return
*/
public
int
getChannelSize
()
{
return
this
.
bufferChannels
.
length
;
...
...
pom.xml
浏览文件 @
c4098a23
...
...
@@ -266,26 +266,6 @@
</executions>
<version>
2.4
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.8.1
</version>
<executions>
<execution>
<id>
attach-javadocs
</id>
<goals>
<goal>
jar
</goal>
</goals>
</execution>
</executions>
<configuration>
<aggregate>
true
</aggregate>
<charset>
${project.build.sourceEncoding}
</charset>
<encoding>
${project.build.sourceEncoding}
</encoding>
<docencoding>
${project.build.sourceEncoding}
</docencoding>
<additionalparam>
-Xdoclint:none
</additionalparam>
</configuration>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
versions-maven-plugin
</artifactId>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录