Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿信在这里
SkyWalking
提交
106dc93f
S
SkyWalking
项目概览
阿信在这里
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / SkyWalking
通知
1
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,发现更多精彩内容 >>
提交
106dc93f
编写于
2月 18, 2017
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix api compile issue. remove rmi-oracle plugin.
上级
2a979c02
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
1 addition
and
126 deletion
+1
-126
skywalking-sniffer/skywalking-api/src/main/java/com/a/eye/skywalking/queue/TraceSegmentProcessQueue.java
.../com/a/eye/skywalking/queue/TraceSegmentProcessQueue.java
+1
-1
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/pom.xml
...iffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/pom.xml
+0
-15
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/RMIBuriedPointType.java
...ye/skywalking/plugin/rmi/oracle18/RMIBuriedPointType.java
+0
-25
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/RMIClientInterceptor.java
.../skywalking/plugin/rmi/oracle18/RMIClientInterceptor.java
+0
-42
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/define/RMIClientDefine.java
...kywalking/plugin/rmi/oracle18/define/RMIClientDefine.java
+0
-42
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/resources/skywalking-plugin.def
...racle-1.8-plugin/src/main/resources/skywalking-plugin.def
+0
-1
未找到文件。
skywalking-sniffer/skywalking-api/src/main/java/com/a/eye/skywalking/queue/TraceSegmentProcessQueue.java
浏览文件 @
106dc93f
...
...
@@ -33,7 +33,7 @@ public enum TraceSegmentProcessQueue implements TracerContextListener {
};
private
Disruptor
<
TraceSegmentHolder
>
disruptor
;
private
RingBuffer
<
TraceSegmentHolder
>
buffer
;
RingBuffer
<
TraceSegmentHolder
>
buffer
;
TraceSegmentProcessQueue
()
{
disruptor
=
new
Disruptor
<>(
TraceSegmentHolder
.
Factory
.
INSTANCE
,
Config
.
Disruptor
.
BUFFER_SIZE
,
DaemonThreadFactory
.
INSTANCE
);
...
...
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/pom.xml
已删除
100644 → 0
浏览文件 @
2a979c02
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
skywalking-sdk-plugin
</artifactId>
<groupId>
com.a.eye
</groupId>
<version>
3.0-2017
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
rmi-oracle-1.8-plugin
</artifactId>
<packaging>
jar
</packaging>
<name>
rmi-oracle-1.8-plugin
</name>
<url>
http://maven.apache.org
</url>
</project>
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/RMIBuriedPointType.java
已删除
100644 → 0
浏览文件 @
2a979c02
package
com.a.eye.skywalking.plugin.rmi.oracle18
;
import
com.a.eye.skywalking.api.IBuriedPointType
;
/**
* Created by xin on 2016/12/22.
*/
public
class
RMIBuriedPointType
implements
IBuriedPointType
{
public
static
RMIBuriedPointType
INSTANCE
=
new
RMIBuriedPointType
();
private
RMIBuriedPointType
(){
}
@Override
public
String
getTypeName
()
{
return
"R"
;
}
@Override
public
CallType
getCallType
()
{
return
CallType
.
SYNC
;
}
}
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/RMIClientInterceptor.java
已删除
100644 → 0
浏览文件 @
2a979c02
package
com.a.eye.skywalking.plugin.rmi.oracle18
;
import
com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor
;
import
com.a.eye.skywalking.model.ContextData
;
import
com.a.eye.skywalking.model.Identification
;
import
com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult
;
import
java.lang.reflect.Method
;
import
java.util.Arrays
;
/**
* Created by xin on 2016/12/22.
*/
public
class
RMIClientInterceptor
implements
InstanceMethodsAroundInterceptor
{
@Override
public
void
beforeMethod
(
EnhancedClassInstanceContext
context
,
InstanceMethodInvokeContext
interceptorContext
,
MethodInterceptResult
result
)
{
Object
[]
arguments
=
(
Object
[])
interceptorContext
.
allArguments
()[
3
];
ContextData
contextData
=
new
RPCClientInvokeMonitor
()
.
beforeInvoke
(
Identification
.
newBuilder
().
viewPoint
(((
Method
)
interceptorContext
.
allArguments
()[
2
]).
getName
()).
spanType
(
RMIBuriedPointType
.
INSTANCE
).
build
());
String
contextDataStr
=
contextData
.
toString
();
Object
[]
newArguments
=
Arrays
.
copyOf
(
arguments
,
arguments
.
length
+
1
);
newArguments
[
arguments
.
length
]
=
contextDataStr
;
interceptorContext
.
allArguments
()[
3
]
=
newArguments
;
}
@Override
public
Object
afterMethod
(
EnhancedClassInstanceContext
context
,
InstanceMethodInvokeContext
interceptorContext
,
Object
ret
)
{
new
RPCClientInvokeMonitor
().
afterInvoke
();
return
ret
;
}
@Override
public
void
handleMethodException
(
Throwable
t
,
EnhancedClassInstanceContext
context
,
InstanceMethodInvokeContext
interceptorContext
)
{
new
RPCClientInvokeMonitor
().
occurException
(
t
);
}
}
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/java/com/a/eye/skywalking/plugin/rmi/oracle18/define/RMIClientDefine.java
已删除
100644 → 0
浏览文件 @
2a979c02
package
com.a.eye.skywalking.plugin.rmi.oracle18.define
;
import
com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint
;
import
com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint
;
import
com.a.eye.skywalking.plugin.interceptor.MethodMatcher
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine
;
import
com.a.eye.skywalking.plugin.interceptor.matcher.SimpleMethodMatcher
;
/**
* Created by xin on 2016/12/22.
*/
public
class
RMIClientDefine
extends
ClassInstanceMethodsEnhancePluginDefine
{
@Override
protected
String
enhanceClassName
()
{
return
"java.rmi.serve.RemoteObjectInvocationHandler"
;
}
@Override
protected
ConstructorInterceptPoint
[]
getConstructorsInterceptPoints
()
{
return
new
ConstructorInterceptPoint
[
0
];
}
@Override
protected
InstanceMethodsInterceptPoint
[]
getInstanceMethodsInterceptPoints
()
{
return
new
InstanceMethodsInterceptPoint
[]{
new
InstanceMethodsInterceptPoint
()
{
@Override
public
MethodMatcher
[]
getMethodsMatchers
()
{
return
new
MethodMatcher
[]{
new
SimpleMethodMatcher
(
"invokeRemoteMethod"
)
};
}
@Override
public
String
getMethodsInterceptor
()
{
return
"com.a.eye.skywalking.plugin.rmi.oracle18.RMIClientInterceptor"
;
}
}
};
}
}
skywalking-sniffer/skywalking-sdk-plugin/rmi-oracle-1.8-plugin/src/main/resources/skywalking-plugin.def
已删除
100644 → 0
浏览文件 @
2a979c02
com.a.eye.skywalking.plugin.rmi.oracle18.define.RMIClientDefine
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录