src/main/java/org/apache/hadoop/hdfs/server/namenode/cache/SuggestionsEngine.java
public void start(ApplicationConfiguration conf) throws IOException {
    cacheManager.start(conf);
    this.cachedDirectories.start(cacheManager);
    this.cachedQuotas.start(cacheManager);
    this.cachedFileTypes.start(cacheManager);
    this.cachedUsers = Collections.synchronizedSet(cacheManager.getCachedSet("cachedUsers"));
    this.cachedValues = Collections.synchronizedMap(cacheManager.getCachedMap("cachedValues"));
    this.cachedLogins = Collections.synchronizedMap(cacheManager.getCachedMap("cachedLogins"));
    this.cachedMaps = Collections.synchronizedMap(cacheManager.getCachedMapToMap("cachedMaps"));
    this.cachedQueries =
        Collections.synchronizedMap(cacheManager.getCachedStringMap("cachedQueries"));
    this.cachedValueQueries =
        Collections.synchronizedMap(cacheManager.getCachedMap("cachedValueQueries"));
    this.cachedMapQueries =
        Collections.synchronizedMap(cacheManager.getCachedMapToMap("cachedMapQueries"));
    this.suggestionsReloadSleepMs = conf.getSuggestionsReloadSleepMs();
    this.currentAnalysisTxid = 0L;
    this.analysisTxidDelta = 0L;
  }
/**
   * Starts the SuggestionsEngine and cache'ing layer.
   *
   * @param conf the application configuration
   * @throws IOException an error occurred starting the cache engine
   */
Starts the SuggestionsEngine and cache'ing layer.
@param conf the application configuration
@throws IOException an error occurred starting the cache engine
Starts the SuggestionsEngine and cache ' ing layer . @param conf the application configuration @throws IOException an error occurred starting the cache engine
public void start(ApplicationConfiguration conf) throws IOException {
    cacheManager.start(conf);
    this.cachedDirectories.start(cacheManager);
    this.cachedQuotas.start(cacheManager);
    this.cachedFileTypes.start(cacheManager);
    this.cachedUsers = Collections.synchronizedSet(cacheManager.getCachedSet("cachedUsers"));
    this.cachedValues = Collections.synchronizedMap(cacheManager.getCachedMap("cachedValues"));
    this.cachedLogins = Collections.synchronizedMap(cacheManager.getCachedMap("cachedLogins"));
    this.cachedMaps = Collections.synchronizedMap(cacheManager.getCachedMapToMap("cachedMaps"));
    this.cachedQueries =
        Collections.synchronizedMap(cacheManager.getCachedStringMap("cachedQueries"));
    this.cachedValueQueries =
        Collections.synchronizedMap(cacheManager.getCachedMap("cachedValueQueries"));
    this.cachedMapQueries =
        Collections.synchronizedMap(cacheManager.getCachedMapToMap("cachedMapQueries"));
    this.suggestionsReloadSleepMs = conf.getSuggestionsReloadSleepMs();
    this.currentAnalysisTxid = 0L;
    this.analysisTxidDelta = 0L;
  }
public void start ( ApplicationConfiguration conf ) throws IOException { cacheManager . start ( conf ) ; this . cachedDirectories . start ( cacheManager ) ; this . cachedQuotas . start ( cacheManager ) ; this . cachedFileTypes . start ( cacheManager ) ; this . cachedUsers = Collections . synchronizedSet ( cacheManager . getCachedSet ( "cachedUsers" ) ) ; this . cachedValues = Collections . synchronizedMap ( cacheManager . getCachedMap ( "cachedValues" ) ) ; this . cachedLogins = Collections . synchronizedMap ( cacheManager . getCachedMap ( "cachedLogins" ) ) ; this . cachedMaps = Collections . synchronizedMap ( cacheManager . getCachedMapToMap ( "cachedMaps" ) ) ; this . cachedQueries = Collections . synchronizedMap ( cacheManager . getCachedStringMap ( "cachedQueries" ) ) ; this . cachedValueQueries = Collections . synchronizedMap ( cacheManager . getCachedMap ( "cachedValueQueries" ) ) ; this . cachedMapQueries = Collections . synchronizedMap ( cacheManager . getCachedMapToMap ( "cachedMapQueries" ) ) ; this . suggestionsReloadSleepMs = conf . getSuggestionsReloadSleepMs ( ) ; this . currentAnalysisTxid = 0L ; this . analysisTxidDelta = 0L ; }
Starts the SuggestionsEngine and cache'ing layer.
Starts the SuggestionsEngine and cache ' ing layer .