//p("cache monitor running.");
// Monitor each RemoteCacheManager instance one after the other.
// Each RemoteCacheManager corresponds to one remote connection.
for ( Iterator itr = RemoteCacheManager.instances.values().iterator(); itr.hasNext(); )
{
RemoteCacheManager mgr = ( RemoteCacheManager ) itr.next();
try
{
// If any cache is in error, it strongly suggests all caches managed by the
// same RmicCacheManager instance are in error. So we fix them once and for all.
for ( Iterator itr2 = mgr.caches.values().iterator(); itr2.hasNext(); )