private String obtainEffectiveCacheName() { if (StringUtils.hasText(this.cacheName)) { if (this.logger.isDebugEnabled()) { this.logger.debug("Using custom cache name [" + this.cacheName + "]"); } return this.cacheName; } else { if (this.logger.isDebugEnabled()) { this.logger.debug("Using bean name [" + this.beanName + "] as cache name"); } return this.beanName; } }
protected Properties configurationProperties() throws IOException { final Properties answer; if (this.configurationProperties != null) { answer = this.configurationPropertiesOverrides.override(this.configurationProperties); this.logger.debug("Using user-defined properties [" + this.configurationProperties + "] for configuring RemoteCacheManager"); } else if (this.configurationPropertiesFileLocation != null) { answer = loadPropertiesFromFile(this.configurationPropertiesFileLocation); this.logger.debug("Loading properties from file [" + this.configurationProperties + "] for configuring RemoteCacheManager"); } else if (!this.configurationPropertiesOverrides.isEmpty()) { answer = this.configurationPropertiesOverrides.override(new Properties()); this.logger.debug("Using explicitly set configuration settings [" + answer + "] for configuring RemoteCacheManager"); } else { this.logger .debug("No configuration properties. RemoteCacheManager will use default configuration."); answer = new RemoteCacheManager().getConfiguration().properties(); } return answer; }
log.debug("Write error", e); return null;
log.debug("Write error", e); return null;
public static <S extends AbstractProtocolServer<?>> S startProtocolServer(int initialPort, Function<Integer, S> serverStarter) { S server = null; int maxTries = 10; int currentTries = 0; Throwable lastError = null; while (server == null && currentTries < maxTries) { try { server = serverStarter.apply(initialPort); } catch (Throwable t) { if (!isBindException(t)) { throw t; } else { LOG.debug("Address already in use: [" + t.getMessage() + "], retrying"); currentTries++; initialPort = findFreePort(); lastError = t; } } } if (server == null && lastError != null) throw new AssertionError(lastError); return server; }
try { if (otherResourceEntry.getKey().isSameRM(resource)) { log.debug("Ignoring resource. It is already there."); return true;