|
|
@ -33,7 +33,7 @@ public class TbCoreConsumerStats { |
|
|
private final AtomicInteger claimDeviceCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger claimDeviceCounter = new AtomicInteger(0); |
|
|
|
|
|
|
|
|
private final AtomicInteger deviceStateCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger deviceStateCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger edgeNotificationCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger edgeNotificationMsgCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger subscriptionMsgCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger subscriptionMsgCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger toCoreNotificationsCounter = new AtomicInteger(0); |
|
|
private final AtomicInteger toCoreNotificationsCounter = new AtomicInteger(0); |
|
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ public class TbCoreConsumerStats { |
|
|
|
|
|
|
|
|
public void log(TransportProtos.EdgeNotificationMsgProto msg) { |
|
|
public void log(TransportProtos.EdgeNotificationMsgProto msg) { |
|
|
totalCounter.incrementAndGet(); |
|
|
totalCounter.incrementAndGet(); |
|
|
edgeNotificationCounter.incrementAndGet(); |
|
|
edgeNotificationMsgCounter.incrementAndGet(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void log(TransportProtos.SubscriptionMgrMsgProto msg) { |
|
|
public void log(TransportProtos.SubscriptionMgrMsgProto msg) { |
|
|
@ -86,12 +86,13 @@ public class TbCoreConsumerStats { |
|
|
int total = totalCounter.getAndSet(0); |
|
|
int total = totalCounter.getAndSet(0); |
|
|
if (total > 0) { |
|
|
if (total > 0) { |
|
|
log.info("Total [{}] sessionEvents [{}] getAttr [{}] subToAttr [{}] subToRpc [{}] toDevRpc [{}] subInfo [{}] claimDevice [{}]" + |
|
|
log.info("Total [{}] sessionEvents [{}] getAttr [{}] subToAttr [{}] subToRpc [{}] toDevRpc [{}] subInfo [{}] claimDevice [{}]" + |
|
|
" deviceState [{}] subMgr [{}] coreNfs [{}]", |
|
|
" deviceState [{}] subMgr [{}] coreNfs [{}] edgeNfs [{}]", |
|
|
total, sessionEventCounter.getAndSet(0), |
|
|
total, sessionEventCounter.getAndSet(0), |
|
|
getAttributesCounter.getAndSet(0), subscribeToAttributesCounter.getAndSet(0), |
|
|
getAttributesCounter.getAndSet(0), subscribeToAttributesCounter.getAndSet(0), |
|
|
subscribeToRPCCounter.getAndSet(0), toDeviceRPCCallResponseCounter.getAndSet(0), |
|
|
subscribeToRPCCounter.getAndSet(0), toDeviceRPCCallResponseCounter.getAndSet(0), |
|
|
subscriptionInfoCounter.getAndSet(0), claimDeviceCounter.getAndSet(0) |
|
|
subscriptionInfoCounter.getAndSet(0), claimDeviceCounter.getAndSet(0) |
|
|
, deviceStateCounter.getAndSet(0), subscriptionMsgCounter.getAndSet(0), toCoreNotificationsCounter.getAndSet(0)); |
|
|
, deviceStateCounter.getAndSet(0), subscriptionMsgCounter.getAndSet(0), toCoreNotificationsCounter.getAndSet(0), |
|
|
|
|
|
edgeNotificationMsgCounter.getAndSet(0)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|