src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/cachedMaps")
  @Produces(MediaType.APPLICATION_JSON)
  public Response cachedMaps() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      return Response.ok(
              Histograms.toJson(nnLoader.getSuggestionsEngine().getCachedMapKeys()),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * CACHEDMAPS endpoint is a cache-level endpoint meant to dump meta keys of cached analysis by
   * NNA.
   */
CACHEDMAPS endpoint is a cache-level endpoint meant to dump meta keys of cached analysis by
NNA.
CACHEDMAPS endpoint is a cache - level endpoint meant to dump meta keys of cached analysis by NNA .
@GET
  @Path("/cachedMaps")
  @Produces(MediaType.APPLICATION_JSON)
  public Response cachedMaps() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      return Response.ok(
              Histograms.toJson(nnLoader.getSuggestionsEngine().getCachedMapKeys()),
              MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/cachedMaps" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response cachedMaps ( ) { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; try { before ( ) ; return Response . ok ( Histograms . toJson ( nnLoader . getSuggestionsEngine ( ) . getCachedMapKeys ( ) ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
CACHEDMAPS endpoint is a cache-level endpoint meant to dump meta keys of cached analysis by
 NNA.
CACHEDMAPS endpoint is a cache - level endpoint meant to dump meta keys of cached analysis by NNA .