| 限定符和类型 | 方法和说明 |
|---|---|
void |
ChannelInfo.setProtocol(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
Protocol |
RpcClient.getProtocol() |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Protocol |
AbstractBrpcChannelGroup.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
Protocol |
AbstractBrpcChannelGroup.getProtocol() |
Protocol |
BrpcChannelGroup.getProtocol() |
| 构造器和说明 |
|---|
AbstractBrpcChannelGroup(String ip,
int port,
io.netty.bootstrap.Bootstrap bootstrap,
Protocol protocol) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractProtocol
An abstract protocol used to simplify tcp protocol implementations.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Protocol |
ProtocolManager.getProtocol(Integer protocolType) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<Integer,Protocol> |
ProtocolManager.getProtocolMap() |
List<Protocol> |
ProtocolManager.getProtocols() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ProtocolManager.registerProtocol(Integer protocolType,
Protocol protocol) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpRpcProtocol
处理http rpc协议,包括四种序列化格式:
1、http + mcpack
2、http + baidu_json
3、http + protoc
4、http + json
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
HuluRpcProtocol
Notes on HULU PBRPC Protocol:
Header format is ["HULU"][
body_size][meta_size
], 12 bytes in total
body_size and meta_size are NOT in
network byte order (little endian)
Use service->name() and method_index to identify the service and
method to call
user_message_size is set iff request/response has attachment
The following fields of rpc are not supported yet:
chunk_info
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
NSHeadRpcProtocol
处理nshead协议,序列化使用protobuf
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SofaRpcProtocol
Notes on SOFA PBRPC Protocol:
Header format is ["SOFA"][
meta_size]
[body_size(64)][message_size(64)],
24 bytes in total
body_size and meta_size are NOT in
network byte order (little endian)
meta of request and response are same, distinguished by SofaRpcMeta#type
sofa-pbrpc does not conduct log_id. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BaiduRpcProtocol
Notes on Baidu RPC Protocol:
Header format is ["PRPC"][
body_size][meta_size
], 12 bytes in total
body_size and meta_size are in network byte
order (big endian)
Use service->full_name() and method_name to identify the service and
method to call
attachment_size is set iff request/response has attachment
The following fields of rpc are not supported yet:
chunk_info
Created by huwenwei on 2017/9/22. |
Copyright © 2019 Baidu, Inc.. All rights reserved.