geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ClientHealthMonitor.java
public void registerClient(ClientProxyMembershipID proxyID) {
    boolean registerClient = false;
    synchronized (_clientHeartbeatsLock) {
      Map oldClientHeartbeats = this._clientHeartbeats;
      if (!oldClientHeartbeats.containsKey(proxyID)) {
        Map newClientHeartbeats = new HashMap(oldClientHeartbeats);
        newClientHeartbeats.put(proxyID, Long.valueOf(System.currentTimeMillis()));
        this._clientHeartbeats = newClientHeartbeats;
        registerClient = true;
      }
    }

    if (registerClient) {
      if (this.stats != null) {
        this.stats.incClientRegisterRequests();
      }
      if (logger.isDebugEnabled()) {
        logger.debug(LocalizedMessage.create(
            LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_REGISTERING_CLIENT_WITH_MEMBER_ID_0,
            new Object[] {proxyID}));
      }
    }
  }
/**
   * Registers a new client to be monitored.
   * 
   * @param proxyID The id of the client to be registered
   */
Registers a new client to be monitored.

@param proxyID The id of the client to be registered
Registers a new client to be monitored . @param proxyID The id of the client to be registered
public void registerClient(ClientProxyMembershipID proxyID) {
    boolean registerClient = false;
    synchronized (_clientHeartbeatsLock) {
      Map oldClientHeartbeats = this._clientHeartbeats;
      if (!oldClientHeartbeats.containsKey(proxyID)) {
        Map newClientHeartbeats = new HashMap(oldClientHeartbeats);
        newClientHeartbeats.put(proxyID, Long.valueOf(System.currentTimeMillis()));
        this._clientHeartbeats = newClientHeartbeats;
        registerClient = true;
      }
    }
    if (registerClient) {
      if (this.stats != null) {
        this.stats.incClientRegisterRequests();
      }
      if (logger.isDebugEnabled()) {
        logger.debug(LocalizedMessage.create(
            LocalizedStrings.ClientHealthMonitor_CLIENTHEALTHMONITOR_REGISTERING_CLIENT_WITH_MEMBER_ID_0,
            new Object[] {proxyID}));
      }
    }
  }
public void registerClient ( ClientProxyMembershipID proxyID ) { boolean registerClient = false ; synchronized ( _clientHeartbeatsLock ) { Map oldClientHeartbeats = this . _clientHeartbeats ; if ( ! oldClientHeartbeats . containsKey ( proxyID ) ) { Map newClientHeartbeats = new HashMap ( oldClientHeartbeats ) ; newClientHeartbeats . put ( proxyID , Long . valueOf ( System . currentTimeMillis ( ) ) ) ; this . _clientHeartbeats = newClientHeartbeats ; registerClient = true ; } } if ( registerClient ) { if ( this . stats != null ) { this . stats . incClientRegisterRequests ( ) ; } if ( logger . isDebugEnabled ( ) ) { logger . debug ( LocalizedMessage . create ( LocalizedStrings . ClientHealthMonitor_CLIENTHEALTHMONITOR_REGISTERING_CLIENT_WITH_MEMBER_ID_0 , new Object [ ] { proxyID } ) ) ; } } }
Registers a new client to be monitored.
Registers a new client to be monitored .