code: public void stopServer()
    {
      // _heartbeatState.notifyHeartbeatStop();
  
      SocketPool pool = _clusterSocketPool.get();
      
      if (pool != null) {
        pool.getFactory().notifyHeartbeatStop();
      }
    }
docs: Starts the server.