@ Nullable private List < LookupBean > getLookupsList ( ) { List < LookupBean > lookupBeanList ; if ( lookupConfig . getEnableLookupSyncOnStartup ( ) ) { lookupBeanList = getLookupListFromCoordinator ( lookupListeningAnnouncerConfig . getLookupTier ( ) ) ; if ( lookupBeanList == null ) { LOG . info ( "Coordinator is unavailable. Loading saved snapshot instead" ) ; lookupBeanList = getLookupListFromSnapshot ( ) ; } } else { lookupBeanList = getLookupListFromSnapshot ( ) ; } return lookupBeanList ; }
Gets the lookup list from coordinator or from snapshot .