private void updateScores() // this is expensive
{
if (!registered)
{
ILatencyPublisher handler = (ILatencyPublisher)MessagingService.instance.getVerbHandler(StorageService.Verb.READ_RESPONSE);
if (handler != null)
{
handler.register(this);
registered = true;
}
}
for (Map.Entry<InetAddress, AdaptiveLatencyTracker> entry: windows.entrySet())