/** * Gets an <code>URL</code> for the property file, if one can be found, that the connect method * will use as its property file. * <p> * See {@link #PROPERTIES_FILE_PROPERTY} for information on the name of the property file and what * locations it will be looked for in. * * @return a <code>URL</code> that names the GemFire property file. Null is returned if no * property file was found. * @see #getPropertiesFileURL() * @since GemFire 5.0 * @deprecated As of 9.0, please use {@link #getPropertiesFileURL()} */ public static URL getPropertyFileURL() { return getPropertiesFileURL(); }
void copyConfigFiles() throws IOException { ensureExistence(configDirectory); addConfigFileToBackup(cache.getCacheXmlURL()); addConfigFileToBackup(DistributedSystem.getPropertiesFileURL()); // TODO: should the gfsecurity.properties file be backed up? }
private Function<Health.Builder, Health.Builder> withDistributedSystemDetails() { return healthBuilder -> getGemFireCache() .map(GemFireCache::getDistributedSystem) .map(distributedSystem -> healthBuilder .withDetail("geode.distributed-system.member-count", Optional.of(distributedSystem) .map(DistributedSystem::getAllOtherMembers) .map(Collection::size) .map(size -> size + 1) .orElse(1)) .withDetail("geode.distributed-system.connection", toConnectedNoConnectedString(distributedSystem.isConnected())) .withDetail("geode.distributed-system.reconnecting", toYesNoString(distributedSystem.isReconnecting())) .withDetail("geode.distributed-system.properties-location", Optional.ofNullable(DistributedSystem.getPropertiesFileURL()) .map(URL::toExternalForm) .filter(StringUtils::hasText) .orElse("")) .withDetail("geode.distributed-system.security-properties-location", Optional.ofNullable(DistributedSystem.getSecurityPropertiesFileURL()) .map(URL::toExternalForm) .filter(StringUtils::hasText) .orElse("")) ) .orElse(healthBuilder); }