@Override public String toString() { return "BridgeServerCreation on port " + this.getPort() + " notify by subscription " + this.getNotifyBySubscription() + " maximum time between pings " + this.getMaximumTimeBetweenPings() + " socket buffer size " + this.getSocketBufferSize() + " maximum connections " + this.getMaxConnections() + " maximum threads " + this.getMaxThreads() + " maximum message count " + this.getMaximumMessageCount() + " message time to live " + this.getMessageTimeToLive() + " groups " + Arrays.asList(getGroups()) + " loadProbe " + loadProbe + " loadPollInterval " + loadPollInterval + this.getClientSubscriptionConfig().toString(); }
/** * Returns whether or not this cache server has the same configuration as another cache server. */ @Override public boolean sameAs(CacheServer other) { ClientSubscriptionConfig cscThis = this.getClientSubscriptionConfig(); ClientSubscriptionConfig cscOther = other.getClientSubscriptionConfig(); boolean result = isCacheServerPortEquals(other) && this.getSocketBufferSize() == other.getSocketBufferSize() && this.getMaximumTimeBetweenPings() == other.getMaximumTimeBetweenPings() && this.getNotifyBySubscription() == other.getNotifyBySubscription() && this.getMaxConnections() == other.getMaxConnections() && this.getMaxThreads() == other.getMaxThreads() && this.getMaximumMessageCount() == other.getMaximumMessageCount() && this.getMessageTimeToLive() == other.getMessageTimeToLive() && this.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; }