Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Apache RocketMQ
Rocketmq
提交
73e0071a
R
Rocketmq
项目概览
Apache RocketMQ
/
Rocketmq
上一次同步 大约 3 年
通知
267
Star
16139
Fork
68
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rocketmq
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
73e0071a
编写于
9月 22, 2017
作者:
Y
yukon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Interface polish, remove unused exeption code
上级
6593294f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
45 deletion
+10
-45
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/AdvancedClient.java
...main/java/org/apache/rocketmq/rpc/api/AdvancedClient.java
+3
-3
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/SimpleClient.java
...c/main/java/org/apache/rocketmq/rpc/api/SimpleClient.java
+3
-3
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/SimpleServer.java
...c/main/java/org/apache/rocketmq/rpc/api/SimpleServer.java
+3
-3
remoting-core/rpc-impl/src/main/java/org/apache/rocketmq/rpc/impl/command/ResponseCode.java
...va/org/apache/rocketmq/rpc/impl/command/ResponseCode.java
+1
-36
未找到文件。
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/AdvancedClient.java
浏览文件 @
73e0071a
...
...
@@ -17,19 +17,19 @@
package
org.apache.rocketmq.rpc.api
;
public
interface
AdvancedClient
{
<
T
>
T
callSync
(
String
address
,
<
T
>
T
callSync
(
final
String
address
,
final
String
serviceCode
,
final
String
version
,
final
Object
[]
parameter
,
final
Class
<
T
>
responseType
)
throws
Exception
;
<
T
>
Promise
<
T
>
callAsync
(
String
address
,
<
T
>
Promise
<
T
>
callAsync
(
final
String
address
,
final
String
serviceCode
,
final
String
version
,
final
Object
[]
parameter
,
final
Class
<
T
>
responseType
)
throws
Exception
;
void
callOneway
(
String
address
,
void
callOneway
(
final
String
address
,
final
String
serviceCode
,
final
String
version
,
final
Object
[]
parameter
)
throws
Exception
;
...
...
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/SimpleClient.java
浏览文件 @
73e0071a
...
...
@@ -22,11 +22,11 @@ import java.util.concurrent.ExecutorService;
import
org.apache.rocketmq.remoting.api.ObjectLifecycle
;
public
interface
SimpleClient
extends
ObjectLifecycle
{
<
T
>
T
bind
(
Class
<
T
>
service
,
String
address
,
Properties
properties
);
//keyValue
<
T
>
T
bind
(
final
Class
<
T
>
service
,
final
String
address
,
final
Properties
properties
);
void
publish
(
Object
service
);
void
publish
(
final
Object
service
);
void
publish
(
Object
service
,
ExecutorService
executorService
);
void
publish
(
final
Object
service
,
final
ExecutorService
executorService
);
AdvancedClient
advancedClient
();
}
remoting-core/rpc-api/src/main/java/org/apache/rocketmq/rpc/api/SimpleServer.java
浏览文件 @
73e0071a
...
...
@@ -25,9 +25,9 @@ import org.apache.rocketmq.remoting.api.channel.RemotingChannel;
public
interface
SimpleServer
extends
ObjectLifecycle
{
<
T
>
T
bind
(
final
Class
<
T
>
service
,
final
RemotingChannel
channel
,
final
Properties
properties
);
AdvancedServer
advancedServer
();
void
publish
(
final
Object
service
);
void
publish
(
Object
service
,
ExecutorService
executorService
);
void
publish
(
final
Object
service
,
final
ExecutorService
executorService
);
AdvancedServer
advancedServer
();
}
remoting-core/rpc-impl/src/main/java/org/apache/rocketmq/rpc/impl/command/ResponseCode.java
浏览文件 @
73e0071a
...
...
@@ -41,26 +41,8 @@ public class ResponseCode {
public
static
final
String
USER_EXCEPTION_CLASS_NOT_FOUND
=
"401"
;
public
static
final
String
USER_EXCEPTION_METHOD_NOT_FOUND
=
"402"
;
public
static
final
String
PROVIDER_OFF_LINE
=
"501"
;
public
static
final
String
CONSUMER_OFF_LINE
=
"502"
;
public
static
final
String
PROVIDER_NOT_EXIST
=
"503"
;
public
static
final
String
CONSUMER_NOT_EXIST
=
"504"
;
public
static
final
String
NAMESPACE_NOT_EXIST
=
"505"
;
public
static
final
String
CLIENT_NOT_REGISTERED
=
"506"
;
public
static
final
String
NO_SERVICE_ON_LINE
=
"507"
;
public
static
final
String
NO_SERVICE_ON_THIS_SERVER
=
"508"
;
public
static
final
String
SERVICE_ALREADY_ONLINE
=
"509"
;
public
static
final
String
SERVER_NOT_EXIST
=
"510"
;
public
static
final
String
SERVER_ALREADY_ONLINE
=
"511"
;
public
static
final
String
NO_SERVER_ON_LINE
=
"512"
;
public
static
final
String
ACCESS_DENIED
=
"513"
;
public
static
final
String
SYSTEM_ERROR
=
"600"
;
public
static
final
String
SYSTEM_BUSY
=
"601"
;
public
static
final
String
BAD_REQUEST
=
"602"
;
public
static
final
String
PARAMETER_ERROR
=
"603"
;
public
static
final
String
SEND_REQUEST_FAILED
=
"604"
;
public
static
final
String
REQUEST_TIMEOUT
=
"605"
;
public
static
final
String
UNKNOWN_EXCEPTION
=
"606"
;
@Override
...
...
@@ -78,25 +60,8 @@ public class ResponseCode {
R_400
(
400
,
"User service happened"
),
R_401
(
401
,
"Class not found"
),
R_402
(
402
,
"Method not found"
),
R_501
(
501
,
"Service provider offline "
),
R_502
(
502
,
"Service consumer offline"
),
R_503
(
503
,
"Service provider not exist"
),
R_504
(
504
,
"Service consumer not exist"
),
R_505
(
505
,
"Namespace not exist"
),
R_506
(
506
,
"Client not registered"
),
R_507
(
507
,
"No service online"
),
R_508
(
508
,
"No service on this server"
),
R_509
(
509
,
"Server already online"
),
R_510
(
510
,
"Server not exist"
),
R_511
(
511
,
"Server already online"
),
R_512
(
512
,
"No server online"
),
R_513
(
513
,
"Access denied"
),
R_600
(
600
,
"System error"
),
R_601
(
601
,
"System busy"
),
R_602
(
602
,
"Bad request"
),
R_603
(
603
,
"Parameter error"
),
R_604
(
604
,
"Send request failed"
),
R_605
(
605
,
"Request timeout"
),
R_606
(
606
,
"unknown exception"
);
private
int
responseCode
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录