wuxw7
2018-05-22 9e0fa31a2b81a9d2fd2588b78b6de637f0352639
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
package com.java110.core.context;
 
import com.alibaba.fastjson.JSONObject;
import com.java110.entity.center.Business;
import com.java110.entity.center.DataFlowLinksCost;
import com.java110.entity.center.DataFlowLog;
 
import java.util.List;
import java.util.Map;
 
/**
 * 数据流上下文
 * Created by wuxw on 2018/5/18.
 */
public interface DataFlowContext {
 
    /**
     * 请求报文
     * @return
     */
    public JSONObject getReqJson();
 
    /**
     * 返回报文
     * @return
     */
    public JSONObject getResJson();
 
 
    /**
     * 添加各个环节的耗时
     * @param dataFlowLinksCost
     */
    public void addLinksCostDates(DataFlowLinksCost dataFlowLinksCost);
 
    /**
     * 添加日志信息
     * @param dataFlowLog
     */
    public void addLogDatas(DataFlowLog dataFlowLog);
 
    public List<DataFlowLinksCost> getLinksCostDates();
 
    public List<Business> getBusinesses();
 
    public Map<String, String> getHeaders();
 
 
    public Orders getOrder();
 
 
    /**
     * 获取当前Business
     * @return
     */
    public Business getCurrentBusiness();
 
    public void setResJson(JSONObject resJson);
 
    /**
     * 获取参数
     * @return
     */
    public Map<String, Object> getParamOut();
 
    /**
     * 添加参数
     * @param key
     * @param value
     */
    public void addParamOut(String key,Object value);
 
 
    public String getbId();
 
 
}