| 程序包 | 说明 |
|---|---|
| net.hasor.rsf.protocol.http_hprose |
Hprose Http RPC协议 数据包编码器和解码器。
|
| net.hasor.rsf.protocol.rsf |
RSF 1.0协议 数据包编码器和解码器。
|
| net.hasor.rsf.protocol.rsf.v1 |
RSF 协议第一版,底层传输数据结构。
|
| net.hasor.rsf.rpc.caller |
本地发出的远程调用所使用的“请求响应管理器”。
|
| net.hasor.rsf.rpc.caller.remote |
RSF框架接收远程请求所使用的“请求调用管理器”。
|
| net.hasor.rsf.rpc.net |
负责处理RSF节点间的连接并保障网络通信。
|
| net.hasor.rsf.rpc.net.http |
Http 网络连接器。
|
| net.hasor.rsf.utils |
各种工具
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestInfo[] |
HproseUtils.doCall(RsfContext rsfContext,
InputStream content,
String requestURI,
String origin) |
| 限定符和类型 | 方法和说明 |
|---|---|
static io.netty.buffer.ByteBuf |
HproseUtils.encodeRequest(RsfContext rsfContext,
RequestInfo request) |
void |
HproseHttpHandler.sendRequest(InterAddress server,
RequestInfo info,
HttpHandler.SenderBuilder builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestInfo |
CodecAdapter.readRequestInfo(io.netty.buffer.ByteBuf frame)
将
ByteBuf 中读取RequestInfo信息。 |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBlock |
CodecAdapter.buildRequestBlock(RequestInfo info)
将
RequestInfo,转换为RequestBlock。 |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestInfo |
CodecAdapterForV1.readRequestInfo(io.netty.buffer.ByteBuf frame) |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBlock |
CodecAdapterForV1.buildRequestBlock(RequestInfo info) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SenderListener.sendRequest(InterAddress toAddress,
RequestInfo info,
SendCallBack callBack)
向远端发送请求。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RemoteRsfCaller.onRequest(InterAddress target,
RequestInfo info)
收到Request请求,并将该请求安排进队列,由队列安排方法调用。
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
ReceivedAdapter.receivedMessage(InterAddress form,
RequestInfo request)
从远端收到RequestInfo消息。
|
void |
RsfChannel.sendData(RequestInfo info,
SendCallBack callBack)
将数据写入 Netty。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHandler.HttpResult.callRPC(RequestInfo requestInfo,
HttpHandler.ResponseEncoder encoder)
方式一:解析 httpRequest,并生成 RequestInfo 对象,然后让 rsf 调度这个请求。
|
void |
HttpHandler.sendRequest(InterAddress requestHost,
RequestInfo info,
HttpHandler.SenderBuilder builder)
准备向外发送 http request 请求。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestInfo |
ProtocolUtils.buildRequestInfo(RsfEnvironment env,
RsfRequest rsfRequest)
将
RsfRequest,转换为RequestInfo。 |
Copyright © 2020–2021. All rights reserved.