File tree 1 file changed +6
-0
lines changed
evcache-client/src/main/java/net/spy/memcached
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ public void receivedStatus(OperationStatus val) {
310
310
rv .set (val .isSuccess (), val );
311
311
appendSuccess = true ;
312
312
} else {
313
+ EVCacheMetricsFactory .getCounter (appName + "-" + serverGroup .getName () + "-AoA-AppendCall-FAIL" ).increment ();
313
314
appendSuccess = false ;
314
315
}
315
316
}
@@ -327,6 +328,11 @@ public void receivedStatus(OperationStatus val) {
327
328
if (log .isDebugEnabled ()) log .debug ("AddOrAppend Key (Ad Operation): " + key + "; Status : " + val .getStatusCode ().name ()
328
329
+ "; Message : " + val .getMessage () + "; Elapsed Time - " + (System .currentTimeMillis () - operationDuration .getDuration ()));
329
330
rv .set (val .isSuccess (), val );
331
+ if (val .isSuccess ()) {
332
+ EVCacheMetricsFactory .getCounter (appName + "-" + serverGroup .getName () + "-AoA-AddCall-SUCCESS" ).increment ();
333
+ } else {
334
+ EVCacheMetricsFactory .getCounter (appName + "-" + serverGroup .getName () + "-AoA-AddCall-FAIL" ).increment ();
335
+ }
330
336
}
331
337
332
338
@ Override
You can’t perform that action at this time.
0 commit comments