src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/bottom")
  @Produces(MediaType.APPLICATION_JSON)
  public Response bottom() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String strLimit = request.getParameter("limit");
      Integer limit;
      if (strLimit == null) {
        limit = 10;
      } else {
        limit = Integer.parseInt(strLimit);
      }
      return Response.ok(
              nnLoader.getSuggestionsEngine().getIssuesAsJson(limit, true),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * BOTTOM endpoint is an admin-level endpoint meant to dump the cached set of bottom issues by
   * NNA. The use-case here is for finding users to 'clear out'.
   */
BOTTOM endpoint is an admin-level endpoint meant to dump the cached set of bottom issues by
NNA. The use-case here is for finding users to 'clear out'.
BOTTOM endpoint is an admin - level endpoint meant to dump the cached set of bottom issues by NNA . The use - case here is for finding users to ' clear out ' .
@GET
  @Path("/bottom")
  @Produces(MediaType.APPLICATION_JSON)
  public Response bottom() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      String strLimit = request.getParameter("limit");
      Integer limit;
      if (strLimit == null) {
        limit = 10;
      } else {
        limit = Integer.parseInt(strLimit);
      }
      return Response.ok(
              nnLoader.getSuggestionsEngine().getIssuesAsJson(limit, true),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/bottom" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response bottom ( ) { try { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; before ( ) ; String strLimit = request . getParameter ( "limit" ) ; Integer limit ; if ( strLimit == null ) { limit = 10 ; } else { limit = Integer . parseInt ( strLimit ) ; } return Response . ok ( nnLoader . getSuggestionsEngine ( ) . getIssuesAsJson ( limit , true ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
BOTTOM endpoint is an admin-level endpoint meant to dump the cached set of bottom issues by
 NNA.
BOTTOM endpoint is an admin - level endpoint meant to dump the cached set of bottom issues by NNA .