648540858
2024-04-16 9c6765d44ef2ccb06fdaf525a06e564a331ab892
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.genersoft.iot.vmp.conf.redis.bean;
 
/**
 * 通过redis发送请求
 */
public class RedisRpcRequest {
 
    /**
     * 来自的WVP ID
     */
    private String fromId;
 
 
    /**
     * 目标的WVP ID
     */
    private String toId;
 
    /**
     * 序列号
     */
    private long sn;
 
    /**
     * 访问的路径
     */
    private String uri;
 
    /**
     * 参数
     */
    private Object param;
 
    public String getFromId() {
        return fromId;
    }
 
    public void setFromId(String fromId) {
        this.fromId = fromId;
    }
 
    public String getToId() {
        return toId;
    }
 
    public void setToId(String toId) {
        this.toId = toId;
    }
 
    public String getUri() {
        return uri;
    }
 
    public void setUri(String uri) {
        this.uri = uri;
    }
 
    public Object getParam() {
        return param;
    }
 
    public void setParam(Object param) {
        this.param = param;
    }
 
    public long getSn() {
        return sn;
    }
 
    public void setSn(long sn) {
        this.sn = sn;
    }
 
    @Override
    public String toString() {
        return "RedisRpcRequest{" +
                "fromId='" + fromId + '\'' +
                ", toId='" + toId + '\'' +
                ", sn='" + sn + '\'' +
                ", uri='" + uri + '\'' +
                ", param=" + param +
                '}';
    }
 
    public RedisRpcResponse getResponse() {
        RedisRpcResponse response = new RedisRpcResponse();
        response.setFromId(fromId);
        response.setToId(toId);
        response.setSn(sn);
        response.setUri(uri);
        return response;
    }
}