Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
24526f2b
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
24526f2b
编写于
4月 12, 2017
作者:
P
pengys5
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix comments
上级
ebdfe399
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
23 addition
and
25 deletion
+23
-25
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractClusterWorker.java
...eye/skywalking/collector/actor/AbstractClusterWorker.java
+9
-10
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractClusterWorkerProvider.java
...alking/collector/actor/AbstractClusterWorkerProvider.java
+3
-3
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractLocalAsyncWorker.java
.../skywalking/collector/actor/AbstractLocalAsyncWorker.java
+4
-4
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/AbstractHashMessage.java
...walking/collector/actor/selector/AbstractHashMessage.java
+4
-5
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/HashCodeSelector.java
...skywalking/collector/actor/selector/HashCodeSelector.java
+1
-1
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/RollingSelector.java
.../skywalking/collector/actor/selector/RollingSelector.java
+1
-1
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/WorkerSelector.java
...e/skywalking/collector/actor/selector/WorkerSelector.java
+1
-1
未找到文件。
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractClusterWorker.java
浏览文件 @
24526f2b
...
...
@@ -11,22 +11,21 @@ import org.apache.logging.log4j.LogManager;
import
org.apache.logging.log4j.Logger
;
/**
* The <code>AbstractClusterWorker</code> should be implemented by any class whose instances
* are intended to provide receive remote message that message will transfer across different jvm
* which running in same server or another address server.
* The <code>AbstractClusterWorker</code> implementations represent workers,
* which receive remote messages.
* <p>
* Usually
the implemented class used to receive persistence data or aggregation the metric
.
* Usually
, the implementations are doing persistent, or aggregate works
.
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
abstract
class
AbstractClusterWorker
extends
AbstractWorker
{
/**
* Construct
s a
<code>AbstractClusterWorker</code> with the worker role and context.
* Construct
an
<code>AbstractClusterWorker</code> with the worker role and context.
*
* @param role
The responsibility of worker in cluster, more than one workers can have
*
same responsibility which use to provide load balancing ability
.
* @param role
If multi-workers are for load balance, they should be more likely called worker instance.
*
Meaning, each worker have multi instances
.
* @param clusterContext See {@link ClusterWorkerContext}
* @param selfContext See {@link LocalWorkerContext}
*/
...
...
@@ -35,7 +34,7 @@ public abstract class AbstractClusterWorker extends AbstractWorker {
}
/**
*
Receive message
*
This method use for message producer to call for send message.
*
* @param message The persistence data or metric data.
* @throws Exception The Exception happen in {@link #onWork(Object)}
...
...
@@ -45,7 +44,7 @@ public abstract class AbstractClusterWorker extends AbstractWorker {
}
/**
* Th
e data process logic in this method
.
* Th
is method use for message receiver to analyse message
.
*
* @param message Cast the message object to a expect subclass.
* @throws Exception Don't handle the exception, throw it.
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractClusterWorkerProvider.java
浏览文件 @
24526f2b
...
...
@@ -4,12 +4,12 @@ import akka.actor.ActorRef;
import
akka.actor.Props
;
/**
* The <code>AbstractClusterWorkerProvider</code>
should be implemented by any class whose instances
*
are intended to provide create the class instance
whose implemented {@link AbstractClusterWorker}.
* The <code>AbstractClusterWorkerProvider</code>
implementations represent providers,
*
which create instance of cluster workers
whose implemented {@link AbstractClusterWorker}.
* <p>
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
abstract
class
AbstractClusterWorkerProvider
<
T
extends
AbstractClusterWorker
>
extends
AbstractWorkerProvider
<
T
>
{
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/AbstractLocalAsyncWorker.java
浏览文件 @
24526f2b
...
...
@@ -6,16 +6,16 @@ import com.lmax.disruptor.EventHandler;
import
com.lmax.disruptor.RingBuffer
;
/**
* The <code>AbstractLocalAsyncWorker</code>
should be implemented by any class whose instances
*
are intended to provide receive asynchronous message in same jvm
.
* The <code>AbstractLocalAsyncWorker</code>
implementations represent workers,
*
which receive local asynchronous message
.
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
abstract
class
AbstractLocalAsyncWorker
extends
AbstractLocalWorker
{
/**
* Construct
s a
<code>AbstractLocalAsyncWorker</code> with the worker role and context.
* Construct
an
<code>AbstractLocalAsyncWorker</code> with the worker role and context.
*
* @param role The responsibility of worker in cluster, more than one workers can have
* same responsibility which use to provide load balancing ability.
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/AbstractHashMessage.java
浏览文件 @
24526f2b
package
com.a.eye.skywalking.collector.actor.selector
;
/**
* The <code>AbstractHashMessage</code> should be implemented by any class whose instances
* are intended to provide send message with {@link HashCodeSelector}.
* The <code>AbstractHashMessage</code> implementations represent aggregate message,
* which use to aggregate metric.
* Make the message aggregator's worker selector use of {@link HashCodeSelector}.
* <p>
* Usually the implemented class used to persistence data to database
* or aggregation the metric.
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
abstract
class
AbstractHashMessage
{
private
int
hashCode
;
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/HashCodeSelector.java
浏览文件 @
24526f2b
...
...
@@ -11,7 +11,7 @@ import java.util.List;
* message to same {@link WorkerRef}. Usually, use to database operate which avoid dirty data.
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
class
HashCodeSelector
implements
WorkerSelector
<
WorkerRef
>
{
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/RollingSelector.java
浏览文件 @
24526f2b
...
...
@@ -10,7 +10,7 @@ import java.util.List;
* It choose {@link WorkerRef} nearly random, by round-robin.
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
class
RollingSelector
implements
WorkerSelector
<
WorkerRef
>
{
...
...
skywalking-collector/skywalking-collector-cluster/src/main/java/com/a/eye/skywalking/collector/actor/selector/WorkerSelector.java
浏览文件 @
24526f2b
...
...
@@ -12,7 +12,7 @@ import java.util.List;
* Actually, the <code>WorkerRef</code> is designed to provide a routing ability in the collector cluster
*
* @author pengys5
* @since
feature3.0
* @since
v3.0-2017
*/
public
interface
WorkerSelector
<
T
extends
WorkerRef
>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录