@@ -56,18 +56,18 @@ public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode
56
56
57
57
// Request passed, add thread count and pass count.
58
58
node .increaseThreadNum ();
59
- node .addPassRequest ();
59
+ node .addPassRequest (count );
60
60
61
61
if (context .getCurEntry ().getOriginNode () != null ) {
62
62
// Add count for origin node.
63
63
context .getCurEntry ().getOriginNode ().increaseThreadNum ();
64
- context .getCurEntry ().getOriginNode ().addPassRequest ();
64
+ context .getCurEntry ().getOriginNode ().addPassRequest (count );
65
65
}
66
66
67
67
if (resourceWrapper .getType () == EntryType .IN ) {
68
68
// Add count for global inbound entry node for global statistics.
69
69
Constants .ENTRY_NODE .increaseThreadNum ();
70
- Constants .ENTRY_NODE .addPassRequest ();
70
+ Constants .ENTRY_NODE .addPassRequest (count );
71
71
}
72
72
73
73
// Handle pass event with registered entry callback handlers.
@@ -79,14 +79,14 @@ public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode
79
79
context .getCurEntry ().setError (e );
80
80
81
81
// Add block count.
82
- node .increaseBlockQps ();
82
+ node .increaseBlockQps (count );
83
83
if (context .getCurEntry ().getOriginNode () != null ) {
84
- context .getCurEntry ().getOriginNode ().increaseBlockQps ();
84
+ context .getCurEntry ().getOriginNode ().increaseBlockQps (count );
85
85
}
86
86
87
87
if (resourceWrapper .getType () == EntryType .IN ) {
88
88
// Add count for global inbound entry node for global statistics.
89
- Constants .ENTRY_NODE .increaseBlockQps ();
89
+ Constants .ENTRY_NODE .increaseBlockQps (count );
90
90
}
91
91
92
92
// Handle block event with registered entry callback handlers.
@@ -100,13 +100,13 @@ public void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode
100
100
context .getCurEntry ().setError (e );
101
101
102
102
// This should not happen.
103
- node .increaseExceptionQps ();
103
+ node .increaseExceptionQps (count );
104
104
if (context .getCurEntry ().getOriginNode () != null ) {
105
- context .getCurEntry ().getOriginNode ().increaseExceptionQps ();
105
+ context .getCurEntry ().getOriginNode ().increaseExceptionQps (count );
106
106
}
107
107
108
108
if (resourceWrapper .getType () == EntryType .IN ) {
109
- Constants .ENTRY_NODE .increaseExceptionQps ();
109
+ Constants .ENTRY_NODE .increaseExceptionQps (count );
110
110
}
111
111
throw e ;
112
112
}
@@ -124,9 +124,9 @@ public void exit(Context context, ResourceWrapper resourceWrapper, int count, Ob
124
124
}
125
125
126
126
// Record response time and success count.
127
- node .rt (rt );
127
+ node .addRtAndSuccess (rt , count );
128
128
if (context .getCurEntry ().getOriginNode () != null ) {
129
- context .getCurEntry ().getOriginNode ().rt (rt );
129
+ context .getCurEntry ().getOriginNode ().addRtAndSuccess (rt , count );
130
130
}
131
131
132
132
node .decreaseThreadNum ();
@@ -136,7 +136,7 @@ public void exit(Context context, ResourceWrapper resourceWrapper, int count, Ob
136
136
}
137
137
138
138
if (resourceWrapper .getType () == EntryType .IN ) {
139
- Constants .ENTRY_NODE .rt (rt );
139
+ Constants .ENTRY_NODE .addRtAndSuccess (rt , count );
140
140
Constants .ENTRY_NODE .decreaseThreadNum ();
141
141
}
142
142
} else {
0 commit comments