int cnt = 0;
Iterator itr = manager.getInstances().values().iterator();
while ( itr.hasNext() )
{
cnt++;
ILateralCacheManager mgr = (ILateralCacheManager) itr.next();
try
{
// If any cache is in error, it strongly suggests all caches
// managed by the
// same LateralCacheManager instance are in error. So we fix
// them once and for all.
//for
//log.info( "\n " + cnt + "- mgr.lca.getTcpServer() = " + mgr.lca.getTcpServer() + " mgr = " + mgr );
log.info( "\n " + cnt + "- mgr.getCaches().size() = " + mgr.getCaches().size() );
if ( mgr.getCaches().size() == 0 )
{
// there is probably a problem.
// monitor may be running when we just started up and
// there
// is not a cache yet.
// if this is error driven mode, mark as bad,
// otherwise we will come back around argain.
if ( mode == ERROR )
{
bad();
}
}
Iterator itr2 = mgr.getCaches().values().iterator();
while ( itr2.hasNext() )
{
LateralCacheNoWait c = (LateralCacheNoWait) itr2.next();
if ( c.getStatus() == CacheConstants.STATUS_ERROR )