Additional changes for SGF-226 supporting cluster-based configuration in GemFire 8 based on latest changes to the shared, persistent cluster configuration service in preparation for the 8.0 release. The recent changes in SDG for the shared, persistent cluster-based configuration feature are based on GemFire RC build number r48398.
This commit is contained in:
@@ -75,7 +75,7 @@ public class CacheClusterConfigurationIntegrationTest {
|
||||
|
||||
assertTrue(locatorWorkingDirectory.isDirectory() || locatorWorkingDirectory.mkdirs());
|
||||
|
||||
ZipUtils.unzip(new ClassPathResource("/shared_config.zip"), locatorWorkingDirectory);
|
||||
ZipUtils.unzip(new ClassPathResource("/cluster_config.zip"), locatorWorkingDirectory);
|
||||
|
||||
List<String> arguments = new ArrayList<String>();
|
||||
|
||||
|
||||
@@ -72,13 +72,13 @@ public class LocatorProcess {
|
||||
DEFAULT_HOSTNAME_FOR_CLIENTS))
|
||||
.setPort(Integer.getInteger("spring.gemfire.locator-port", DEFAULT_LOCATOR_PORT))
|
||||
.setRedirectOutput(false)
|
||||
.set(DistributionConfig.ENABLE_SHARED_CONFIGURATION_NAME, String.valueOf(Boolean.getBoolean(
|
||||
.set(DistributionConfig.ENABLE_CLUSTER_CONFIGURATION_NAME, String.valueOf(Boolean.getBoolean(
|
||||
"spring.gemfire.enable-cluster-configuration")))
|
||||
.set(DistributionConfig.HTTP_SERVICE_PORT_NAME, System.getProperty("spring.gemfire.http-service-port",
|
||||
DEFAULT_HTTP_SERVICE_PORT))
|
||||
.set(DistributionConfig.JMX_MANAGER_NAME, String.valueOf(Boolean.TRUE))
|
||||
.set(DistributionConfig.JMX_MANAGER_START_NAME, String.valueOf(Boolean.FALSE))
|
||||
.set(DistributionConfig.LOAD_SHARED_CONFIG_FROM_DIR_NAME, String.valueOf(Boolean.getBoolean(
|
||||
.set(DistributionConfig.LOAD_CLUSTER_CONFIG_FROM_DIR_NAME, String.valueOf(Boolean.getBoolean(
|
||||
"spring.gemfire.load-cluster-configuration")))
|
||||
.set(DistributionConfig.LOG_LEVEL_NAME, System.getProperty("spring.gemfire.log-level", DEFAULT_LOG_LEVEL))
|
||||
.build();
|
||||
@@ -86,7 +86,7 @@ public class LocatorProcess {
|
||||
|
||||
private static boolean isClusterConfigurationEnabled(final InternalLocator locator) {
|
||||
return (locator != null && Boolean.valueOf(locator.getDistributedSystem().getProperties().getProperty(
|
||||
DistributionConfig.ENABLE_SHARED_CONFIGURATION_NAME)));
|
||||
DistributionConfig.ENABLE_CLUSTER_CONFIGURATION_NAME)));
|
||||
}
|
||||
|
||||
private static void registerShutdownHook() {
|
||||
|
||||
BIN
src/test/resources/cluster_config.zip
Normal file
BIN
src/test/resources/cluster_config.zip
Normal file
Binary file not shown.
@@ -17,7 +17,7 @@
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache properties-ref="gemfirePeerCacheConfigurationSettings" use-bean-factory-locator="false"
|
||||
use-cluster-configuration="true" cache-xml-location="/sharedconfig-test-cache.xml" lazy-init="false"/>
|
||||
use-cluster-configuration="true" cache-xml-location="/clusterconfig-test-cache.xml" lazy-init="false"/>
|
||||
|
||||
<gfe:lookup-region id="ClusterConfigRegion"/>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache properties-ref="gemfirePeerCacheConfigurationSettings" use-bean-factory-locator="false"
|
||||
use-cluster-configuration="false" cache-xml-location="/sharedconfig-test-cache.xml" lazy-init="false"/>
|
||||
use-cluster-configuration="false" cache-xml-location="/clusterconfig-test-cache.xml" lazy-init="false"/>
|
||||
|
||||
<!-- Should throw an Exception! -->
|
||||
<gfe:lookup-region id="ClusterConfigRegion"/>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user