@Override
  public boolean sameAs(CacheServer other) {
    ClientSubscriptionConfig cscThis = getClientSubscriptionConfig();
    ClientSubscriptionConfig cscOther = other.getClientSubscriptionConfig();
    boolean result =
        isCacheServerPortEquals(other) && getSocketBufferSize() == other.getSocketBufferSize()
            && getMaximumTimeBetweenPings() == other.getMaximumTimeBetweenPings()
            && getNotifyBySubscription() == other.getNotifyBySubscription()
            && getMaxConnections() == other.getMaxConnections()
            && getMaxThreads() == other.getMaxThreads()
            && getMaximumMessageCount() == other.getMaximumMessageCount()
            && getMessageTimeToLive() == other.getMessageTimeToLive()
            && getTcpNoDelay() == other.getTcpNoDelay()
            && cscThis.getCapacity() == cscOther.getCapacity()
            && cscThis.getEvictionPolicy().equals(cscOther.getEvictionPolicy());
    String diskStoreName = cscThis.getDiskStoreName();
    if (diskStoreName != null) {
      result = result && diskStoreName.equals(cscOther.getDiskStoreName());
    } else {
      result = result && cscThis.getOverflowDirectory().equals(cscOther.getOverflowDirectory());
    }
    return result;
  }
Returns whether or not this cache server has the same configuration as another cache server.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheServerCreation.java