src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/UsageMetrics.java
public synchronized void userLoggedOut(SecurityContext secContext, HttpServletRequest request) {
    String userName = secContext.getUserName();

    users.putIfAbsent(userName, new UserMetrics(userName));
    users.get(userName).loggedOut(getIpFromRequest(request));
  }
/**
   * Called when a user logs out of NNAnalytics.
   *
   * @param secContext SecurityContext
   * @param request http Request object
   */
Called when a user logs out of NNAnalytics.
@param secContext SecurityContext
@param request http Request object
Called when a user logs out of NNAnalytics . @param secContext SecurityContext @param request http Request object
public synchronized void userLoggedOut(SecurityContext secContext, HttpServletRequest request) {
    String userName = secContext.getUserName();
    users.putIfAbsent(userName, new UserMetrics(userName));
    users.get(userName).loggedOut(getIpFromRequest(request));
  }
public synchronized void userLoggedOut ( SecurityContext secContext , HttpServletRequest request ) { String userName = secContext . getUserName ( ) ; users . putIfAbsent ( userName , new UserMetrics ( userName ) ) ; users . get ( userName ) . loggedOut ( getIpFromRequest ( request ) ) ; }
Called when a user logs out of NNAnalytics.
Called when a user logs out of NNAnalytics .