src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/token")
  @Produces(MediaType.APPLICATION_JSON)
  public Response token() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      return Response.ok(nnLoader.getSuggestionsEngine().getTokens(), MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * TOKEN endpoint returns a set of user names and the last known DelegationToken issuance date.
   */
TOKEN endpoint returns a set of user names and the last known DelegationToken issuance date.
TOKEN endpoint returns a set of user names and the last known DelegationToken issuance date .
@GET
  @Path("/token")
  @Produces(MediaType.APPLICATION_JSON)
  public Response token() {
    try {
      final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
      before();
      return Response.ok(nnLoader.getSuggestionsEngine().getTokens(), MediaType.APPLICATION_JSON)
          .build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/token" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response token ( ) { try { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; before ( ) ; return Response . ok ( nnLoader . getSuggestionsEngine ( ) . getTokens ( ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
TOKEN endpoint returns a set of user names and the last known DelegationToken issuance date.
TOKEN endpoint returns a set of user names and the last known DelegationToken issuance date .