Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
59e2f69d
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 搜索 >>
提交
59e2f69d
编写于
6月 05, 2016
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.添加redis测试工程
2. 移除log4j shade
上级
4dd00b97
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
158 addition
and
22 deletion
+158
-22
skywalking-agent/pom.xml
skywalking-agent/pom.xml
+15
-22
test/skywalking-agent-test/redis-test/pom.xml
test/skywalking-agent-test/redis-test/pom.xml
+38
-0
test/skywalking-agent-test/redis-test/src/main/java/com/ai/cloud/skywalking/agent/test/RedisOperator.java
...ava/com/ai/cloud/skywalking/agent/test/RedisOperator.java
+61
-0
test/skywalking-agent-test/redis-test/src/main/java/com/ai/cloud/skywalking/agent/test/RedisPluginTest.java
...a/com/ai/cloud/skywalking/agent/test/RedisPluginTest.java
+7
-0
test/skywalking-agent-test/redis-test/src/main/resources/log4j2.xml
...lking-agent-test/redis-test/src/main/resources/log4j2.xml
+13
-0
test/skywalking-agent-test/redis-test/src/main/resources/redis.conf
...lking-agent-test/redis-test/src/main/resources/redis.conf
+2
-0
test/skywalking-agent-test/redis-test/src/main/resources/sky-walking.auth
...agent-test/redis-test/src/main/resources/sky-walking.auth
+22
-0
未找到文件。
skywalking-agent/pom.xml
浏览文件 @
59e2f69d
...
...
@@ -21,8 +21,6 @@
<shade.net.bytebuddy.target>
com.ai.cloud.skywalking.api.dependencies.net.bytebuddy
</shade.net.bytebuddy.target>
<shade.io.netty.source>
io.netty
</shade.io.netty.source>
<shade.io.netty.target>
com.ai.cloud.skywalking.api.dependencies.io.netty
</shade.io.netty.target>
<shade.org.apache.logging.log4j>
org.apache.logging.log4j
</shade.org.apache.logging.log4j>
<shade.org.apache.logging.log4j.target>
com.ai.cloud.skywalking.api.dependencies.org.apache.logging.log4j
</shade.org.apache.logging.log4j.target>
</properties>
<dependencies>
...
...
@@ -31,21 +29,21 @@
<artifactId>
skywalking-jedis-2.x-plugin
</artifactId>
<version>
1.0-Final
</version>
</dependency>
<
dependency
>
<
groupId>
com.ai.cloud
</groupId
>
<
artifactId>
skywalking-mysql-plugin
</artifactId
>
<
version>
1.0-Final
</version
>
<
/dependency
>
<
dependency
>
<
groupId>
com.ai.cloud
</groupId
>
<
artifactId>
skywalking-httpClient-4.x-plugin
</artifactId
>
<
version>
1.0-Final
</version
>
<
/dependency
>
<
dependency
>
<
groupId>
com.ai.cloud
</groupId
>
<
artifactId>
skywalking-httpClient-4.x-plugin-dubbox-rest-attachment
</artifactId
>
<
version>
1.0-Final
</version
>
<
/dependency
>
<
!--<dependency>--
>
<
!--<groupId>com.ai.cloud</groupId>--
>
<
!--<artifactId>skywalking-mysql-plugin</artifactId>--
>
<
!--<version>1.0-Final</version>--
>
<
!--</dependency>--
>
<
!--<dependency>--
>
<
!--<groupId>com.ai.cloud</groupId>--
>
<
!--<artifactId>skywalking-httpClient-4.x-plugin</artifactId>--
>
<
!--<version>1.0-Final</version>--
>
<
!--</dependency>--
>
<
!--<dependency>--
>
<
!--<groupId>com.ai.cloud</groupId>--
>
<
!--<artifactId>skywalking-httpClient-4.x-plugin-dubbox-rest-attachment</artifactId>--
>
<
!--<version>1.0-Final</version>--
>
<
!--</dependency>--
>
</dependencies>
<build>
<plugins>
...
...
@@ -84,11 +82,6 @@
<pattern>
${shade.io.netty.source}
</pattern>
<shadedPattern>
${shade.io.netty.target}
</shadedPattern>
</relocation>
<!--替换log4j -->
<relocation>
<pattern>
${shade.org.apache.logging.log4j}
</pattern>
<shadedPattern>
${shade.org.apache.logging.log4j.target}
</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
...
...
test/skywalking-agent-test/redis-test/pom.xml
0 → 100644
浏览文件 @
59e2f69d
<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-agent-test
</artifactId>
<groupId>
com.ai.skywalking
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
redis-test
</artifactId>
<packaging>
jar
</packaging>
<name>
redis-test
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
<version>
2.4.1
</version>
</dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<version>
2.8.1
</version>
</dependency>
</dependencies>
</project>
test/skywalking-agent-test/redis-test/src/main/java/com/ai/cloud/skywalking/agent/test/RedisOperator.java
0 → 100644
浏览文件 @
59e2f69d
package
com.ai.cloud.skywalking.agent.test
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
redis.clients.jedis.Jedis
;
import
redis.clients.jedis.JedisPool
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.Properties
;
/**
* Created by xin on 16-6-5.
*/
public
class
RedisOperator
{
private
static
Logger
logger
=
LogManager
.
getLogger
(
RedisOperator
.
class
);
private
static
JedisPool
jedisPool
=
null
;
static
{
InputStream
inputStream
=
RedisOperator
.
class
.
getResourceAsStream
(
"/redis.conf"
);
Properties
properties
=
new
Properties
();
try
{
properties
.
load
(
inputStream
);
}
catch
(
IOException
e
)
{
logger
.
error
(
"Failed to load redis.conf"
,
e
);
System
.
exit
(-
1
);
}
jedisPool
=
new
JedisPool
(
properties
.
getProperty
(
"redis.ip"
,
"127.0.0.1"
),
Integer
.
parseInt
(
properties
.
getProperty
(
"redis.port"
,
"2181"
)));
}
public
static
void
setData
(
String
key
,
String
value
)
{
Jedis
jedis
=
null
;
try
{
jedis
=
jedisPool
.
getResource
();
jedis
.
set
(
key
,
value
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
finally
{
if
(
jedis
!=
null
)
jedis
.
close
();
}
}
public
static
String
getData
(
String
key
)
{
Jedis
jedis
=
null
;
try
{
jedis
=
jedisPool
.
getResource
();
return
jedis
.
get
(
key
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
finally
{
if
(
jedis
!=
null
)
jedis
.
close
();
}
return
""
;
}
}
test/skywalking-agent-test/redis-test/src/main/java/com/ai/cloud/skywalking/agent/test/RedisPluginTest.java
0 → 100644
浏览文件 @
59e2f69d
package
com.ai.cloud.skywalking.agent.test
;
public
class
RedisPluginTest
{
public
static
void
main
(
String
[]
args
)
{
RedisOperator
.
setData
(
"key1"
,
"value1"
);
}
}
test/skywalking-agent-test/redis-test/src/main/resources/log4j2.xml
0 → 100644
浏览文件 @
59e2f69d
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"debug"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d - %c -%-4r [%t] %-5p %x - %m%n"
/>
</Console>
</Appenders>
<Loggers>
<Root
level=
"debug"
>
<AppenderRef
ref=
"Console"
/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
test/skywalking-agent-test/redis-test/src/main/resources/redis.conf
0 → 100644
浏览文件 @
59e2f69d
redis
.
ip
=
127
.
0
.
0
.
1
redis
.
port
=
6379
\ No newline at end of file
test/skywalking-agent-test/redis-test/src/main/resources/sky-walking.auth
0 → 100644
浏览文件 @
59e2f69d
#test
#Mon Dec 28 11:30:29 CST 2015
buriedpoint.businesskey_max_length=300
sender.retry_get_sender_wait_interval=2000
buffer.pool_size=5
senderchecker.check_polling_time=200
sender.is_off=true
sender.max_send_length=20000
consumer.max_consumer=2
consumer.max_wait_time=5
sender.max_copy_num=2
skywalking.application_code=redis-plugin-test
consumer.consumer_fail_retry_wait_interval=50
skywalking.user_id=6
buriedpoint.printf=true
buriedpoint.exclusive_exceptions=
buriedpoint.max_exception_stack_length=4000
sender.connect_percent=100
buffer.buffer_max_size=18000
sender.servers_addr=10.1.235.197:34000;10.1.235.197:35000;
skywalking.sdk_version=1.0a2
skywalking.auth_override=true
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录