Example #1
0
  public void addOwnBytes(long userId, long newBytes) {
    UserInfo tUser = null;
    synchronized (USERS) {
      userHeartbeat(userId);
      tUser = USERS.get(userId);
    }

    tUser.addOwnBytes(newBytes);
  }
Example #2
0
 /**
  * Handle the user's heartbeat.
  *
  * @param userId The id of the user
  * @throws TException
  */
 public void userHeartbeat(long userId) throws TException {
   mUsers.userHeartbeat(userId);
 }