src/main/java/org/apache/hadoop/hdfs/server/namenode/cache/SuggestionsEngine.java
public void addDirectoryToAnalysis(String directory) throws IOException {
    if (directory == null || directory.isEmpty()) {
      throw new IllegalArgumentException("Directory parameter 'dir' not defined.");
    }
    if (directory.endsWith("/")) {
      directory = directory.substring(0, directory.length() - 1);
    }
    boolean existed = cachedDirectories.add(directory);
    if (existed) {
      throw new IOException(directory + " already set for analysis.");
    }
  }
/**
   * Adds a directory to get count and size analysis for specifically.
   *
   * @param directory directory to add to reporting
   * @throws IOException directory could not be added to reporting
   */
Adds a directory to get count and size analysis for specifically.
@param directory directory to add to reporting
@throws IOException directory could not be added to reporting
Adds a directory to get count and size analysis for specifically . @param directory directory to add to reporting @throws IOException directory could not be added to reporting
public void addDirectoryToAnalysis(String directory) throws IOException {
    if (directory == null || directory.isEmpty()) {
      throw new IllegalArgumentException("Directory parameter 'dir' not defined.");
    }
    if (directory.endsWith("/")) {
      directory = directory.substring(0, directory.length() - 1);
    }
    boolean existed = cachedDirectories.add(directory);
    if (existed) {
      throw new IOException(directory + " already set for analysis.");
    }
  }
public void addDirectoryToAnalysis ( String directory ) throws IOException { if ( directory == null || directory . isEmpty ( ) ) { throw new IllegalArgumentException ( "Directory parameter 'dir' not defined." ) ; } if ( directory . endsWith ( "/" ) ) { directory = directory . substring ( 0 , directory . length ( ) - 1 ) ; } boolean existed = cachedDirectories . add ( directory ) ; if ( existed ) { throw new IOException ( directory + " already set for analysis." ) ; } }
Adds a directory to get count and size analysis for specifically.
Adds a directory to get count and size analysis for specifically .