Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
touzizhuo03
Dubbo
提交
8eb0d6f2
D
Dubbo
项目概览
touzizhuo03
/
Dubbo
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dubbo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8eb0d6f2
编写于
1月 21, 2018
作者:
K
ken.lj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove useless dependencies
上级
c7cd8899
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
0 addition
and
1126 deletion
+0
-1126
dependencies-bom/pom.xml
dependencies-bom/pom.xml
+0
-18
dubbo-cluster/pom.xml
dubbo-cluster/pom.xml
+0
-4
dubbo-common/pom.xml
dubbo-common/pom.xml
+0
-4
dubbo-registry/dubbo-registry-default/pom.xml
dubbo-registry/dubbo-registry-default/pom.xml
+0
-5
dubbo-test/dubbo-test-benchmark/src/test/backup/BenchmarkRunner.java
...dubbo-test-benchmark/src/test/backup/BenchmarkRunner.java
+0
-987
dubbo-test/dubbo-test-benchmark/src/test/backup/Dubbo.java
dubbo-test/dubbo-test-benchmark/src/test/backup/Dubbo.java
+0
-64
dubbo-test/dubbo-test-benchmark/src/test/java/com/jingdong/client/DemoBenchmarkClientRunnable.java
...java/com/jingdong/client/DemoBenchmarkClientRunnable.java
+0
-44
未找到文件。
dependencies-bom/pom.xml
浏览文件 @
8eb0d6f2
...
...
@@ -78,10 +78,7 @@
<mina_version>
1.1.7
</mina_version>
<grizzly_version>
2.1.4
</grizzly_version>
<httpclient_version>
4.5.3
</httpclient_version>
<xstream_version>
1.4.1
</xstream_version>
<fastjson_version>
1.2.31
</fastjson_version>
<bsf_version>
3.1
</bsf_version>
<sorcerer_version>
0.8
</sorcerer_version>
<zookeeper_version>
3.4.9
</zookeeper_version>
<zkclient_version>
0.2
</zkclient_version>
<curator_version>
2.12.0
</curator_version>
...
...
@@ -156,21 +153,6 @@
<artifactId>
fastjson
</artifactId>
<version>
${fastjson_version}
</version>
</dependency>
<dependency>
<groupId>
com.thoughtworks.xstream
</groupId>
<artifactId>
xstream
</artifactId>
<version>
${xstream_version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.bsf
</groupId>
<artifactId>
bsf-api
</artifactId>
<version>
${bsf_version}
</version>
</dependency>
<dependency>
<groupId>
org.jvnet.sorcerer
</groupId>
<artifactId>
sorcerer-javac
</artifactId>
<version>
${sorcerer_version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.zookeeper
</groupId>
<artifactId>
zookeeper
</artifactId>
...
...
dubbo-cluster/pom.xml
浏览文件 @
8eb0d6f2
...
...
@@ -35,9 +35,5 @@
<artifactId>
dubbo-rpc-api
</artifactId>
<version>
${project.parent.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.bsf
</groupId>
<artifactId>
bsf-api
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dubbo-common/pom.xml
浏览文件 @
8eb0d6f2
...
...
@@ -69,9 +69,5 @@ limitations under the License.
<groupId>
de.ruedigermoeller
</groupId>
<artifactId>
fst
</artifactId>
</dependency>
<dependency>
<groupId>
org.jvnet.sorcerer
</groupId>
<artifactId>
sorcerer-javac
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dubbo-registry/dubbo-registry-default/pom.xml
浏览文件 @
8eb0d6f2
...
...
@@ -54,10 +54,5 @@
<version>
${project.parent.version}
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.apache.bsf
</groupId>
<artifactId>
bsf-api
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dubbo-test/dubbo-test-benchmark/src/test/backup/BenchmarkRunner.java
已删除
100644 → 0
浏览文件 @
c7cd8899
此差异已折叠。
点击以展开。
dubbo-test/dubbo-test-benchmark/src/test/backup/Dubbo.java
已删除
100644 → 0
浏览文件 @
c7cd8899
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.dubbo.serialize.benchmark
;
import
com.alibaba.dubbo.common.io.UnsafeByteArrayOutputStream
;
import
com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput
;
import
com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectOutput
;
import
data.media.MediaContent
;
import
java.io.ByteArrayInputStream
;
import
java.io.IOException
;
/**
* Dubbo Seriazition Benchmark
*/
public
class
Dubbo
{
public
static
Serializer
<
Object
>
GenericSerializer
=
new
Serializer
<
Object
>()
{
public
Object
deserialize
(
byte
[]
array
)
throws
Exception
{
GenericObjectInput
objectInput
=
new
GenericObjectInput
(
new
ByteArrayInputStream
(
array
));
return
objectInput
.
readObject
();
}
public
byte
[]
serialize
(
Object
data
)
throws
java
.
io
.
IOException
{
UnsafeByteArrayOutputStream
os
=
new
UnsafeByteArrayOutputStream
(
10240
);
GenericObjectOutput
objectOutput
=
new
GenericObjectOutput
(
os
);
objectOutput
.
writeObject
(
data
);
objectOutput
.
flushBuffer
();
return
os
.
toByteArray
();
}
public
String
getName
()
{
return
"dubbo"
;
}
};
public
static
void
register
(
TestGroups
groups
)
{
groups
.
media
.
add
(
JavaBuiltIn
.
MediaTransformer
,
Dubbo
.<
MediaContent
>
GenericSerializer
());
}
// ------------------------------------------------------------
// Serializer (just one)
public
static
<
T
>
Serializer
<
T
>
GenericSerializer
()
{
@SuppressWarnings
(
"unchecked"
)
Serializer
<
T
>
s
=
(
Serializer
<
T
>)
GenericSerializer
;
return
s
;
}
}
dubbo-test/dubbo-test-benchmark/src/test/java/com/jingdong/client/DemoBenchmarkClientRunnable.java
已删除
100644 → 0
浏览文件 @
c7cd8899
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jingdong.client
;
import
com.alibaba.dubbo.rpc.benchmark.AbstractClientRunnable
;
import
com.alibaba.dubbo.rpc.benchmark.DemoService
;
import
com.alibaba.dubbo.rpc.benchmark.ServiceFactory
;
import
java.util.concurrent.CountDownLatch
;
import
java.util.concurrent.CyclicBarrier
;
/**
* DemoBenchmarkClient.java
*/
public
class
DemoBenchmarkClientRunnable
extends
AbstractClientRunnable
{
public
DemoBenchmarkClientRunnable
(
String
targetIP
,
int
targetPort
,
int
clientNums
,
int
rpcTimeout
,
CyclicBarrier
barrier
,
CountDownLatch
latch
,
long
startTime
,
long
endTime
)
{
super
(
targetIP
,
targetPort
,
clientNums
,
rpcTimeout
,
barrier
,
latch
,
startTime
,
endTime
);
}
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
@Override
public
Object
invoke
(
ServiceFactory
serviceFactory
)
{
DemoService
demoService
=
(
DemoService
)
serviceFactory
.
get
(
DemoService
.
class
);
return
demoService
.
sendRequest
(
"hello"
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录