[infinispan-dev] RpcManagerImpl stats confusion
Manik Surtani
manik at jboss.org
Tue Nov 24 07:30:46 EST 2009
Seems like duplication. Drop numReplications, getAverageReplicationTime() can be calculated using replicationCount().
Well spotted!
On 24 Nov 2009, at 12:19, Galder Zamarreno wrote:
> Hi Manik et al,
>
> What's the difference between RpcManagerImpl.replicationCount and
> RpcManagerImpl.numReplications?
>
> numReplications is only updated when retrieveState() is called. Maybe
> you wanted to call it, numberStateTransfersRequested?
>
> Similar thing happens for totalReplicationTime, it's only updated in
> retrieveState(), so maybe you wanted to call it, totalStateTransferTime?
>
> Both numReplications and totalReplicationTime produce
> getAverageReplicationTime() which as it is currently, it's rather
> confusing. It should say: getAverageStateTransferTime().
>
> We probably wanna add to this a totalReplicationTime though that is
> updated in invokeRemotely(), in the same way that replicationCount is
> updated. That way we could certainly provider a reliable
> getAverageReplicationTime()
>
> Thoughts?
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
More information about the infinispan-dev
mailing list