src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/removeDirectory")
  @Produces({MediaType.TEXT_PLAIN})
  public Response removeDirectory() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);

      before();
      String directory = request.getParameter("dir");
      nnLoader.getSuggestionsEngine().removeDirectoryFromAnalysis(directory);
      return Response.ok(directory + " removed from analysis.", MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * REMOVEDIRECTORY endpoint is an admin-level endpoint meant to remove a directory from analysis
   * by NNA.
   */
REMOVEDIRECTORY endpoint is an admin-level endpoint meant to remove a directory from analysis
by NNA.
REMOVEDIRECTORY endpoint is an admin - level endpoint meant to remove a directory from analysis by NNA .
@GET
  @Path("/removeDirectory")
  @Produces({MediaType.TEXT_PLAIN})
  public Response removeDirectory() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String directory = request.getParameter("dir");
      nnLoader.getSuggestionsEngine().removeDirectoryFromAnalysis(directory);
      return Response.ok(directory + " removed from analysis.", MediaType.TEXT_PLAIN).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/removeDirectory" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response removeDirectory ( ) { try { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; before ( ) ; String directory = request . getParameter ( "dir" ) ; nnLoader . getSuggestionsEngine ( ) . removeDirectoryFromAnalysis ( directory ) ; return Response . ok ( directory + " removed from analysis." , MediaType . TEXT_PLAIN ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
REMOVEDIRECTORY endpoint is an admin-level endpoint meant to remove a directory from analysis
 by NNA.
REMOVEDIRECTORY endpoint is an admin - level endpoint meant to remove a directory from analysis by NNA .