From 5098e58360c31d3e44954010c4ed7263e60186f3 Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Thu, 29 Jun 2017 19:10:51 +0530 Subject: [PATCH 1/6] GEODE-3151: Internal Region Registration in JMX as per config parameter --- .../distributed/ConfigurationProperties.java | 12 ++++ .../internal/AbstractDistributionConfig.java | 5 +- .../internal/DistributionConfig.java | 27 ++++++++ .../internal/DistributionConfigImpl.java | 21 +++++- .../internal/InternalDistributedSystem.java | 12 +++- .../internal/cache/GemFireCacheImpl.java | 8 ++- .../geode/internal/cache/LocalRegion.java | 18 +++-- .../geode/internal/i18n/LocalizedStrings.java | 6 +- .../internal/DistributionConfigJUnitTest.java | 14 +++- .../InternalDistributedSystemJUnitTest.java | 66 ++++++++++++++++++- 10 files changed, 172 insertions(+), 17 deletions(-) diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java index 63f6505101f6..eb03a4f5a3de 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java @@ -1534,6 +1534,18 @@ public interface ConfigurationProperties { * Default: "" */ String SERVER_BIND_ADDRESS = "server-bind-address"; + + /** + * The static String definition of the "jmx-bean-input-names" property + *

+ * Description: Names of the internal region + * which are going to be register over the jmx. + *

+ * Default: "" + */ + String JMX_BEAN_INPUT_NAMES = "jmx-bean-input-names"; + /** * The static String definition of the "ssl-server-alias" property diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index 01c6157e8605..19fd4f8f7451 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -848,7 +848,10 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 .toLocalizedString(DEFAULT_BIND_ADDRESS)); - + + m.put(JMX_BEAN_INPUT_NAMES, + LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 + .toLocalizedString("")); m.put(NAME, "A name that uniquely identifies a member in its distributed system." + " Multiple members in the same distributed system can not have the same name." diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index c2a395de0bfe..23fa5bbd69f7 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -284,6 +284,33 @@ public interface DistributionConfig extends Config, LogConfig { */ String DEFAULT_SERVER_BIND_ADDRESS = ""; + /** + * The default value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property. Current + * value is an empty string "" + */ + String DEFAULT_JMX_BEAN_INPUT_NAMES = ""; + + + /** + * get the value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property + */ + + @ConfigAttributeGetter(name = JMX_BEAN_INPUT_NAMES) + String getBeanInputList(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property + */ + @ConfigAttributeSetter(name = JMX_BEAN_INPUT_NAMES) + void setBeanInputList(String value); + + /** + * The name of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property + */ + @ConfigAttribute(type = String.class) + String JMX_BEAN__INPUT_NAME = JMX_BEAN_INPUT_NAMES; + + /** * Returns the value of the {@link ConfigurationProperties#LOCATORS} property */ diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java index fbe894c96447..9eca9878680b 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java @@ -110,6 +110,13 @@ public class DistributionConfigImpl extends AbstractDistributionConfig implement */ private String serverBindAddress = DEFAULT_SERVER_BIND_ADDRESS; + + /** + * names of the internal region, which are going to be register over the jmx + */ + + private String jmxBeanInputParameters = DEFAULT_JMX_BEAN_INPUT_NAMES; + /** * The locations of the distribution locators */ @@ -610,6 +617,7 @@ public DistributionConfigImpl(DistributionConfig other) { this.mcastAddress = other.getMcastAddress(); this.bindAddress = other.getBindAddress(); this.serverBindAddress = other.getServerBindAddress(); + this.jmxBeanInputParameters=other.getBeanInputList(); this.locators = ((DistributionConfigImpl) other).locators; this.locatorWaitTime = other.getLocatorWaitTime(); this.remoteLocators = other.getRemoteLocators(); @@ -1657,11 +1665,20 @@ public InetAddress getMcastAddress() { return null; } } - + + public String getBeanInputList() { + return this.jmxBeanInputParameters; +} public String getBindAddress() { return this.bindAddress; } - + + public void setBeanInputList(String value) + { if (value == null) { + value = ""; + } + this.jmxBeanInputParameters = (String)value; + } public String getServerBindAddress() { return this.serverBindAddress; } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index a4b3a505cc1e..60ee90f153d6 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -82,6 +82,7 @@ import org.apache.geode.internal.cache.EventID; import org.apache.geode.internal.cache.GemFireCacheImpl; import org.apache.geode.internal.cache.InternalCache; +import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.internal.cache.execute.FunctionServiceStats; import org.apache.geode.internal.cache.execute.FunctionStats; import org.apache.geode.internal.cache.tier.sockets.HandShake; @@ -3080,7 +3081,16 @@ public void stopReconnecting() { disconnect(false, "stopReconnecting was invoked", false); this.attemptingToReconnect = false; } - + + public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) + { + Boolean isRegionFoundInExceptionList = false; + if(this.getConfig().getBeanInputList() != "") + { + isRegionFoundInExceptionList = this.getConfig().getBeanInputList().contains(localRegion.getName()); + } + return isRegionFoundInExceptionList; + } /** * Provides hook for dunit to generate and store a detailed creation stack trace that includes the * keys/values of DistributionConfig including security related attributes without introducing diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index 2dda38c70ba7..ee754b9ea946 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -3124,9 +3124,13 @@ public Region createVMRegion(String name, RegionAttributes p_ } invokeRegionAfter(region); - + + Boolean isRegionFoundInExceptionList = false; + isRegionFoundInExceptionList = this.system.isFoundInJmxBeanInputList(region); + + // Added for M&M . Putting the callback here to avoid creating RegionMBean in case of Exception - if (!region.isInternalRegion()) { + if (!region.isInternalRegion() || isRegionFoundInExceptionList) { this.system.handleResourceEvent(ResourceEvent.REGION_CREATE, region); } diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index 02625eebb055..eede6052a28b 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -2624,9 +2624,13 @@ private void recursiveDestroyRegion(Set eventSet, RegionEventImpl regionEvent, b try { region.recursiveDestroyRegion(eventSet, regionEvent, cacheWrite); - if (!region.isInternalRegion()) { - InternalDistributedSystem system = region.cache.getInternalDistributedSystem(); - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); + + Boolean isRegionFoundInExceptionList = false; + InternalDistributedSystem system = region.cache.getInternalDistributedSystem(); + isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(region); + + if (!region.isInternalRegion() || isRegionFoundInExceptionList) { + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); } } catch (CancelException e) { // I don't think this should ever happen: bulletproofing for bug 39454 @@ -6302,9 +6306,11 @@ void basicDestroyRegion(RegionEventImpl event, boolean cacheWrite, boolean lock, // Added for M&M : At this point we can safely call ResourceEvent to remove the region // artifacts From Management Layer - if (!isInternalRegion()) { - InternalDistributedSystem system = this.cache.getInternalDistributedSystem(); - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); + Boolean isRegionFoundInExceptionList =false; + InternalDistributedSystem system = this.cache.getInternalDistributedSystem(); + isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); + if (!isInternalRegion() || isRegionFoundInExceptionList) { + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); } try { diff --git a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java index baad039bf93c..b8138b5c67b8 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java +++ b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java @@ -7696,7 +7696,11 @@ public class LocalizedStrings { public static final StringId LuceneServiceImpl_REGION_0_CANNOT_BE_DESTROYED = new StringId(6660, "Region {0} cannot be destroyed because it defines Lucene index(es) [{1}]. Destroy all Lucene indexes before destroying the region."); - + + public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = new StringId( + 6651, + "Names of the Beans or internal region names. Defaults to \"{0}\"."); + /** Testing strings, messageId 90000-99999 **/ /** diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java index 9f6c5fb06df8..c1245dad5875 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java @@ -35,6 +35,8 @@ import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_ARCHIVE_FILE; import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLE_RATE; import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLING_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_BEAN_INPUT_NAMES; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -99,7 +101,7 @@ public void before() { @Test public void testGetAttributeNames() { String[] attNames = AbstractDistributionConfig._getAttNames(); - assertEquals(attNames.length, 156); + assertEquals(attNames.length, 157); List boolList = new ArrayList(); List intList = new ArrayList(); @@ -135,7 +137,7 @@ public void testGetAttributeNames() { // are. assertEquals(29, boolList.size()); assertEquals(33, intList.size()); - assertEquals(85, stringList.size()); + assertEquals(86, stringList.size()); assertEquals(5, fileList.size()); assertEquals(4, otherList.size()); } @@ -390,6 +392,14 @@ public void testSecurityPropsWithNoSetter() { assertEquals(config.getSecurityProps().size(), 4); } + @Test + public void TestGetJmxBeanInputList(){ + Properties props = new Properties(); + props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); + DistributionConfig config = new DistributionConfigImpl(props); + assertEquals(config.getBeanInputList(),"REGION_1"); + } + @Test public void testSSLEnabledComponents() { Properties props = new Properties(); diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 5a191bbd9309..76b6aadead40 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -33,6 +33,7 @@ import org.apache.geode.test.junit.categories.MembershipTest; import org.junit.After; import org.junit.Assert; +import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; @@ -48,7 +49,9 @@ import org.apache.geode.internal.i18n.LocalizedStrings; import org.apache.geode.internal.logging.InternalLogWriter; import org.apache.geode.test.junit.categories.IntegrationTest; - +import org.apache.geode.internal.cache.GemFireCacheImpl; +import org.apache.geode.internal.cache.LocalRegion; +import org.apache.geode.cache.*; /** * Tests the functionality of the {@link InternalDistributedSystem} class. Mostly checks * configuration error checking. @@ -62,6 +65,8 @@ public class InternalDistributedSystemJUnitTest { * A connection to a distributed system created by this test */ private InternalDistributedSystem system; + private Cache cache; + private Region region; /** * Creates a DistributedSystem with the given configuration properties. @@ -72,6 +77,19 @@ protected InternalDistributedSystem createSystem(Properties props) { return this.system; } + + public void initCache() { + + try { + cache = CacheFactory.getAnyInstance(); + } catch (Exception e) { + // ignore + } + if (null == cache) { + cache = (GemFireCacheImpl) new CacheFactory().set(MCAST_PORT, "0").create(); + } + + } /** * Disconnects any distributed system that was created by this test * @@ -82,6 +100,10 @@ public void tearDown() throws Exception { if (this.system != null) { this.system.disconnect(); } + if (cache != null && !cache.isClosed()) { + cache.close(); + cache = null; + } } //////// Test methods @@ -159,6 +181,9 @@ public void testDefaultProperties() { assertEquals(DistributionConfig.DEFAULT_ENABLE_NETWORK_PARTITION_DETECTION, config.getEnableNetworkPartitionDetection()); + + assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, + config.getBeanInputList()); } @Test @@ -638,7 +663,44 @@ public void testValidateProps() { sys.disconnect(); } } - + + @Test + public void testWhenisFoundInJmxBeanInputListReturnTrue() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + region = createRegion("REGION_1"); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + + private Region createRegion(String name) + { + RegionFactory rf; + rf = cache.createRegionFactory(RegionShortcut.PARTITION); + return rf.create(name); + } + + @Test + public void testWhenisFoundInJmxBeanInputListReturnFalse() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + region = createRegion("REGION_3"); + assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + @Test public void testDeprecatedSSLProps() { Properties props = getCommonProperties(); From 619f09a70fc9bbc5f9c9929e5f0a1543efa084a9 Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Thu, 29 Jun 2017 22:59:19 +0530 Subject: [PATCH 2/6] modified: geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java modified: geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java modified: geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java modified: geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java modified: geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java modified: geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java modified: geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java modified: geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java modified: geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java modified: geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java --- .gitignore | 59 ++++----- .../distributed/ConfigurationProperties.java | 7 +- .../internal/AbstractDistributionConfig.java | 5 +- .../internal/DistributionConfig.java | 6 +- .../internal/DistributionConfigImpl.java | 22 ++-- .../internal/InternalDistributedSystem.java | 18 +-- .../internal/cache/GemFireCacheImpl.java | 6 +- .../geode/internal/cache/LocalRegion.java | 12 +- .../geode/internal/i18n/LocalizedStrings.java | 9 +- .../internal/DistributionConfigJUnitTest.java | 12 +- .../InternalDistributedSystemJUnitTest.java | 92 +++++++------- gradle.properties | 116 +++++++++--------- 12 files changed, 183 insertions(+), 181 deletions(-) diff --git a/.gitignore b/.gitignore index 68999076f4d0..6af1fd8118c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,31 @@ -# This file should contain patterns all developers want to ignore -# If you have workspace specific files, add them -# to .git/info/exclude. -# -# see git help gitignore for more details -build/ -.idea/ -.gradle/ -.classpath -.project -.settings/ -.idea/ -build-eclipse/ -/tags -out/ - - -*.iml -*.ipr -*.iws -*.swp -*.log -*.patch -*.diff -*.dat -*.rej -*.orig -geode-pulse/screenshots/ +# This file should contain patterns all developers want to ignore +# If you have workspace specific files, add them +# to .git/info/exclude. +# +# see git help gitignore for more details +build/ +.idea/ +.gradle/ +.classpath +.project +.settings/ +.idea/ +build-eclipse/ +/tags +out/ + + +*.iml +*.ipr +*.iws +*.swp +*.log +*.patch +*.diff +*.dat +*.rej +*.orig +geode-pulse/screenshots/ +*.class +*.txt +geode-assembly/bin/ssl/trusted.keystore diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java index eb03a4f5a3de..566fe88d0e32 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java @@ -1534,18 +1534,17 @@ public interface ConfigurationProperties { * Default: "" */ String SERVER_BIND_ADDRESS = "server-bind-address"; - + /** * The static String definition of the "jmx-bean-input-names" property *

- * Description: Names of the internal region - * which are going to be register over the jmx. + * Description: Names of the internal region which are going to be register over the jmx. *

* Default: "" */ String JMX_BEAN_INPUT_NAMES = "jmx-bean-input-names"; - + /** * The static String definition of the "ssl-server-alias" property diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index 19fd4f8f7451..5ba9f7d75179 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -848,10 +848,9 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 .toLocalizedString(DEFAULT_BIND_ADDRESS)); - + m.put(JMX_BEAN_INPUT_NAMES, - LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 - .toLocalizedString("")); + LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0.toLocalizedString("")); m.put(NAME, "A name that uniquely identifies a member in its distributed system." + " Multiple members in the same distributed system can not have the same name." diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index 23fa5bbd69f7..c6f888bc7ef1 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -290,11 +290,11 @@ public interface DistributionConfig extends Config, LogConfig { */ String DEFAULT_JMX_BEAN_INPUT_NAMES = ""; - + /** * get the value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property */ - + @ConfigAttributeGetter(name = JMX_BEAN_INPUT_NAMES) String getBeanInputList(); @@ -310,7 +310,7 @@ public interface DistributionConfig extends Config, LogConfig { @ConfigAttribute(type = String.class) String JMX_BEAN__INPUT_NAME = JMX_BEAN_INPUT_NAMES; - + /** * Returns the value of the {@link ConfigurationProperties#LOCATORS} property */ diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java index 9eca9878680b..686fd4827d95 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java @@ -114,9 +114,9 @@ public class DistributionConfigImpl extends AbstractDistributionConfig implement /** * names of the internal region, which are going to be register over the jmx */ - + private String jmxBeanInputParameters = DEFAULT_JMX_BEAN_INPUT_NAMES; - + /** * The locations of the distribution locators */ @@ -617,7 +617,7 @@ public DistributionConfigImpl(DistributionConfig other) { this.mcastAddress = other.getMcastAddress(); this.bindAddress = other.getBindAddress(); this.serverBindAddress = other.getServerBindAddress(); - this.jmxBeanInputParameters=other.getBeanInputList(); + this.jmxBeanInputParameters = other.getBeanInputList(); this.locators = ((DistributionConfigImpl) other).locators; this.locatorWaitTime = other.getLocatorWaitTime(); this.remoteLocators = other.getRemoteLocators(); @@ -1665,20 +1665,22 @@ public InetAddress getMcastAddress() { return null; } } - + public String getBeanInputList() { - return this.jmxBeanInputParameters; -} + return this.jmxBeanInputParameters; + } + public String getBindAddress() { return this.bindAddress; } - - public void setBeanInputList(String value) - { if (value == null) { + + public void setBeanInputList(String value) { + if (value == null) { value = ""; } - this.jmxBeanInputParameters = (String)value; + this.jmxBeanInputParameters = (String) value; } + public String getServerBindAddress() { return this.serverBindAddress; } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index 60ee90f153d6..cafe52dd7e73 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -3081,16 +3081,16 @@ public void stopReconnecting() { disconnect(false, "stopReconnecting was invoked", false); this.attemptingToReconnect = false; } - - public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) - { - Boolean isRegionFoundInExceptionList = false; - if(this.getConfig().getBeanInputList() != "") - { - isRegionFoundInExceptionList = this.getConfig().getBeanInputList().contains(localRegion.getName()); - } - return isRegionFoundInExceptionList; + + public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) { + Boolean isRegionFoundInExceptionList = false; + if (this.getConfig().getBeanInputList() != "") { + isRegionFoundInExceptionList = + this.getConfig().getBeanInputList().contains(localRegion.getName()); + } + return isRegionFoundInExceptionList; } + /** * Provides hook for dunit to generate and store a detailed creation stack trace that includes the * keys/values of DistributionConfig including security related attributes without introducing diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index ee754b9ea946..469c04a512c7 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -3124,11 +3124,11 @@ public Region createVMRegion(String name, RegionAttributes p_ } invokeRegionAfter(region); - + Boolean isRegionFoundInExceptionList = false; isRegionFoundInExceptionList = this.system.isFoundInJmxBeanInputList(region); - - + + // Added for M&M . Putting the callback here to avoid creating RegionMBean in case of Exception if (!region.isInternalRegion() || isRegionFoundInExceptionList) { this.system.handleResourceEvent(ResourceEvent.REGION_CREATE, region); diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index eede6052a28b..fd2c721f4dff 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -2624,13 +2624,13 @@ private void recursiveDestroyRegion(Set eventSet, RegionEventImpl regionEvent, b try { region.recursiveDestroyRegion(eventSet, regionEvent, cacheWrite); - + Boolean isRegionFoundInExceptionList = false; InternalDistributedSystem system = region.cache.getInternalDistributedSystem(); isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(region); - + if (!region.isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); } } catch (CancelException e) { // I don't think this should ever happen: bulletproofing for bug 39454 @@ -6306,11 +6306,11 @@ void basicDestroyRegion(RegionEventImpl event, boolean cacheWrite, boolean lock, // Added for M&M : At this point we can safely call ResourceEvent to remove the region // artifacts From Management Layer - Boolean isRegionFoundInExceptionList =false; + Boolean isRegionFoundInExceptionList = false; InternalDistributedSystem system = this.cache.getInternalDistributedSystem(); - isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); + isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); if (!isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); } try { diff --git a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java index b8138b5c67b8..c62696ee1da1 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java +++ b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java @@ -7696,11 +7696,10 @@ public class LocalizedStrings { public static final StringId LuceneServiceImpl_REGION_0_CANNOT_BE_DESTROYED = new StringId(6660, "Region {0} cannot be destroyed because it defines Lucene index(es) [{1}]. Destroy all Lucene indexes before destroying the region."); - - public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = new StringId( - 6651, - "Names of the Beans or internal region names. Defaults to \"{0}\"."); - + + public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = + new StringId(6651, "Names of the Beans or internal region names. Defaults to \"{0}\"."); + /** Testing strings, messageId 90000-99999 **/ /** diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java index c1245dad5875..114ddda51671 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java @@ -393,13 +393,13 @@ public void testSecurityPropsWithNoSetter() { } @Test - public void TestGetJmxBeanInputList(){ - Properties props = new Properties(); - props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); - DistributionConfig config = new DistributionConfigImpl(props); - assertEquals(config.getBeanInputList(),"REGION_1"); + public void TestGetJmxBeanInputList() { + Properties props = new Properties(); + props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); + DistributionConfig config = new DistributionConfigImpl(props); + assertEquals(config.getBeanInputList(), "REGION_1"); } - + @Test public void testSSLEnabledComponents() { Properties props = new Properties(); diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 76b6aadead40..985c97eb5ee2 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -52,6 +52,7 @@ import org.apache.geode.internal.cache.GemFireCacheImpl; import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.cache.*; + /** * Tests the functionality of the {@link InternalDistributedSystem} class. Mostly checks * configuration error checking. @@ -77,9 +78,9 @@ protected InternalDistributedSystem createSystem(Properties props) { return this.system; } - + public void initCache() { - + try { cache = CacheFactory.getAnyInstance(); } catch (Exception e) { @@ -88,8 +89,9 @@ public void initCache() { if (null == cache) { cache = (GemFireCacheImpl) new CacheFactory().set(MCAST_PORT, "0").create(); } - + } + /** * Disconnects any distributed system that was created by this test * @@ -101,8 +103,8 @@ public void tearDown() throws Exception { this.system.disconnect(); } if (cache != null && !cache.isClosed()) { - cache.close(); - cache = null; + cache.close(); + cache = null; } } @@ -181,9 +183,8 @@ public void testDefaultProperties() { assertEquals(DistributionConfig.DEFAULT_ENABLE_NETWORK_PARTITION_DETECTION, config.getEnableNetworkPartitionDetection()); - - assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, - config.getBeanInputList()); + + assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, config.getBeanInputList()); } @Test @@ -663,44 +664,43 @@ public void testValidateProps() { sys.disconnect(); } } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnTrue() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - region = createRegion("REGION_1"); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - - private Region createRegion(String name) - { - RegionFactory rf; - rf = cache.createRegionFactory(RegionShortcut.PARTITION); - return rf.create(name); - } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnFalse() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - region = createRegion("REGION_3"); - assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - + + @Test + public void testWhenisFoundInJmxBeanInputListReturnTrue() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + region = createRegion("REGION_1"); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + + private Region createRegion(String name) { + RegionFactory rf; + rf = cache.createRegionFactory(RegionShortcut.PARTITION); + return rf.create(name); + } + + @Test + public void testWhenisFoundInJmxBeanInputListReturnFalse() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + region = createRegion("REGION_3"); + assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + @Test public void testDeprecatedSSLProps() { Properties props = getCommonProperties(); diff --git a/gradle.properties b/gradle.properties index 946229500a4f..46067ac9a1ae 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,58 +1,58 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Set the release type using the following conventions: -# -SNAPSHOT - development version -# .M? - milestone release -# - release -versionNumber = 1.3.0 - -# Set the release qualifier using the following conventions: -# .M? - milestone release -# -beta.? - beta release -# - release -releaseQualifier = - -# Set the release type using the following conventions: -# -SNAPSHOT - development version -# - release -# This is only really relevant for Maven artifacts. -releaseType = -SNAPSHOT - -# Set the buildId to add build metadata that can be viewed from -# gfsh or pulse (`gfsh version --full`). Can be set using -# `gradle -PbuildId=N ...` where N is an artibitrary string. -buildId = 0 - -productName = Apache Geode -productOrg = Apache Software Foundation (ASF) - -org.gradle.daemon = true -org.gradle.jvmargs = -Xmx2048m - -minimumGradleVersion = 2.14.1 -# Set this on the command line with -P or in ~/.gradle/gradle.properties -# to change the buildDir location. Use an absolute path. -buildRoot= - -# We want signing to be on by default. Signing requires GPG to be set up. -nexusSignArchives = true - -# Control how many concurrent dunit (using docker) tests will be run -dunitParallelForks = 8 -# This is the name of the Docker image for running parallel dunits -dunitDockerImage = openjdk:8 -# Docker user for parallel dunit tests -dunitDockerUser = root +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Set the release type using the following conventions: +# -SNAPSHOT - development version +# .M? - milestone release +# - release +versionNumber = 1.3.0 + +# Set the release qualifier using the following conventions: +# .M? - milestone release +# -beta.? - beta release +# - release +releaseQualifier = + +# Set the release type using the following conventions: +# -SNAPSHOT - development version +# - release +# This is only really relevant for Maven artifacts. +releaseType = -SNAPSHOT + +# Set the buildId to add build metadata that can be viewed from +# gfsh or pulse (`gfsh version --full`). Can be set using +# `gradle -PbuildId=N ...` where N is an artibitrary string. +buildId = 0 + +productName = Apache Geode +productOrg = Apache Software Foundation (ASF) +org.gradle.parallel=true +org.gradle.daemon = true +org.gradle.jvmargs =-Xms256m -Xmx4096m + +minimumGradleVersion = 2.14.1 +# Set this on the command line with -P or in ~/.gradle/gradle.properties +# to change the buildDir location. Use an absolute path. +buildRoot= + +# We want signing to be on by default. Signing requires GPG to be set up. +nexusSignArchives = true + +# Control how many concurrent dunit (using docker) tests will be run +dunitParallelForks = 8 +# This is the name of the Docker image for running parallel dunits +dunitDockerImage = openjdk:8 +# Docker user for parallel dunit tests +dunitDockerUser = root From 297af66c214f040f3f919a167706d96cb2da32e8 Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Thu, 29 Jun 2017 23:04:45 +0530 Subject: [PATCH 3/6] Revert " modified: geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java" This reverts commit 619f09a70fc9bbc5f9c9929e5f0a1543efa084a9. --- .gitignore | 59 +++++---- .../distributed/ConfigurationProperties.java | 7 +- .../internal/AbstractDistributionConfig.java | 5 +- .../internal/DistributionConfig.java | 6 +- .../internal/DistributionConfigImpl.java | 22 ++-- .../internal/InternalDistributedSystem.java | 18 +-- .../internal/cache/GemFireCacheImpl.java | 6 +- .../geode/internal/cache/LocalRegion.java | 12 +- .../geode/internal/i18n/LocalizedStrings.java | 9 +- .../internal/DistributionConfigJUnitTest.java | 12 +- .../InternalDistributedSystemJUnitTest.java | 92 +++++++------- gradle.properties | 116 +++++++++--------- 12 files changed, 181 insertions(+), 183 deletions(-) diff --git a/.gitignore b/.gitignore index 6af1fd8118c1..68999076f4d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,31 +1,28 @@ -# This file should contain patterns all developers want to ignore -# If you have workspace specific files, add them -# to .git/info/exclude. -# -# see git help gitignore for more details -build/ -.idea/ -.gradle/ -.classpath -.project -.settings/ -.idea/ -build-eclipse/ -/tags -out/ - - -*.iml -*.ipr -*.iws -*.swp -*.log -*.patch -*.diff -*.dat -*.rej -*.orig -geode-pulse/screenshots/ -*.class -*.txt -geode-assembly/bin/ssl/trusted.keystore +# This file should contain patterns all developers want to ignore +# If you have workspace specific files, add them +# to .git/info/exclude. +# +# see git help gitignore for more details +build/ +.idea/ +.gradle/ +.classpath +.project +.settings/ +.idea/ +build-eclipse/ +/tags +out/ + + +*.iml +*.ipr +*.iws +*.swp +*.log +*.patch +*.diff +*.dat +*.rej +*.orig +geode-pulse/screenshots/ diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java index 566fe88d0e32..eb03a4f5a3de 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java @@ -1534,17 +1534,18 @@ public interface ConfigurationProperties { * Default: "" */ String SERVER_BIND_ADDRESS = "server-bind-address"; - + /** * The static String definition of the "jmx-bean-input-names" property *

- * Description: Names of the internal region which are going to be register over the jmx. + * Description: Names of the internal region + * which are going to be register over the jmx. *

* Default: "" */ String JMX_BEAN_INPUT_NAMES = "jmx-bean-input-names"; - + /** * The static String definition of the "ssl-server-alias" property diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index 5ba9f7d75179..19fd4f8f7451 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -848,9 +848,10 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 .toLocalizedString(DEFAULT_BIND_ADDRESS)); - + m.put(JMX_BEAN_INPUT_NAMES, - LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0.toLocalizedString("")); + LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 + .toLocalizedString("")); m.put(NAME, "A name that uniquely identifies a member in its distributed system." + " Multiple members in the same distributed system can not have the same name." diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index c6f888bc7ef1..23fa5bbd69f7 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -290,11 +290,11 @@ public interface DistributionConfig extends Config, LogConfig { */ String DEFAULT_JMX_BEAN_INPUT_NAMES = ""; - + /** * get the value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property */ - + @ConfigAttributeGetter(name = JMX_BEAN_INPUT_NAMES) String getBeanInputList(); @@ -310,7 +310,7 @@ public interface DistributionConfig extends Config, LogConfig { @ConfigAttribute(type = String.class) String JMX_BEAN__INPUT_NAME = JMX_BEAN_INPUT_NAMES; - + /** * Returns the value of the {@link ConfigurationProperties#LOCATORS} property */ diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java index 686fd4827d95..9eca9878680b 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java @@ -114,9 +114,9 @@ public class DistributionConfigImpl extends AbstractDistributionConfig implement /** * names of the internal region, which are going to be register over the jmx */ - + private String jmxBeanInputParameters = DEFAULT_JMX_BEAN_INPUT_NAMES; - + /** * The locations of the distribution locators */ @@ -617,7 +617,7 @@ public DistributionConfigImpl(DistributionConfig other) { this.mcastAddress = other.getMcastAddress(); this.bindAddress = other.getBindAddress(); this.serverBindAddress = other.getServerBindAddress(); - this.jmxBeanInputParameters = other.getBeanInputList(); + this.jmxBeanInputParameters=other.getBeanInputList(); this.locators = ((DistributionConfigImpl) other).locators; this.locatorWaitTime = other.getLocatorWaitTime(); this.remoteLocators = other.getRemoteLocators(); @@ -1665,22 +1665,20 @@ public InetAddress getMcastAddress() { return null; } } - + public String getBeanInputList() { - return this.jmxBeanInputParameters; - } - + return this.jmxBeanInputParameters; +} public String getBindAddress() { return this.bindAddress; } - - public void setBeanInputList(String value) { - if (value == null) { + + public void setBeanInputList(String value) + { if (value == null) { value = ""; } - this.jmxBeanInputParameters = (String) value; + this.jmxBeanInputParameters = (String)value; } - public String getServerBindAddress() { return this.serverBindAddress; } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index cafe52dd7e73..60ee90f153d6 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -3081,16 +3081,16 @@ public void stopReconnecting() { disconnect(false, "stopReconnecting was invoked", false); this.attemptingToReconnect = false; } - - public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) { - Boolean isRegionFoundInExceptionList = false; - if (this.getConfig().getBeanInputList() != "") { - isRegionFoundInExceptionList = - this.getConfig().getBeanInputList().contains(localRegion.getName()); - } - return isRegionFoundInExceptionList; + + public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) + { + Boolean isRegionFoundInExceptionList = false; + if(this.getConfig().getBeanInputList() != "") + { + isRegionFoundInExceptionList = this.getConfig().getBeanInputList().contains(localRegion.getName()); + } + return isRegionFoundInExceptionList; } - /** * Provides hook for dunit to generate and store a detailed creation stack trace that includes the * keys/values of DistributionConfig including security related attributes without introducing diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index 469c04a512c7..ee754b9ea946 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -3124,11 +3124,11 @@ public Region createVMRegion(String name, RegionAttributes p_ } invokeRegionAfter(region); - + Boolean isRegionFoundInExceptionList = false; isRegionFoundInExceptionList = this.system.isFoundInJmxBeanInputList(region); - - + + // Added for M&M . Putting the callback here to avoid creating RegionMBean in case of Exception if (!region.isInternalRegion() || isRegionFoundInExceptionList) { this.system.handleResourceEvent(ResourceEvent.REGION_CREATE, region); diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index fd2c721f4dff..eede6052a28b 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -2624,13 +2624,13 @@ private void recursiveDestroyRegion(Set eventSet, RegionEventImpl regionEvent, b try { region.recursiveDestroyRegion(eventSet, regionEvent, cacheWrite); - + Boolean isRegionFoundInExceptionList = false; InternalDistributedSystem system = region.cache.getInternalDistributedSystem(); isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(region); - + if (!region.isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); } } catch (CancelException e) { // I don't think this should ever happen: bulletproofing for bug 39454 @@ -6306,11 +6306,11 @@ void basicDestroyRegion(RegionEventImpl event, boolean cacheWrite, boolean lock, // Added for M&M : At this point we can safely call ResourceEvent to remove the region // artifacts From Management Layer - Boolean isRegionFoundInExceptionList = false; + Boolean isRegionFoundInExceptionList =false; InternalDistributedSystem system = this.cache.getInternalDistributedSystem(); - isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); + isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); if (!isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); } try { diff --git a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java index c62696ee1da1..b8138b5c67b8 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java +++ b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java @@ -7696,10 +7696,11 @@ public class LocalizedStrings { public static final StringId LuceneServiceImpl_REGION_0_CANNOT_BE_DESTROYED = new StringId(6660, "Region {0} cannot be destroyed because it defines Lucene index(es) [{1}]. Destroy all Lucene indexes before destroying the region."); - - public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = - new StringId(6651, "Names of the Beans or internal region names. Defaults to \"{0}\"."); - + + public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = new StringId( + 6651, + "Names of the Beans or internal region names. Defaults to \"{0}\"."); + /** Testing strings, messageId 90000-99999 **/ /** diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java index 114ddda51671..c1245dad5875 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java @@ -393,13 +393,13 @@ public void testSecurityPropsWithNoSetter() { } @Test - public void TestGetJmxBeanInputList() { - Properties props = new Properties(); - props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); - DistributionConfig config = new DistributionConfigImpl(props); - assertEquals(config.getBeanInputList(), "REGION_1"); + public void TestGetJmxBeanInputList(){ + Properties props = new Properties(); + props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); + DistributionConfig config = new DistributionConfigImpl(props); + assertEquals(config.getBeanInputList(),"REGION_1"); } - + @Test public void testSSLEnabledComponents() { Properties props = new Properties(); diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 985c97eb5ee2..76b6aadead40 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -52,7 +52,6 @@ import org.apache.geode.internal.cache.GemFireCacheImpl; import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.cache.*; - /** * Tests the functionality of the {@link InternalDistributedSystem} class. Mostly checks * configuration error checking. @@ -78,9 +77,9 @@ protected InternalDistributedSystem createSystem(Properties props) { return this.system; } - + public void initCache() { - + try { cache = CacheFactory.getAnyInstance(); } catch (Exception e) { @@ -89,9 +88,8 @@ public void initCache() { if (null == cache) { cache = (GemFireCacheImpl) new CacheFactory().set(MCAST_PORT, "0").create(); } - + } - /** * Disconnects any distributed system that was created by this test * @@ -103,8 +101,8 @@ public void tearDown() throws Exception { this.system.disconnect(); } if (cache != null && !cache.isClosed()) { - cache.close(); - cache = null; + cache.close(); + cache = null; } } @@ -183,8 +181,9 @@ public void testDefaultProperties() { assertEquals(DistributionConfig.DEFAULT_ENABLE_NETWORK_PARTITION_DETECTION, config.getEnableNetworkPartitionDetection()); - - assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, config.getBeanInputList()); + + assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, + config.getBeanInputList()); } @Test @@ -664,43 +663,44 @@ public void testValidateProps() { sys.disconnect(); } } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnTrue() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - region = createRegion("REGION_1"); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - - private Region createRegion(String name) { - RegionFactory rf; - rf = cache.createRegionFactory(RegionShortcut.PARTITION); - return rf.create(name); - } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnFalse() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - region = createRegion("REGION_3"); - assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - + + @Test + public void testWhenisFoundInJmxBeanInputListReturnTrue() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + region = createRegion("REGION_1"); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + + private Region createRegion(String name) + { + RegionFactory rf; + rf = cache.createRegionFactory(RegionShortcut.PARTITION); + return rf.create(name); + } + + @Test + public void testWhenisFoundInJmxBeanInputListReturnFalse() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + region = createRegion("REGION_3"); + assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + @Test public void testDeprecatedSSLProps() { Properties props = getCommonProperties(); diff --git a/gradle.properties b/gradle.properties index 46067ac9a1ae..946229500a4f 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,58 +1,58 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Set the release type using the following conventions: -# -SNAPSHOT - development version -# .M? - milestone release -# - release -versionNumber = 1.3.0 - -# Set the release qualifier using the following conventions: -# .M? - milestone release -# -beta.? - beta release -# - release -releaseQualifier = - -# Set the release type using the following conventions: -# -SNAPSHOT - development version -# - release -# This is only really relevant for Maven artifacts. -releaseType = -SNAPSHOT - -# Set the buildId to add build metadata that can be viewed from -# gfsh or pulse (`gfsh version --full`). Can be set using -# `gradle -PbuildId=N ...` where N is an artibitrary string. -buildId = 0 - -productName = Apache Geode -productOrg = Apache Software Foundation (ASF) -org.gradle.parallel=true -org.gradle.daemon = true -org.gradle.jvmargs =-Xms256m -Xmx4096m - -minimumGradleVersion = 2.14.1 -# Set this on the command line with -P or in ~/.gradle/gradle.properties -# to change the buildDir location. Use an absolute path. -buildRoot= - -# We want signing to be on by default. Signing requires GPG to be set up. -nexusSignArchives = true - -# Control how many concurrent dunit (using docker) tests will be run -dunitParallelForks = 8 -# This is the name of the Docker image for running parallel dunits -dunitDockerImage = openjdk:8 -# Docker user for parallel dunit tests -dunitDockerUser = root +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Set the release type using the following conventions: +# -SNAPSHOT - development version +# .M? - milestone release +# - release +versionNumber = 1.3.0 + +# Set the release qualifier using the following conventions: +# .M? - milestone release +# -beta.? - beta release +# - release +releaseQualifier = + +# Set the release type using the following conventions: +# -SNAPSHOT - development version +# - release +# This is only really relevant for Maven artifacts. +releaseType = -SNAPSHOT + +# Set the buildId to add build metadata that can be viewed from +# gfsh or pulse (`gfsh version --full`). Can be set using +# `gradle -PbuildId=N ...` where N is an artibitrary string. +buildId = 0 + +productName = Apache Geode +productOrg = Apache Software Foundation (ASF) + +org.gradle.daemon = true +org.gradle.jvmargs = -Xmx2048m + +minimumGradleVersion = 2.14.1 +# Set this on the command line with -P or in ~/.gradle/gradle.properties +# to change the buildDir location. Use an absolute path. +buildRoot= + +# We want signing to be on by default. Signing requires GPG to be set up. +nexusSignArchives = true + +# Control how many concurrent dunit (using docker) tests will be run +dunitParallelForks = 8 +# This is the name of the Docker image for running parallel dunits +dunitDockerImage = openjdk:8 +# Docker user for parallel dunit tests +dunitDockerUser = root From 86fdf568570b58e8e2be99409fd02a1bd14f688d Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Thu, 29 Jun 2017 23:08:34 +0530 Subject: [PATCH 4/6] GEODE-3151: --- .../distributed/ConfigurationProperties.java | 7 +- .../internal/AbstractDistributionConfig.java | 5 +- .../internal/DistributionConfig.java | 6 +- .../internal/DistributionConfigImpl.java | 22 +++-- .../internal/InternalDistributedSystem.java | 18 ++-- .../internal/cache/GemFireCacheImpl.java | 6 +- .../geode/internal/cache/LocalRegion.java | 12 +-- .../geode/internal/i18n/LocalizedStrings.java | 9 +- .../internal/DistributionConfigJUnitTest.java | 12 +-- .../InternalDistributedSystemJUnitTest.java | 92 +++++++++---------- 10 files changed, 94 insertions(+), 95 deletions(-) diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java index eb03a4f5a3de..566fe88d0e32 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/ConfigurationProperties.java @@ -1534,18 +1534,17 @@ public interface ConfigurationProperties { * Default: "" */ String SERVER_BIND_ADDRESS = "server-bind-address"; - + /** * The static String definition of the "jmx-bean-input-names" property *

- * Description: Names of the internal region - * which are going to be register over the jmx. + * Description: Names of the internal region which are going to be register over the jmx. *

* Default: "" */ String JMX_BEAN_INPUT_NAMES = "jmx-bean-input-names"; - + /** * The static String definition of the "ssl-server-alias" property diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index 19fd4f8f7451..5ba9f7d75179 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -848,10 +848,9 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 .toLocalizedString(DEFAULT_BIND_ADDRESS)); - + m.put(JMX_BEAN_INPUT_NAMES, - LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 - .toLocalizedString("")); + LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0.toLocalizedString("")); m.put(NAME, "A name that uniquely identifies a member in its distributed system." + " Multiple members in the same distributed system can not have the same name." diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index 23fa5bbd69f7..c6f888bc7ef1 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -290,11 +290,11 @@ public interface DistributionConfig extends Config, LogConfig { */ String DEFAULT_JMX_BEAN_INPUT_NAMES = ""; - + /** * get the value of the {@link ConfigurationProperties#JMX_BEAN_INPUT_NAMES} property */ - + @ConfigAttributeGetter(name = JMX_BEAN_INPUT_NAMES) String getBeanInputList(); @@ -310,7 +310,7 @@ public interface DistributionConfig extends Config, LogConfig { @ConfigAttribute(type = String.class) String JMX_BEAN__INPUT_NAME = JMX_BEAN_INPUT_NAMES; - + /** * Returns the value of the {@link ConfigurationProperties#LOCATORS} property */ diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java index 9eca9878680b..686fd4827d95 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java @@ -114,9 +114,9 @@ public class DistributionConfigImpl extends AbstractDistributionConfig implement /** * names of the internal region, which are going to be register over the jmx */ - + private String jmxBeanInputParameters = DEFAULT_JMX_BEAN_INPUT_NAMES; - + /** * The locations of the distribution locators */ @@ -617,7 +617,7 @@ public DistributionConfigImpl(DistributionConfig other) { this.mcastAddress = other.getMcastAddress(); this.bindAddress = other.getBindAddress(); this.serverBindAddress = other.getServerBindAddress(); - this.jmxBeanInputParameters=other.getBeanInputList(); + this.jmxBeanInputParameters = other.getBeanInputList(); this.locators = ((DistributionConfigImpl) other).locators; this.locatorWaitTime = other.getLocatorWaitTime(); this.remoteLocators = other.getRemoteLocators(); @@ -1665,20 +1665,22 @@ public InetAddress getMcastAddress() { return null; } } - + public String getBeanInputList() { - return this.jmxBeanInputParameters; -} + return this.jmxBeanInputParameters; + } + public String getBindAddress() { return this.bindAddress; } - - public void setBeanInputList(String value) - { if (value == null) { + + public void setBeanInputList(String value) { + if (value == null) { value = ""; } - this.jmxBeanInputParameters = (String)value; + this.jmxBeanInputParameters = (String) value; } + public String getServerBindAddress() { return this.serverBindAddress; } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index 60ee90f153d6..cafe52dd7e73 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -3081,16 +3081,16 @@ public void stopReconnecting() { disconnect(false, "stopReconnecting was invoked", false); this.attemptingToReconnect = false; } - - public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) - { - Boolean isRegionFoundInExceptionList = false; - if(this.getConfig().getBeanInputList() != "") - { - isRegionFoundInExceptionList = this.getConfig().getBeanInputList().contains(localRegion.getName()); - } - return isRegionFoundInExceptionList; + + public Boolean isFoundInJmxBeanInputList(LocalRegion localRegion) { + Boolean isRegionFoundInExceptionList = false; + if (this.getConfig().getBeanInputList() != "") { + isRegionFoundInExceptionList = + this.getConfig().getBeanInputList().contains(localRegion.getName()); + } + return isRegionFoundInExceptionList; } + /** * Provides hook for dunit to generate and store a detailed creation stack trace that includes the * keys/values of DistributionConfig including security related attributes without introducing diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index ee754b9ea946..469c04a512c7 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -3124,11 +3124,11 @@ public Region createVMRegion(String name, RegionAttributes p_ } invokeRegionAfter(region); - + Boolean isRegionFoundInExceptionList = false; isRegionFoundInExceptionList = this.system.isFoundInJmxBeanInputList(region); - - + + // Added for M&M . Putting the callback here to avoid creating RegionMBean in case of Exception if (!region.isInternalRegion() || isRegionFoundInExceptionList) { this.system.handleResourceEvent(ResourceEvent.REGION_CREATE, region); diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index eede6052a28b..fd2c721f4dff 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -2624,13 +2624,13 @@ private void recursiveDestroyRegion(Set eventSet, RegionEventImpl regionEvent, b try { region.recursiveDestroyRegion(eventSet, regionEvent, cacheWrite); - + Boolean isRegionFoundInExceptionList = false; InternalDistributedSystem system = region.cache.getInternalDistributedSystem(); isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(region); - + if (!region.isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, region); } } catch (CancelException e) { // I don't think this should ever happen: bulletproofing for bug 39454 @@ -6306,11 +6306,11 @@ void basicDestroyRegion(RegionEventImpl event, boolean cacheWrite, boolean lock, // Added for M&M : At this point we can safely call ResourceEvent to remove the region // artifacts From Management Layer - Boolean isRegionFoundInExceptionList =false; + Boolean isRegionFoundInExceptionList = false; InternalDistributedSystem system = this.cache.getInternalDistributedSystem(); - isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); + isRegionFoundInExceptionList = system.isFoundInJmxBeanInputList(this); if (!isInternalRegion() || isRegionFoundInExceptionList) { - system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); + system.handleResourceEvent(ResourceEvent.REGION_REMOVE, this); } try { diff --git a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java index b8138b5c67b8..c62696ee1da1 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java +++ b/geode-core/src/main/java/org/apache/geode/internal/i18n/LocalizedStrings.java @@ -7696,11 +7696,10 @@ public class LocalizedStrings { public static final StringId LuceneServiceImpl_REGION_0_CANNOT_BE_DESTROYED = new StringId(6660, "Region {0} cannot be destroyed because it defines Lucene index(es) [{1}]. Destroy all Lucene indexes before destroying the region."); - - public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = new StringId( - 6651, - "Names of the Beans or internal region names. Defaults to \"{0}\"."); - + + public static final StringId AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0 = + new StringId(6651, "Names of the Beans or internal region names. Defaults to \"{0}\"."); + /** Testing strings, messageId 90000-99999 **/ /** diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java index c1245dad5875..114ddda51671 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java @@ -393,13 +393,13 @@ public void testSecurityPropsWithNoSetter() { } @Test - public void TestGetJmxBeanInputList(){ - Properties props = new Properties(); - props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); - DistributionConfig config = new DistributionConfigImpl(props); - assertEquals(config.getBeanInputList(),"REGION_1"); + public void TestGetJmxBeanInputList() { + Properties props = new Properties(); + props.put(JMX_BEAN_INPUT_NAMES, "REGION_1"); + DistributionConfig config = new DistributionConfigImpl(props); + assertEquals(config.getBeanInputList(), "REGION_1"); } - + @Test public void testSSLEnabledComponents() { Properties props = new Properties(); diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 76b6aadead40..985c97eb5ee2 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -52,6 +52,7 @@ import org.apache.geode.internal.cache.GemFireCacheImpl; import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.cache.*; + /** * Tests the functionality of the {@link InternalDistributedSystem} class. Mostly checks * configuration error checking. @@ -77,9 +78,9 @@ protected InternalDistributedSystem createSystem(Properties props) { return this.system; } - + public void initCache() { - + try { cache = CacheFactory.getAnyInstance(); } catch (Exception e) { @@ -88,8 +89,9 @@ public void initCache() { if (null == cache) { cache = (GemFireCacheImpl) new CacheFactory().set(MCAST_PORT, "0").create(); } - + } + /** * Disconnects any distributed system that was created by this test * @@ -101,8 +103,8 @@ public void tearDown() throws Exception { this.system.disconnect(); } if (cache != null && !cache.isClosed()) { - cache.close(); - cache = null; + cache.close(); + cache = null; } } @@ -181,9 +183,8 @@ public void testDefaultProperties() { assertEquals(DistributionConfig.DEFAULT_ENABLE_NETWORK_PARTITION_DETECTION, config.getEnableNetworkPartitionDetection()); - - assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, - config.getBeanInputList()); + + assertEquals(DistributionConfig.DEFAULT_JMX_BEAN_INPUT_NAMES, config.getBeanInputList()); } @Test @@ -663,44 +664,43 @@ public void testValidateProps() { sys.disconnect(); } } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnTrue() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - region = createRegion("REGION_1"); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - - private Region createRegion(String name) - { - RegionFactory rf; - rf = cache.createRegionFactory(RegionShortcut.PARTITION); - return rf.create(name); - } - - @Test - public void testWhenisFoundInJmxBeanInputListReturnFalse() { - try { - - initCache(); - InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); - system.getConfig().setBeanInputList("REGION_1,REGION_2"); - region = createRegion("REGION_3"); - assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); - } catch (IllegalArgumentException ex) { - // pass... - } - - } - + + @Test + public void testWhenisFoundInJmxBeanInputListReturnTrue() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + region = createRegion("REGION_1"); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + assertEquals(true, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + + private Region createRegion(String name) { + RegionFactory rf; + rf = cache.createRegionFactory(RegionShortcut.PARTITION); + return rf.create(name); + } + + @Test + public void testWhenisFoundInJmxBeanInputListReturnFalse() { + try { + + initCache(); + InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); + system.getConfig().setBeanInputList("REGION_1,REGION_2"); + region = createRegion("REGION_3"); + assertEquals(false, system.isFoundInJmxBeanInputList((LocalRegion) region)); + } catch (IllegalArgumentException ex) { + // pass... + } + + } + @Test public void testDeprecatedSSLProps() { Properties props = getCommonProperties(); From ba465503c86b2f66b837efb9c3c5a1ddb17cf249 Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Mon, 3 Jul 2017 16:23:03 +0530 Subject: [PATCH 5/6] GEODE-3151 code style applied --- .../internal/AbstractDistributionConfig.java | 263 +- .../internal/DistributionConfig.java | 6544 ++++++++--------- .../internal/DistributionConfigImpl.java | 53 +- .../internal/InternalDistributedSystem.java | 77 +- .../internal/cache/GemFireCacheImpl.java | 156 +- .../geode/internal/cache/LocalRegion.java | 407 +- .../internal/DistributionConfigJUnitTest.java | 28 +- .../InternalDistributedSystemJUnitTest.java | 52 +- 8 files changed, 3816 insertions(+), 3764 deletions(-) diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index 5ba9f7d75179..a21a04258284 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -16,7 +16,20 @@ import static org.apache.geode.distributed.ConfigurationProperties.*; +import java.lang.reflect.Method; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.StringTokenizer; + import org.apache.commons.lang.StringUtils; + import org.apache.geode.InternalGemFireException; import org.apache.geode.InvalidValueException; import org.apache.geode.UnmodifiableException; @@ -30,18 +43,6 @@ import org.apache.geode.internal.security.SecurableCommunicationChannel; import org.apache.geode.memcached.GemFireMemcachedServer; -import java.lang.reflect.Method; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.StringTokenizer; - /** * Provides an implementation of DistributionConfig that knows how to read the * configuration file. @@ -52,7 +53,7 @@ */ @SuppressWarnings("deprecation") public abstract class AbstractDistributionConfig extends AbstractConfig - implements DistributionConfig { +implements DistributionConfig { protected Object checkAttribute(String attName, Object value) { // first check to see if this attribute is modifiable, this also checks if the attribute is a @@ -101,13 +102,13 @@ protected void minMaxCheck(String propName, int value, int minValue, int maxValu if (value < minValue) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString( - new Object[] {propName, Integer.valueOf(value), Integer.valueOf(minValue)})); + .toLocalizedString( + new Object[] {propName, Integer.valueOf(value), Integer.valueOf(minValue)})); } else if (value > maxValue) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString( - new Object[] {propName, Integer.valueOf(value), Integer.valueOf(maxValue)})); + .toLocalizedString( + new Object[] {propName, Integer.valueOf(value), Integer.valueOf(maxValue)})); } } @@ -125,8 +126,8 @@ protected int checkTcpPort(int value) { if (getClusterSSLEnabled() && value != 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_0_WHEN_2_IS_TRUE - .toLocalizedString( - new Object[] {TCP_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); + .toLocalizedString( + new Object[] {TCP_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); } return value; } @@ -136,8 +137,8 @@ protected int checkMcastPort(int value) { if (getClusterSSLEnabled() && value != 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_0_WHEN_2_IS_TRUE - .toLocalizedString( - new Object[] {MCAST_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); + .toLocalizedString( + new Object[] {MCAST_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); } return value; } @@ -147,7 +148,7 @@ protected InetAddress checkMcastAddress(InetAddress value) { if (!value.isMulticastAddress()) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_IT_WAS_NOT_A_MULTICAST_ADDRESS - .toLocalizedString(new Object[] {MCAST_ADDRESS, value})); + .toLocalizedString(new Object[] {MCAST_ADDRESS, value})); } return value; } @@ -157,7 +158,7 @@ protected String checkBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -167,7 +168,7 @@ protected String checkServerBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -177,7 +178,7 @@ protected Boolean checkClusterSSLEnabled(Boolean value) { if (value.booleanValue() && (getMcastPort() != 0)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_FALSE_WHEN_2_IS_NOT_0 - .toLocalizedString(new Object[] {CLUSTER_SSL_ENABLED, value, MCAST_PORT})); + .toLocalizedString(new Object[] {CLUSTER_SSL_ENABLED, value, MCAST_PORT})); } return value; } @@ -187,7 +188,7 @@ protected String checkHttpServiceBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -201,15 +202,15 @@ protected int checkDistributedSystemId(int value) { if (value < MIN_DISTRIBUTED_SYSTEM_ID) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), - Integer.valueOf(MIN_DISTRIBUTED_SYSTEM_ID)})); + .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), + Integer.valueOf(MIN_DISTRIBUTED_SYSTEM_ID)})); } } if (value > MAX_DISTRIBUTED_SYSTEM_ID) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), - Integer.valueOf(MAX_DISTRIBUTED_SYSTEM_ID)})); + .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), + Integer.valueOf(MAX_DISTRIBUTED_SYSTEM_ID)})); } return value; } @@ -241,7 +242,7 @@ protected String checkLocators(String value) { while (st.hasMoreTokens()) { String locator = st.nextToken(); StringBuffer locatorsb = new StringBuffer(); // string for this locator is accumulated in this - // buffer + // buffer int portIndex = locator.indexOf('['); if (portIndex < 1) { @@ -250,7 +251,7 @@ protected String checkLocators(String value) { if (portIndex < 1) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0_HOST_NAME_WAS_EMPTY - .toLocalizedString(value)); + .toLocalizedString(value)); } // starting in 5.1.0.4 we allow '@' as the bind-addr separator @@ -276,7 +277,7 @@ protected String checkLocators(String value) { } catch (UnknownHostException ex) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_UNKNOWN_LOCATOR_HOST_0 - .toLocalizedString(host)); + .toLocalizedString(host)); } locatorsb.append(host); @@ -290,7 +291,7 @@ protected String checkLocators(String value) { } catch (UnknownHostException ex) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_UNKNOWN_LOCATOR_BIND_ADDRESS_0 - .toLocalizedString(bindAddr)); + .toLocalizedString(bindAddr)); } if (bindAddr.indexOf(':') >= 0) { @@ -306,7 +307,7 @@ protected String checkLocators(String value) { if (locator.indexOf('[') >= 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0 - .toLocalizedString(value)); + .toLocalizedString(value)); } else { // Using host:port syntax @@ -323,7 +324,7 @@ protected String checkLocators(String value) { } else if (portVal < 1 || portVal > 65535) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0_THE_PORT_1_WAS_NOT_GREATER_THAN_ZERO_AND_LESS_THAN_65536 - .toLocalizedString(new Object[] {value, Integer.valueOf(portVal)})); + .toLocalizedString(new Object[] {value, Integer.valueOf(portVal)})); } } catch (NumberFormatException ex) { throw new IllegalArgumentException( @@ -359,32 +360,32 @@ protected FlowControlParams checkMcastFlowControl(FlowControlParams params) { if (value < MIN_FC_BYTE_ALLOWANCE) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_BYTEALLOWANCE_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MIN_FC_BYTE_ALLOWANCE)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MIN_FC_BYTE_ALLOWANCE)})); } float fvalue = params.getRechargeThreshold(); if (fvalue < MIN_FC_RECHARGE_THRESHOLD) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGETHRESHOLD_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), - new Float(MIN_FC_RECHARGE_THRESHOLD)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), + new Float(MIN_FC_RECHARGE_THRESHOLD)})); } else if (fvalue > MAX_FC_RECHARGE_THRESHOLD) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGETHRESHOLD_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), - new Float(MAX_FC_RECHARGE_THRESHOLD)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), + new Float(MAX_FC_RECHARGE_THRESHOLD)})); } value = params.getRechargeBlockMs(); if (value < MIN_FC_RECHARGE_BLOCK_MS) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGEBLOCKMS_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MIN_FC_RECHARGE_BLOCK_MS)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MIN_FC_RECHARGE_BLOCK_MS)})); } else if (value > MAX_FC_RECHARGE_BLOCK_MS) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGEBLOCKMS_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MAX_FC_RECHARGE_BLOCK_MS)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MAX_FC_RECHARGE_BLOCK_MS)})); } return params; } @@ -399,8 +400,8 @@ protected int[] checkMembershipPortRange(int[] value) { if (value[1] - value[0] < 2) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MEMBERSHIP_PORT_RANGE, value[0] + "-" + value[1], - Integer.valueOf(3)})); + .toLocalizedString(new Object[] {MEMBERSHIP_PORT_RANGE, value[0] + "-" + value[1], + Integer.valueOf(3)})); } return value; } @@ -425,7 +426,7 @@ protected String checkSecurityPeerAuthInit(String value) { String mcastInfo = MCAST_PORT + "[" + getMcastPort() + "]"; throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_2_MUST_BE_0_WHEN_SECURITY_IS_ENABLED - .toLocalizedString(new Object[] {SECURITY_PEER_AUTH_INIT, value, mcastInfo})); + .toLocalizedString(new Object[] {SECURITY_PEER_AUTH_INIT, value, mcastInfo})); } return value; } @@ -436,7 +437,7 @@ protected String checkSecurityPeerAuthenticator(String value) { String mcastInfo = MCAST_PORT + "[" + getMcastPort() + "]"; throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_2_MUST_BE_0_WHEN_SECURITY_IS_ENABLED - .toLocalizedString(new Object[] {SECURITY_PEER_AUTHENTICATOR, value, mcastInfo})); + .toLocalizedString(new Object[] {SECURITY_PEER_AUTHENTICATOR, value, mcastInfo})); } return value; } @@ -446,14 +447,14 @@ protected int checkSecurityLogLevel(int value) { if (value < MIN_LOG_LEVEL) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, - LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MIN_LOG_LEVEL)})); + .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, + LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MIN_LOG_LEVEL)})); } if (value > MAX_LOG_LEVEL) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, - LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MAX_LOG_LEVEL)})); + .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, + LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MAX_LOG_LEVEL)})); } return value; } @@ -465,7 +466,7 @@ protected String checkMemcachedProtocol(String protocol) { && !protocol.equalsIgnoreCase(GemFireMemcachedServer.Protocol.BINARY.name()))) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_MEMCACHED_PROTOCOL_MUST_BE_ASCII_OR_BINARY - .toLocalizedString()); + .toLocalizedString()); } return protocol; } @@ -479,7 +480,7 @@ protected String checkMemcachedBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_MEMCACHED_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -489,7 +490,7 @@ protected String checkRedisBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_REDIS_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -515,15 +516,15 @@ protected SecurableCommunicationChannel[] checkLegacySSLWhenSSLEnabledComponents default: throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_0_INVALID_TRY_1 - .toLocalizedString(new Object[] {value, - StringUtils - .join(new String[] {SecurableCommunicationChannel.ALL.getConstant(), - SecurableCommunicationChannel.CLUSTER.getConstant(), - SecurableCommunicationChannel.SERVER.getConstant(), - SecurableCommunicationChannel.GATEWAY.getConstant(), - SecurableCommunicationChannel.JMX.getConstant(), - SecurableCommunicationChannel.WEB.getConstant(), - SecurableCommunicationChannel.LOCATOR.getConstant()}, ",")})); + .toLocalizedString(new Object[] {value, + StringUtils + .join(new String[] {SecurableCommunicationChannel.ALL.getConstant(), + SecurableCommunicationChannel.CLUSTER.getConstant(), + SecurableCommunicationChannel.SERVER.getConstant(), + SecurableCommunicationChannel.GATEWAY.getConstant(), + SecurableCommunicationChannel.JMX.getConstant(), + SecurableCommunicationChannel.WEB.getConstant(), + SecurableCommunicationChannel.LOCATOR.getConstant()}, ",")})); } } if (value.length > 0) { @@ -531,7 +532,7 @@ protected SecurableCommunicationChannel[] checkLegacySSLWhenSSLEnabledComponents || getServerSSLEnabled() || getGatewaySSLEnabled()) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .toLocalizedString()); + .toLocalizedString()); } } return value; @@ -559,7 +560,7 @@ public void setAttributeObject(String attName, Object attValue, ConfigSource sou if (!validValueClass.isInstance(attValue)) { throw new InvalidValueException( LocalizedStrings.AbstractDistributionConfig_0_VALUE_1_MUST_BE_OF_TYPE_2 - .toLocalizedString(new Object[] {attName, attValue, validValueClass.getName()})); + .toLocalizedString(new Object[] {attName, attValue, validValueClass.getName()})); } } @@ -597,7 +598,7 @@ public void setAttributeObject(String attName, Object attValue, ConfigSource sou } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } Class[] pTypes = setter.getParameterTypes(); @@ -643,7 +644,7 @@ public Object getAttributeObject(String attName) { } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } try { @@ -712,7 +713,7 @@ public static Class _getAttributeType(String attName) { } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } return ca.type(); } @@ -724,23 +725,23 @@ public static Class _getAttributeType(String attName) { m.put(ACK_WAIT_THRESHOLD, LocalizedStrings.AbstractDistributionConfig_DEFAULT_ACK_WAIT_THRESHOLD_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ACK_WAIT_THRESHOLD), - Integer.valueOf(MIN_ACK_WAIT_THRESHOLD), Integer.valueOf(MIN_ACK_WAIT_THRESHOLD)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ACK_WAIT_THRESHOLD), + Integer.valueOf(MIN_ACK_WAIT_THRESHOLD), Integer.valueOf(MIN_ACK_WAIT_THRESHOLD)})); m.put(ARCHIVE_FILE_SIZE_LIMIT, LocalizedStrings.AbstractDistributionConfig_ARCHIVE_FILE_SIZE_LIMIT_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(ACK_SEVERE_ALERT_THRESHOLD, LocalizedStrings.AbstractDistributionConfig_ACK_SEVERE_ALERT_THRESHOLD_NAME - .toLocalizedString(new Object[] {ACK_WAIT_THRESHOLD, - Integer.valueOf(DEFAULT_ACK_SEVERE_ALERT_THRESHOLD), - Integer.valueOf(MIN_ACK_SEVERE_ALERT_THRESHOLD), - Integer.valueOf(MAX_ACK_SEVERE_ALERT_THRESHOLD)})); + .toLocalizedString(new Object[] {ACK_WAIT_THRESHOLD, + Integer.valueOf(DEFAULT_ACK_SEVERE_ALERT_THRESHOLD), + Integer.valueOf(MIN_ACK_SEVERE_ALERT_THRESHOLD), + Integer.valueOf(MAX_ACK_SEVERE_ALERT_THRESHOLD)})); m.put(ARCHIVE_DISK_SPACE_LIMIT, LocalizedStrings.AbstractDistributionConfig_ARCHIVE_DISK_SPACE_LIMIT_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(CACHE_XML_FILE, LocalizedStrings.AbstractDistributionConfig_CACHE_XML_FILE_NAME_0 .toLocalizedString(DEFAULT_CACHE_XML_FILE)); @@ -750,7 +751,7 @@ public static Class _getAttributeType(String attName) { m.put(ENABLE_TIME_STATISTICS, LocalizedStrings.AbstractDistributionConfig_ENABLE_TIME_STATISTICS_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(DEPLOY_WORKING_DIR, LocalizedStrings.AbstractDistributionConfig_DEPLOY_WORKING_DIR_0 .toLocalizedString(DEFAULT_DEPLOY_WORKING_DIR)); @@ -760,8 +761,8 @@ public static Class _getAttributeType(String attName) { m.put(LOG_LEVEL, LocalizedStrings.AbstractDistributionConfig_LOG_LEVEL_NAME_0_1 - .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), - LogWriterImpl.allowedLogLevels()})); + .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), + LogWriterImpl.allowedLogLevels()})); m.put(LOG_FILE_SIZE_LIMIT, LocalizedStrings.AbstractDistributionConfig_LOG_FILE_SIZE_LIMIT_NAME.toLocalizedString()); @@ -777,13 +778,13 @@ public static Class _getAttributeType(String attName) { m.put(TCP_PORT, LocalizedStrings.AbstractDistributionConfig_TCP_PORT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_TCP_PORT), - Integer.valueOf(MIN_TCP_PORT), Integer.valueOf(MAX_TCP_PORT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_TCP_PORT), + Integer.valueOf(MIN_TCP_PORT), Integer.valueOf(MAX_TCP_PORT)})); m.put(MCAST_PORT, LocalizedStrings.AbstractDistributionConfig_MCAST_PORT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_PORT), - Integer.valueOf(MIN_MCAST_PORT), Integer.valueOf(MAX_MCAST_PORT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_PORT), + Integer.valueOf(MIN_MCAST_PORT), Integer.valueOf(MAX_MCAST_PORT)})); m.put(MCAST_ADDRESS, LocalizedStrings.AbstractDistributionConfig_MCAST_ADDRESS_NAME_0_1.toLocalizedString( @@ -791,16 +792,16 @@ public static Class _getAttributeType(String attName) { m.put(MCAST_TTL, LocalizedStrings.AbstractDistributionConfig_MCAST_TTL_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_TTL), - Integer.valueOf(MIN_MCAST_TTL), Integer.valueOf(MAX_MCAST_TTL)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_TTL), + Integer.valueOf(MIN_MCAST_TTL), Integer.valueOf(MAX_MCAST_TTL)})); m.put(MCAST_SEND_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_MCAST_SEND_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_SEND_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_SEND_BUFFER_SIZE))); m.put(MCAST_RECV_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_MCAST_RECV_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_RECV_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_RECV_BUFFER_SIZE))); m.put(MCAST_FLOW_CONTROL, LocalizedStrings.AbstractDistributionConfig_MCAST_FLOW_CONTROL_NAME_0 .toLocalizedString(DEFAULT_MCAST_FLOW_CONTROL)); @@ -817,24 +818,24 @@ public static Class _getAttributeType(String attName) { m.put(UDP_SEND_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_SEND_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_UDP_SEND_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_UDP_SEND_BUFFER_SIZE))); m.put(UDP_RECV_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_RECV_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_UDP_RECV_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_UDP_RECV_BUFFER_SIZE))); m.put(UDP_FRAGMENT_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_FRAGMENT_SIZE_NAME_0 .toLocalizedString(Integer.valueOf(DEFAULT_UDP_FRAGMENT_SIZE))); m.put(SOCKET_LEASE_TIME, LocalizedStrings.AbstractDistributionConfig_SOCKET_LEASE_TIME_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_LEASE_TIME), - Integer.valueOf(MIN_SOCKET_LEASE_TIME), Integer.valueOf(MAX_SOCKET_LEASE_TIME)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_LEASE_TIME), + Integer.valueOf(MIN_SOCKET_LEASE_TIME), Integer.valueOf(MAX_SOCKET_LEASE_TIME)})); m.put(SOCKET_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_SOCKET_BUFFER_SIZE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_BUFFER_SIZE), - Integer.valueOf(MIN_SOCKET_BUFFER_SIZE), Integer.valueOf(MAX_SOCKET_BUFFER_SIZE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_BUFFER_SIZE), + Integer.valueOf(MIN_SOCKET_BUFFER_SIZE), Integer.valueOf(MAX_SOCKET_BUFFER_SIZE)})); m.put(CONSERVE_SOCKETS, LocalizedStrings.AbstractDistributionConfig_CONSERVE_SOCKETS_NAME_0 .toLocalizedString(Boolean.valueOf(DEFAULT_CONSERVE_SOCKETS))); @@ -847,7 +848,7 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 - .toLocalizedString(DEFAULT_BIND_ADDRESS)); + .toLocalizedString(DEFAULT_BIND_ADDRESS)); m.put(JMX_BEAN_INPUT_NAMES, LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0.toLocalizedString("")); @@ -858,17 +859,17 @@ public static Class _getAttributeType(String attName) { m.put(STATISTIC_ARCHIVE_FILE, LocalizedStrings.AbstractDistributionConfig_STATISTIC_ARCHIVE_FILE_NAME_0 - .toLocalizedString(DEFAULT_STATISTIC_ARCHIVE_FILE)); + .toLocalizedString(DEFAULT_STATISTIC_ARCHIVE_FILE)); m.put(STATISTIC_SAMPLE_RATE, LocalizedStrings.AbstractDistributionConfig_STATISTIC_SAMPLE_RATE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_STATISTIC_SAMPLE_RATE), - Integer.valueOf(MIN_STATISTIC_SAMPLE_RATE), - Integer.valueOf(MAX_STATISTIC_SAMPLE_RATE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_STATISTIC_SAMPLE_RATE), + Integer.valueOf(MIN_STATISTIC_SAMPLE_RATE), + Integer.valueOf(MAX_STATISTIC_SAMPLE_RATE)})); m.put(STATISTIC_SAMPLING_ENABLED, LocalizedStrings.AbstractDistributionConfig_STATISTIC_SAMPLING_ENABLED_NAME_0 - .toLocalizedString(Boolean.valueOf(DEFAULT_STATISTIC_SAMPLING_ENABLED))); + .toLocalizedString(Boolean.valueOf(DEFAULT_STATISTIC_SAMPLING_ENABLED))); m.put(SSL_CLUSTER_ALIAS, LocalizedStrings.AbstractDistributionConfig_CLUSTER_SSL_ALIAS_0 .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_ALIAS))); @@ -884,7 +885,7 @@ public static Class _getAttributeType(String attName) { m.put(CLUSTER_SSL_REQUIRE_AUTHENTICATION, LocalizedStrings.AbstractDistributionConfig_SSL_REQUIRE_AUTHENTICATION_NAME - .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_REQUIRE_AUTHENTICATION))); + .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_REQUIRE_AUTHENTICATION))); m.put(CLUSTER_SSL_KEYSTORE, "Location of the Java keystore file containing an distributed member's own certificate and private key."); @@ -903,29 +904,29 @@ public static Class _getAttributeType(String attName) { m.put(MAX_WAIT_TIME_RECONNECT, LocalizedStrings.AbstractDistributionConfig_MAX_WAIT_TIME_FOR_RECONNECT - .toLocalizedString()); + .toLocalizedString()); m.put(MAX_NUM_RECONNECT_TRIES, LocalizedStrings.AbstractDistributionConfig_MAX_NUM_RECONNECT_TRIES.toLocalizedString()); m.put(ASYNC_DISTRIBUTION_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_ASYNC_DISTRIBUTION_TIMEOUT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT), - Integer.valueOf(MIN_ASYNC_DISTRIBUTION_TIMEOUT), - Integer.valueOf(MAX_ASYNC_DISTRIBUTION_TIMEOUT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT), + Integer.valueOf(MIN_ASYNC_DISTRIBUTION_TIMEOUT), + Integer.valueOf(MAX_ASYNC_DISTRIBUTION_TIMEOUT)})); m.put(ASYNC_QUEUE_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_ASYNC_QUEUE_TIMEOUT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_QUEUE_TIMEOUT), - Integer.valueOf(MIN_ASYNC_QUEUE_TIMEOUT), - Integer.valueOf(MAX_ASYNC_QUEUE_TIMEOUT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_QUEUE_TIMEOUT), + Integer.valueOf(MIN_ASYNC_QUEUE_TIMEOUT), + Integer.valueOf(MAX_ASYNC_QUEUE_TIMEOUT)})); m.put(ASYNC_MAX_QUEUE_SIZE, LocalizedStrings.AbstractDistributionConfig_ASYNC_MAX_QUEUE_SIZE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_MAX_QUEUE_SIZE), - Integer.valueOf(MIN_ASYNC_MAX_QUEUE_SIZE), - Integer.valueOf(MAX_ASYNC_MAX_QUEUE_SIZE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_MAX_QUEUE_SIZE), + Integer.valueOf(MIN_ASYNC_MAX_QUEUE_SIZE), + Integer.valueOf(MAX_ASYNC_MAX_QUEUE_SIZE)})); m.put(START_LOCATOR, LocalizedStrings.AbstractDistributionConfig_START_LOCATOR_NAME.toLocalizedString()); @@ -938,11 +939,11 @@ public static Class _getAttributeType(String attName) { m.put(DURABLE_CLIENT_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_DURABLE_CLIENT_TIMEOUT_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_DURABLE_CLIENT_TIMEOUT))); + .toLocalizedString(Integer.valueOf(DEFAULT_DURABLE_CLIENT_TIMEOUT))); m.put(SECURITY_CLIENT_AUTH_INIT, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_AUTH_INIT_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTH_INIT)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTH_INIT)); m.put(ENABLE_NETWORK_PARTITION_DETECTION, "Whether network partitioning detection is enabled"); @@ -950,43 +951,43 @@ public static Class _getAttributeType(String attName) { m.put(SECURITY_CLIENT_AUTHENTICATOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_AUTHENTICATOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTHENTICATOR)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTHENTICATOR)); m.put(SECURITY_CLIENT_DHALGO, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_DHALGO_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_DHALGO)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_DHALGO)); m.put(SECURITY_UDP_DHALGO, LocalizedStrings.AbstractDistributionConfig_SECURITY_UDP_DHALGO_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_UDP_DHALGO)); + .toLocalizedString(DEFAULT_SECURITY_UDP_DHALGO)); m.put(SECURITY_PEER_AUTH_INIT, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_AUTH_INIT_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_PEER_AUTH_INIT)); + .toLocalizedString(DEFAULT_SECURITY_PEER_AUTH_INIT)); m.put(SECURITY_PEER_AUTHENTICATOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_AUTHENTICATOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_PEER_AUTHENTICATOR)); + .toLocalizedString(DEFAULT_SECURITY_PEER_AUTHENTICATOR)); m.put(SECURITY_CLIENT_ACCESSOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_ACCESSOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR)); m.put(SECURITY_CLIENT_ACCESSOR_PP, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_ACCESSOR_PP_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR_PP)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR_PP)); m.put(SECURITY_LOG_LEVEL, LocalizedStrings.AbstractDistributionConfig_SECURITY_LOG_LEVEL_NAME_0_1 - .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), - LogWriterImpl.allowedLogLevels()})); + .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), + LogWriterImpl.allowedLogLevels()})); m.put(SECURITY_LOG_FILE, LocalizedStrings.AbstractDistributionConfig_SECURITY_LOG_FILE_NAME_0 .toLocalizedString(DEFAULT_SECURITY_LOG_FILE)); m.put(SECURITY_PEER_VERIFY_MEMBER_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT))); + .toLocalizedString(Integer.valueOf(DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT))); m.put(SECURITY_PREFIX, LocalizedStrings.AbstractDistributionConfig_SECURITY_PREFIX_NAME.toLocalizedString()); @@ -996,13 +997,13 @@ public static Class _getAttributeType(String attName) { m.put(REMOVE_UNRESPONSIVE_CLIENT, LocalizedStrings.AbstractDistributionConfig_REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME_0 - .toLocalizedString(DEFAULT_REMOVE_UNRESPONSIVE_CLIENT)); + .toLocalizedString(DEFAULT_REMOVE_UNRESPONSIVE_CLIENT)); m.put(DELTA_PROPAGATION, "Whether delta propagation is enabled"); m.put(REMOTE_LOCATORS, LocalizedStrings.AbstractDistributionConfig_REMOTE_DISTRIBUTED_SYSTEMS_NAME_0 - .toLocalizedString(DEFAULT_REMOTE_LOCATORS)); + .toLocalizedString(DEFAULT_REMOTE_LOCATORS)); m.put(DISTRIBUTED_SYSTEM_ID, "An id that uniquely idenitifies this distributed system. " @@ -1050,7 +1051,7 @@ public static Class _getAttributeType(String attName) { m.put(JMX_MANAGER_PORT, "The port the jmx manager will listen on. Default is \"" + DEFAULT_JMX_MANAGER_PORT - + "\". Set to zero to disable GemFire's creation of a jmx listening port."); + + "\". Set to zero to disable GemFire's creation of a jmx listening port."); m.put(JMX_MANAGER_BIND_ADDRESS, "The address the jmx manager will listen on for remote connections. Default is \"\" which causes the jmx manager to listen on the host's default address. This property is ignored if jmx-manager-port is \"0\"."); m.put(JMX_MANAGER_HOSTNAME_FOR_CLIENTS, @@ -1081,12 +1082,12 @@ public static Class _getAttributeType(String attName) { "The password which client of GeodeRedisServer must use to authenticate themselves. The default is none and no authentication will be required."); m.put(ENABLE_CLUSTER_CONFIGURATION, LocalizedStrings.AbstractDistributionConfig_ENABLE_SHARED_CONFIGURATION - .toLocalizedString()); + .toLocalizedString()); m.put(USE_CLUSTER_CONFIGURATION, LocalizedStrings.AbstractDistributionConfig_USE_SHARED_CONFIGURATION.toLocalizedString()); m.put(LOAD_CLUSTER_CONFIGURATION_FROM_DIR, LocalizedStrings.AbstractDistributionConfig_LOAD_SHARED_CONFIGURATION_FROM_DIR - .toLocalizedString(ClusterConfigurationService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME)); + .toLocalizedString(ClusterConfigurationService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME)); m.put(CLUSTER_CONFIGURATION_DIR, LocalizedStrings.AbstractDistributionConfig_CLUSTER_CONFIGURATION_DIR.toLocalizedString()); m.put(SSL_SERVER_ALIAS, LocalizedStrings.AbstractDistributionConfig_SERVER_SSL_ALIAS_0 @@ -1253,7 +1254,7 @@ public static InetAddress _getDefaultMcastAddress() { // this should never happen throw new Error( LocalizedStrings.AbstractDistributionConfig_UNEXPECTED_PROBLEM_GETTING_INETADDRESS_0 - .toLocalizedString(ex), + .toLocalizedString(ex), ex); } } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index c6f888bc7ef1..f49fbdcb486c 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -17,16 +17,6 @@ import static org.apache.geode.distributed.ConfigurationProperties.*; -import org.apache.geode.distributed.ConfigurationProperties; -import org.apache.geode.distributed.DistributedSystem; -import org.apache.geode.internal.Config; -import org.apache.geode.internal.ConfigSource; -import org.apache.geode.internal.logging.InternalLogWriter; -import org.apache.geode.internal.logging.LogConfig; -import org.apache.geode.internal.security.SecurableCommunicationChannel; -import org.apache.geode.internal.tcp.Connection; -import org.apache.geode.memcached.GemFireMemcachedServer; - import java.io.File; import java.lang.reflect.Field; import java.lang.reflect.Method; @@ -38,6 +28,16 @@ import java.util.Map; import java.util.Properties; +import org.apache.geode.distributed.ConfigurationProperties; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.internal.Config; +import org.apache.geode.internal.ConfigSource; +import org.apache.geode.internal.logging.InternalLogWriter; +import org.apache.geode.internal.logging.LogConfig; +import org.apache.geode.internal.security.SecurableCommunicationChannel; +import org.apache.geode.internal.tcp.Connection; +import org.apache.geode.memcached.GemFireMemcachedServer; + /** * Provides accessor (and in some cases mutator) methods for the various GemFire distribution * configuration properties. The interface also provides constants for the names of properties and @@ -1640,3270 +1640,3270 @@ public interface DistributionConfig extends Config, LogConfig { int[] DEFAULT_MEMBERSHIP_PORT_RANGE = Boolean.getBoolean(RESTRICT_MEMBERSHIP_PORT_RANGE) ? new int[] {32769, 61000} : new int[] {1024, 65535}; - @ConfigAttributeGetter(name = MEMBERSHIP_PORT_RANGE) - int[] getMembershipPortRange(); - - @ConfigAttributeSetter(name = MEMBERSHIP_PORT_RANGE) - void setMembershipPortRange(int[] range); - - /** - * Returns the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - @ConfigAttributeGetter(name = CONSERVE_SOCKETS) - boolean getConserveSockets(); - - /** - * Sets the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property. - */ - @ConfigAttributeSetter(name = CONSERVE_SOCKETS) - void setConserveSockets(boolean newValue); - - /** - * The name of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - @ConfigAttribute(type = Boolean.class) - String CONSERVE_SOCKETS_NAME = CONSERVE_SOCKETS; - - /** - * The default value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - boolean DEFAULT_CONSERVE_SOCKETS = true; - - /** - * Returns the value of the {@link ConfigurationProperties#ROLES} property - */ - @ConfigAttributeGetter(name = ROLES) - String getRoles(); - - /** - * Sets the value of the {@link ConfigurationProperties#ROLES} property. - */ - @ConfigAttributeSetter(name = ROLES) - void setRoles(String roles); - - /** - * The name of the {@link ConfigurationProperties#ROLES} property - */ - @ConfigAttribute(type = String.class) - String ROLES_NAME = ROLES; - - /** - * The default value of the {@link ConfigurationProperties#ROLES} property - */ - String DEFAULT_ROLES = ""; - - /** - * The name of the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT} property - */ - @ConfigAttribute(type = Integer.class) - String MAX_WAIT_TIME_FOR_RECONNECT_NAME = MAX_WAIT_TIME_RECONNECT; - - /** - * Default value for {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, 60,000 milliseconds. - */ - int DEFAULT_MAX_WAIT_TIME_FOR_RECONNECT = 60000; - - /** - * Sets the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for - * reconnect. - */ - @ConfigAttributeSetter(name = MAX_WAIT_TIME_RECONNECT) - void setMaxWaitTimeForReconnect(int timeOut); - - /** - * Returns the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for - * reconnect. - */ - @ConfigAttributeGetter(name = MAX_WAIT_TIME_RECONNECT) - int getMaxWaitTimeForReconnect(); - - /** - * The name of the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES} property. - */ - @ConfigAttribute(type = Integer.class) - String MAX_NUM_RECONNECT_TRIES_NAME = MAX_NUM_RECONNECT_TRIES; - - /** - * Default value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - int DEFAULT_MAX_NUM_RECONNECT_TRIES = 3; - - /** - * Sets the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - @ConfigAttributeSetter(name = MAX_NUM_RECONNECT_TRIES) - void setMaxNumReconnectTries(int tries); - - /** - * Returns the value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - @ConfigAttributeGetter(name = MAX_NUM_RECONNECT_TRIES) - int getMaxNumReconnectTries(); - - // ------------------- Asynchronous Messaging Properties ------------------- - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = ASYNC_DISTRIBUTION_TIMEOUT) - int getAsyncDistributionTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = ASYNC_DISTRIBUTION_TIMEOUT) - void setAsyncDistributionTimeout(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 0. - */ - int DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT = 0; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 0. - */ - int MIN_ASYNC_DISTRIBUTION_TIMEOUT = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 60000. - */ - int MAX_ASYNC_DISTRIBUTION_TIMEOUT = 60000; - - /** - * The name of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_DISTRIBUTION_TIMEOUT, - max = MAX_ASYNC_DISTRIBUTION_TIMEOUT) - String ASYNC_DISTRIBUTION_TIMEOUT_NAME = ASYNC_DISTRIBUTION_TIMEOUT; - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = ASYNC_QUEUE_TIMEOUT) - int getAsyncQueueTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = ASYNC_QUEUE_TIMEOUT) - void setAsyncQueueTimeout(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 60000. - */ - int DEFAULT_ASYNC_QUEUE_TIMEOUT = 60000; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 0. - */ - int MIN_ASYNC_QUEUE_TIMEOUT = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is - * 86400000. - */ - int MAX_ASYNC_QUEUE_TIMEOUT = 86400000; - /** - * The name of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_QUEUE_TIMEOUT, - max = MAX_ASYNC_QUEUE_TIMEOUT) - String ASYNC_QUEUE_TIMEOUT_NAME = ASYNC_QUEUE_TIMEOUT; - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. - */ - @ConfigAttributeGetter(name = ASYNC_MAX_QUEUE_SIZE) - int getAsyncMaxQueueSize(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. - */ - @ConfigAttributeSetter(name = ASYNC_MAX_QUEUE_SIZE) - void setAsyncMaxQueueSize(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 8. - */ - int DEFAULT_ASYNC_MAX_QUEUE_SIZE = 8; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 0. - */ - int MIN_ASYNC_MAX_QUEUE_SIZE = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 1024. - */ - int MAX_ASYNC_MAX_QUEUE_SIZE = 1024; - - /** - * The name of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_MAX_QUEUE_SIZE, - max = MAX_ASYNC_MAX_QUEUE_SIZE) - String ASYNC_MAX_QUEUE_SIZE_NAME = ASYNC_MAX_QUEUE_SIZE; - /** - * @since GemFire 5.7 - */ - @ConfigAttribute(type = String.class) - String CLIENT_CONFLATION_PROP_NAME = CONFLATE_EVENTS; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_DEFAULT = "server"; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_ON = "true"; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_OFF = "false"; - - /** - * @since Geode 1.0 - */ - @ConfigAttribute(type = Boolean.class) - String DISTRIBUTED_TRANSACTIONS_NAME = DISTRIBUTED_TRANSACTIONS; - boolean DEFAULT_DISTRIBUTED_TRANSACTIONS = false; - - @ConfigAttributeGetter(name = DISTRIBUTED_TRANSACTIONS) - boolean getDistributedTransactions(); - - @ConfigAttributeSetter(name = DISTRIBUTED_TRANSACTIONS) - void setDistributedTransactions(boolean value); - - /** - * Returns the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. - * - * @since GemFire 5.7 - */ - @ConfigAttributeGetter(name = CONFLATE_EVENTS) - String getClientConflation(); - - /** - * Sets the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. - * - * @since GemFire 5.7 - */ - @ConfigAttributeSetter(name = CONFLATE_EVENTS) - void setClientConflation(String clientConflation); - // ------------------------------------------------------------------------- - - /** - * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. - */ - @ConfigAttributeGetter(name = DURABLE_CLIENT_ID) - String getDurableClientId(); - - /** - * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. - */ - @ConfigAttributeSetter(name = DURABLE_CLIENT_ID) - void setDurableClientId(String durableClientId); - - /** - * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property - */ - @ConfigAttribute(type = String.class) - String DURABLE_CLIENT_ID_NAME = DURABLE_CLIENT_ID; - - /** - * The default {@link ConfigurationProperties#DURABLE_CLIENT_ID}. - *

- * Actual value of this constant is "". - */ - String DEFAULT_DURABLE_CLIENT_ID = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = DURABLE_CLIENT_TIMEOUT) - int getDurableClientTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = DURABLE_CLIENT_TIMEOUT) - void setDurableClientTimeout(int durableClientTimeout); - - /** - * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class) - String DURABLE_CLIENT_TIMEOUT_NAME = DURABLE_CLIENT_TIMEOUT; - - /** - * The default {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} in seconds. - *

- * Actual value of this constant is "300". - */ - int DEFAULT_DURABLE_CLIENT_TIMEOUT = 300; - - /** - * Returns user module name for client authentication initializer in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTH_INIT) - String getSecurityClientAuthInit(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTH_INIT) - void setSecurityClientAuthInit(String attValue); - - /** - * The name of user defined method name for - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_AUTH_INIT_NAME = SECURITY_CLIENT_AUTH_INIT; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} method name. - *

- * Actual value of this is in format "jar file:module name". - */ - String DEFAULT_SECURITY_CLIENT_AUTH_INIT = ""; - - /** - * Returns user module name authenticating client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTHENTICATOR) - String getSecurityClientAuthenticator(); - - /** - * Sets the user defined method name in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTHENTICATOR) - void setSecurityClientAuthenticator(String attValue); - - /** - * The name of factory method for {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_AUTHENTICATOR_NAME = SECURITY_CLIENT_AUTHENTICATOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_AUTHENTICATOR = ""; - - /** - * Returns user defined class name authenticating client credentials in - * {@link ConfigurationProperties#SECURITY_MANAGER} - */ - @ConfigAttributeGetter(name = SECURITY_MANAGER) - String getSecurityManager(); - - /** - * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_MANAGER} property. - */ - @ConfigAttributeSetter(name = SECURITY_MANAGER) - void setSecurityManager(String attValue); - - /** - * The name of class for {@link ConfigurationProperties#SECURITY_MANAGER} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_MANAGER_NAME = SECURITY_MANAGER; - - /** - * The default {@link ConfigurationProperties#SECURITY_MANAGER} class name. - *

- * Actual value of this is fully qualified "class name". - */ - String DEFAULT_SECURITY_MANAGER = ""; - - /** - * Returns user defined post processor name in - * {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} - */ - @ConfigAttributeGetter(name = SECURITY_POST_PROCESSOR) - String getPostProcessor(); - - /** - * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_POST_PROCESSOR) - void setPostProcessor(String attValue); - - /** - * The name of class for {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_POST_PROCESSOR_NAME = SECURITY_POST_PROCESSOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} class name. - *

- * Actual value of this is fully qualified "class name". - */ - String DEFAULT_SECURITY_POST_PROCESSOR = ""; - - /** - * Returns name of algorithm to use for Diffie-Hellman key exchange - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_DHALGO) - String getSecurityClientDHAlgo(); - - /** - * Set the name of algorithm to use for Diffie-Hellman key exchange - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_DHALGO) - void setSecurityClientDHAlgo(String attValue); - - /** - * Returns name of algorithm to use for Diffie-Hellman key exchange - * "security-udp-dhalgo" - */ - @ConfigAttributeGetter(name = SECURITY_UDP_DHALGO) - String getSecurityUDPDHAlgo(); - - /** - * Set the name of algorithm to use for Diffie-Hellman key exchange - * "security-udp-dhalgo" property. - */ - @ConfigAttributeSetter(name = SECURITY_UDP_DHALGO) - void setSecurityUDPDHAlgo(String attValue); - - /** - * The name of the Diffie-Hellman symmetric algorithm - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_DHALGO_NAME = SECURITY_CLIENT_DHALGO; - - /** - * The name of the Diffie-Hellman symmetric algorithm "security-client-dhalgo" property. - */ - @ConfigAttribute(type = String.class) - String SECURITY_UDP_DHALGO_NAME = SECURITY_UDP_DHALGO; + @ConfigAttributeGetter(name = MEMBERSHIP_PORT_RANGE) + int[] getMembershipPortRange(); + + @ConfigAttributeSetter(name = MEMBERSHIP_PORT_RANGE) + void setMembershipPortRange(int[] range); + + /** + * Returns the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + @ConfigAttributeGetter(name = CONSERVE_SOCKETS) + boolean getConserveSockets(); + + /** + * Sets the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property. + */ + @ConfigAttributeSetter(name = CONSERVE_SOCKETS) + void setConserveSockets(boolean newValue); + + /** + * The name of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + @ConfigAttribute(type = Boolean.class) + String CONSERVE_SOCKETS_NAME = CONSERVE_SOCKETS; + + /** + * The default value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + boolean DEFAULT_CONSERVE_SOCKETS = true; + + /** + * Returns the value of the {@link ConfigurationProperties#ROLES} property + */ + @ConfigAttributeGetter(name = ROLES) + String getRoles(); + + /** + * Sets the value of the {@link ConfigurationProperties#ROLES} property. + */ + @ConfigAttributeSetter(name = ROLES) + void setRoles(String roles); + + /** + * The name of the {@link ConfigurationProperties#ROLES} property + */ + @ConfigAttribute(type = String.class) + String ROLES_NAME = ROLES; + + /** + * The default value of the {@link ConfigurationProperties#ROLES} property + */ + String DEFAULT_ROLES = ""; + + /** + * The name of the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT} property + */ + @ConfigAttribute(type = Integer.class) + String MAX_WAIT_TIME_FOR_RECONNECT_NAME = MAX_WAIT_TIME_RECONNECT; + + /** + * Default value for {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, 60,000 milliseconds. + */ + int DEFAULT_MAX_WAIT_TIME_FOR_RECONNECT = 60000; + + /** + * Sets the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for + * reconnect. + */ + @ConfigAttributeSetter(name = MAX_WAIT_TIME_RECONNECT) + void setMaxWaitTimeForReconnect(int timeOut); + + /** + * Returns the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for + * reconnect. + */ + @ConfigAttributeGetter(name = MAX_WAIT_TIME_RECONNECT) + int getMaxWaitTimeForReconnect(); + + /** + * The name of the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES} property. + */ + @ConfigAttribute(type = Integer.class) + String MAX_NUM_RECONNECT_TRIES_NAME = MAX_NUM_RECONNECT_TRIES; + + /** + * Default value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + int DEFAULT_MAX_NUM_RECONNECT_TRIES = 3; + + /** + * Sets the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + @ConfigAttributeSetter(name = MAX_NUM_RECONNECT_TRIES) + void setMaxNumReconnectTries(int tries); + + /** + * Returns the value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + @ConfigAttributeGetter(name = MAX_NUM_RECONNECT_TRIES) + int getMaxNumReconnectTries(); + + // ------------------- Asynchronous Messaging Properties ------------------- + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = ASYNC_DISTRIBUTION_TIMEOUT) + int getAsyncDistributionTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = ASYNC_DISTRIBUTION_TIMEOUT) + void setAsyncDistributionTimeout(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 0. + */ + int DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT = 0; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 0. + */ + int MIN_ASYNC_DISTRIBUTION_TIMEOUT = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 60000. + */ + int MAX_ASYNC_DISTRIBUTION_TIMEOUT = 60000; + + /** + * The name of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_DISTRIBUTION_TIMEOUT, + max = MAX_ASYNC_DISTRIBUTION_TIMEOUT) + String ASYNC_DISTRIBUTION_TIMEOUT_NAME = ASYNC_DISTRIBUTION_TIMEOUT; + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = ASYNC_QUEUE_TIMEOUT) + int getAsyncQueueTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = ASYNC_QUEUE_TIMEOUT) + void setAsyncQueueTimeout(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 60000. + */ + int DEFAULT_ASYNC_QUEUE_TIMEOUT = 60000; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 0. + */ + int MIN_ASYNC_QUEUE_TIMEOUT = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is + * 86400000. + */ + int MAX_ASYNC_QUEUE_TIMEOUT = 86400000; + /** + * The name of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_QUEUE_TIMEOUT, + max = MAX_ASYNC_QUEUE_TIMEOUT) + String ASYNC_QUEUE_TIMEOUT_NAME = ASYNC_QUEUE_TIMEOUT; + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. + */ + @ConfigAttributeGetter(name = ASYNC_MAX_QUEUE_SIZE) + int getAsyncMaxQueueSize(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. + */ + @ConfigAttributeSetter(name = ASYNC_MAX_QUEUE_SIZE) + void setAsyncMaxQueueSize(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 8. + */ + int DEFAULT_ASYNC_MAX_QUEUE_SIZE = 8; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 0. + */ + int MIN_ASYNC_MAX_QUEUE_SIZE = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 1024. + */ + int MAX_ASYNC_MAX_QUEUE_SIZE = 1024; + + /** + * The name of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_MAX_QUEUE_SIZE, + max = MAX_ASYNC_MAX_QUEUE_SIZE) + String ASYNC_MAX_QUEUE_SIZE_NAME = ASYNC_MAX_QUEUE_SIZE; + /** + * @since GemFire 5.7 + */ + @ConfigAttribute(type = String.class) + String CLIENT_CONFLATION_PROP_NAME = CONFLATE_EVENTS; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_DEFAULT = "server"; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_ON = "true"; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_OFF = "false"; + + /** + * @since Geode 1.0 + */ + @ConfigAttribute(type = Boolean.class) + String DISTRIBUTED_TRANSACTIONS_NAME = DISTRIBUTED_TRANSACTIONS; + boolean DEFAULT_DISTRIBUTED_TRANSACTIONS = false; + + @ConfigAttributeGetter(name = DISTRIBUTED_TRANSACTIONS) + boolean getDistributedTransactions(); + + @ConfigAttributeSetter(name = DISTRIBUTED_TRANSACTIONS) + void setDistributedTransactions(boolean value); + + /** + * Returns the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. + * + * @since GemFire 5.7 + */ + @ConfigAttributeGetter(name = CONFLATE_EVENTS) + String getClientConflation(); + + /** + * Sets the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. + * + * @since GemFire 5.7 + */ + @ConfigAttributeSetter(name = CONFLATE_EVENTS) + void setClientConflation(String clientConflation); + // ------------------------------------------------------------------------- + + /** + * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. + */ + @ConfigAttributeGetter(name = DURABLE_CLIENT_ID) + String getDurableClientId(); + + /** + * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. + */ + @ConfigAttributeSetter(name = DURABLE_CLIENT_ID) + void setDurableClientId(String durableClientId); + + /** + * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property + */ + @ConfigAttribute(type = String.class) + String DURABLE_CLIENT_ID_NAME = DURABLE_CLIENT_ID; + + /** + * The default {@link ConfigurationProperties#DURABLE_CLIENT_ID}. + *

+ * Actual value of this constant is "". + */ + String DEFAULT_DURABLE_CLIENT_ID = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = DURABLE_CLIENT_TIMEOUT) + int getDurableClientTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = DURABLE_CLIENT_TIMEOUT) + void setDurableClientTimeout(int durableClientTimeout); + + /** + * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class) + String DURABLE_CLIENT_TIMEOUT_NAME = DURABLE_CLIENT_TIMEOUT; + + /** + * The default {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} in seconds. + *

+ * Actual value of this constant is "300". + */ + int DEFAULT_DURABLE_CLIENT_TIMEOUT = 300; + + /** + * Returns user module name for client authentication initializer in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTH_INIT) + String getSecurityClientAuthInit(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTH_INIT) + void setSecurityClientAuthInit(String attValue); + + /** + * The name of user defined method name for + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_AUTH_INIT_NAME = SECURITY_CLIENT_AUTH_INIT; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} method name. + *

+ * Actual value of this is in format "jar file:module name". + */ + String DEFAULT_SECURITY_CLIENT_AUTH_INIT = ""; + + /** + * Returns user module name authenticating client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTHENTICATOR) + String getSecurityClientAuthenticator(); + + /** + * Sets the user defined method name in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTHENTICATOR) + void setSecurityClientAuthenticator(String attValue); + + /** + * The name of factory method for {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_AUTHENTICATOR_NAME = SECURITY_CLIENT_AUTHENTICATOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_AUTHENTICATOR = ""; + + /** + * Returns user defined class name authenticating client credentials in + * {@link ConfigurationProperties#SECURITY_MANAGER} + */ + @ConfigAttributeGetter(name = SECURITY_MANAGER) + String getSecurityManager(); + + /** + * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_MANAGER} property. + */ + @ConfigAttributeSetter(name = SECURITY_MANAGER) + void setSecurityManager(String attValue); + + /** + * The name of class for {@link ConfigurationProperties#SECURITY_MANAGER} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_MANAGER_NAME = SECURITY_MANAGER; + + /** + * The default {@link ConfigurationProperties#SECURITY_MANAGER} class name. + *

+ * Actual value of this is fully qualified "class name". + */ + String DEFAULT_SECURITY_MANAGER = ""; + + /** + * Returns user defined post processor name in + * {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} + */ + @ConfigAttributeGetter(name = SECURITY_POST_PROCESSOR) + String getPostProcessor(); + + /** + * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_POST_PROCESSOR) + void setPostProcessor(String attValue); + + /** + * The name of class for {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_POST_PROCESSOR_NAME = SECURITY_POST_PROCESSOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} class name. + *

+ * Actual value of this is fully qualified "class name". + */ + String DEFAULT_SECURITY_POST_PROCESSOR = ""; + + /** + * Returns name of algorithm to use for Diffie-Hellman key exchange + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_DHALGO) + String getSecurityClientDHAlgo(); + + /** + * Set the name of algorithm to use for Diffie-Hellman key exchange + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_DHALGO) + void setSecurityClientDHAlgo(String attValue); + + /** + * Returns name of algorithm to use for Diffie-Hellman key exchange + * "security-udp-dhalgo" + */ + @ConfigAttributeGetter(name = SECURITY_UDP_DHALGO) + String getSecurityUDPDHAlgo(); + + /** + * Set the name of algorithm to use for Diffie-Hellman key exchange + * "security-udp-dhalgo" property. + */ + @ConfigAttributeSetter(name = SECURITY_UDP_DHALGO) + void setSecurityUDPDHAlgo(String attValue); + + /** + * The name of the Diffie-Hellman symmetric algorithm + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_DHALGO_NAME = SECURITY_CLIENT_DHALGO; + + /** + * The name of the Diffie-Hellman symmetric algorithm "security-client-dhalgo" property. + */ + @ConfigAttribute(type = String.class) + String SECURITY_UDP_DHALGO_NAME = SECURITY_UDP_DHALGO; + + /** + * The default Diffie-Hellman symmetric algorithm name. + *

+ * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", + * "DESede", "AES", "Blowfish". + */ + String DEFAULT_SECURITY_CLIENT_DHALGO = ""; + + /** + * The default Diffie-Hellman symmetric algorithm name. + *

+ * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", + * "DESede", "AES", "Blowfish". + */ + String DEFAULT_SECURITY_UDP_DHALGO = ""; + + /** + * Returns user defined method name for peer authentication initializer in + * {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} + */ + @ConfigAttributeGetter(name = SECURITY_PEER_AUTH_INIT) + String getSecurityPeerAuthInit(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property. + */ + @ConfigAttributeSetter(name = SECURITY_PEER_AUTH_INIT) + void setSecurityPeerAuthInit(String attValue); + + /** + * The name of user module for {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_PEER_AUTH_INIT_NAME = SECURITY_PEER_AUTH_INIT; + + /** + * The default {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_PEER_AUTH_INIT = ""; + + /** + * Returns user defined method name authenticating peer's credentials in + * {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + */ + @ConfigAttributeGetter(name = SECURITY_PEER_AUTHENTICATOR) + String getSecurityPeerAuthenticator(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_PEER_AUTHENTICATOR) + void setSecurityPeerAuthenticator(String attValue); + + /** + * The name of user defined method for {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_PEER_AUTHENTICATOR_NAME = SECURITY_PEER_AUTHENTICATOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} method. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_PEER_AUTHENTICATOR = ""; + + /** + * Returns user module name authorizing client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR) + String getSecurityClientAccessor(); + + /** + * Sets the user defined method name in {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR) + void setSecurityClientAccessor(String attValue); + + /** + * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_ACCESSOR_NAME = SECURITY_CLIENT_ACCESSOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_ACCESSOR = ""; + + /** + * Returns user module name authorizing client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR_PP) + String getSecurityClientAccessorPP(); + + /** + * Sets the user defined method name in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR_PP) + void setSecurityClientAccessorPP(String attValue); + + /** + * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_ACCESSOR_PP_NAME = SECURITY_CLIENT_ACCESSOR_PP; + + /** + * The default client post-operation {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + * method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_ACCESSOR_PP = ""; + + /** + * Get the current log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. + * + * @return the current security log-level + */ + @ConfigAttributeGetter(name = SECURITY_LOG_LEVEL) + int getSecurityLogLevel(); + + /** + * Set the log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. + * + * @param level the new security log-level + */ + @ConfigAttributeSetter(name = SECURITY_LOG_LEVEL) + void setSecurityLogLevel(int level); + + /** + * The name of {@link ConfigurationProperties#SECURITY_LOG_LEVEL} property that sets the log-level + * for security logger obtained using {@link DistributedSystem#getSecurityLogWriter()} + */ + // type is String because the config file "config", "debug", "fine" etc, but the setter getter + // accepts int + @ConfigAttribute(type = String.class) + String SECURITY_LOG_LEVEL_NAME = SECURITY_LOG_LEVEL; + + /** + * Returns the value of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property + * + * @return null if logging information goes to standard out + */ + @ConfigAttributeGetter(name = SECURITY_LOG_FILE) + File getSecurityLogFile(); + + /** + * Sets the system's {@link ConfigurationProperties#SECURITY_LOG_FILE} containing security related + * messages. + *

+ * Non-absolute log files are relative to the system directory. + *

+ * The security log file can not be changed while the system is running. + * + * @throws IllegalArgumentException if the specified value is not acceptable. + * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. + * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when + * writing to the system's configuration file. + */ + @ConfigAttributeSetter(name = SECURITY_LOG_FILE) + void setSecurityLogFile(File value); + + /** + * The name of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property. This property is + * the path of the file where security related messages are logged. + */ + @ConfigAttribute(type = File.class) + String SECURITY_LOG_FILE_NAME = SECURITY_LOG_FILE; + + /** + * The default {@link ConfigurationProperties#SECURITY_LOG_FILE}. + *

+ * * + *

+ * Actual value of this constant is "" which directs security log messages to the + * same place as the system log file. + */ + File DEFAULT_SECURITY_LOG_FILE = new File(""); + + /** + * Get timeout for peer membership check when security is enabled. + * + * @return Timeout in milliseconds. + */ + @ConfigAttributeGetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) + int getSecurityPeerMembershipTimeout(); + + /** + * Set timeout for peer membership check when security is enabled. The timeout must be less than + * peer handshake timeout. + * + * @param attValue + */ + @ConfigAttributeSetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) + void setSecurityPeerMembershipTimeout(int attValue); + + /** + * The default peer membership check timeout is 1 second. + */ + int DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 1000; + + /** + * Max membership timeout must be less than max peer handshake timeout. Currently this is set to + * default handshake timeout of 60 seconds. + */ + int MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 60000; + + /** + * The name of the peer membership check timeout property + */ + @ConfigAttribute(type = Integer.class, min = 0, max = MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT) + String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT; + + /** + * Returns all properties starting with {@link ConfigurationProperties#SECURITY_PREFIX} + */ + Properties getSecurityProps(); + + /** + * Returns the value of security property {@link ConfigurationProperties#SECURITY_PREFIX} for an + * exact attribute name match. + */ + String getSecurity(String attName); + + /** + * Sets the value of the {@link ConfigurationProperties#SECURITY_PREFIX} property. + */ + void setSecurity(String attName, String attValue); + + String SECURITY_PREFIX_NAME = SECURITY_PREFIX; + + + /** + * The static String definition of the cluster ssl prefix "cluster-ssl" used in conjunction + * with other cluster-ssl-* properties property + *

+ * Description: The cluster-ssl property prefix + */ + @Deprecated + String CLUSTER_SSL_PREFIX = "cluster-ssl"; + + /** + * For the "custom-" prefixed properties + */ + String USERDEFINED_PREFIX_NAME = "custom-"; + + /** + * For ssl keystore and trust store properties + */ + String SSL_SYSTEM_PROPS_NAME = "javax.net.ssl"; + + String KEY_STORE_TYPE_NAME = ".keyStoreType"; + String KEY_STORE_NAME = ".keyStore"; + String KEY_STORE_PASSWORD_NAME = ".keyStorePassword"; + String TRUST_STORE_NAME = ".trustStore"; + String TRUST_STORE_PASSWORD_NAME = ".trustStorePassword"; + + /** + * Suffix for ssl keystore and trust store properties for JMX + */ + String JMX_SSL_PROPS_SUFFIX = "-jmx"; + + /** + * For security properties starting with sysprop in gfsecurity.properties file + */ + String SYS_PROP_NAME = "sysprop-"; + /** + * The property decides whether to remove unresponsive client from the server. + */ + @ConfigAttribute(type = Boolean.class) + String REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME = REMOVE_UNRESPONSIVE_CLIENT; + + /** + * The default value of remove unresponsive client is false. + */ + boolean DEFAULT_REMOVE_UNRESPONSIVE_CLIENT = false; + + /** + * Returns the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. + * + * @since GemFire 6.0 + */ + @ConfigAttributeGetter(name = REMOVE_UNRESPONSIVE_CLIENT) + boolean getRemoveUnresponsiveClient(); + + /** + * Sets the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. + * + * @since GemFire 6.0 + */ + @ConfigAttributeSetter(name = REMOVE_UNRESPONSIVE_CLIENT) + void setRemoveUnresponsiveClient(boolean value); + + /** + * @since GemFire 6.3 + */ + @ConfigAttribute(type = Boolean.class) + String DELTA_PROPAGATION_PROP_NAME = DELTA_PROPAGATION; + + boolean DEFAULT_DELTA_PROPAGATION = true; + + /** + * Returns the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. + * + * @since GemFire 6.3 + */ + @ConfigAttributeGetter(name = DELTA_PROPAGATION) + boolean getDeltaPropagation(); + + /** + * Sets the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. + * + * @since GemFire 6.3 + */ + @ConfigAttributeSetter(name = DELTA_PROPAGATION) + void setDeltaPropagation(boolean value); + + int MIN_DISTRIBUTED_SYSTEM_ID = -1; + int MAX_DISTRIBUTED_SYSTEM_ID = 255; + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = Integer.class) + String DISTRIBUTED_SYSTEM_ID_NAME = DISTRIBUTED_SYSTEM_ID; + int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1; + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeSetter(name = DISTRIBUTED_SYSTEM_ID) + void setDistributedSystemId(int distributedSystemId); + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeGetter(name = DISTRIBUTED_SYSTEM_ID) + int getDistributedSystemId(); + + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = String.class) + String REDUNDANCY_ZONE_NAME = REDUNDANCY_ZONE; + String DEFAULT_REDUNDANCY_ZONE = ""; + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeSetter(name = REDUNDANCY_ZONE) + void setRedundancyZone(String redundancyZone); + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeGetter(name = REDUNDANCY_ZONE) + String getRedundancyZone(); + + /** + * @since GemFire 6.6.2 + */ + void setSSLProperty(String attName, String attValue); + + /** + * @since GemFire 6.6.2 + */ + Properties getSSLProperties(); + + Properties getClusterSSLProperties(); + + /** + * @since GemFire 8.0 + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + Properties getJmxSSLProperties(); + + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = Boolean.class) + String ENFORCE_UNIQUE_HOST_NAME = ENFORCE_UNIQUE_HOST; + /** + * Using the system property to set the default here to retain backwards compatibility with + * customers that are already using this system property. + */ + boolean DEFAULT_ENFORCE_UNIQUE_HOST = + Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "EnforceUniqueHostStorageAllocation"); + + @ConfigAttributeSetter(name = ENFORCE_UNIQUE_HOST) + void setEnforceUniqueHost(boolean enforceUniqueHost); + + @ConfigAttributeGetter(name = ENFORCE_UNIQUE_HOST) + boolean getEnforceUniqueHost(); + + Properties getUserDefinedProps(); + + /** + * Returns the value of the {@link ConfigurationProperties#GROUPS} property + *

+ * The default value is: {@link #DEFAULT_GROUPS}. + * + * @return the value of the property + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = GROUPS) + String getGroups(); + + /** + * Sets the {@link ConfigurationProperties#GROUPS} property. + *

+ * The groups can not be changed while the system is running. + * + * @throws IllegalArgumentException if the specified value is not acceptable. + * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. + * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when + * writing to the system's configuration file. + * @since GemFire 7.0 + */ + @ConfigAttributeSetter(name = GROUPS) + void setGroups(String value); + + /** + * The name of the {@link ConfigurationProperties#GROUPS} property + * + * @since GemFire 7.0 + */ + @ConfigAttribute(type = String.class) + String GROUPS_NAME = GROUPS; + /** + * The default {@link ConfigurationProperties#GROUPS}. + *

+ * Actual value of this constant is "". + * + * @since GemFire 7.0 + */ + String DEFAULT_GROUPS = ""; + + /** + * Any cleanup required before closing the distributed system + */ + void close(); + + @ConfigAttributeSetter(name = REMOTE_LOCATORS) + void setRemoteLocators(String locators); + + @ConfigAttributeGetter(name = REMOTE_LOCATORS) + String getRemoteLocators(); + + /** + * The name of the {@link ConfigurationProperties#REMOTE_LOCATORS} property + */ + @ConfigAttribute(type = String.class) + String REMOTE_LOCATORS_NAME = REMOTE_LOCATORS; + /** + * The default value of the {@link ConfigurationProperties#REMOTE_LOCATORS} property + */ + String DEFAULT_REMOTE_LOCATORS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER) + boolean getJmxManager(); + + @ConfigAttributeSetter(name = JMX_MANAGER) + void setJmxManager(boolean value); + + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_NAME = JMX_MANAGER; + boolean DEFAULT_JMX_MANAGER = false; + + @ConfigAttributeGetter(name = JMX_MANAGER_START) + boolean getJmxManagerStart(); + + @ConfigAttributeSetter(name = JMX_MANAGER_START) + void setJmxManagerStart(boolean value); + + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_START_NAME = JMX_MANAGER_START; + boolean DEFAULT_JMX_MANAGER_START = false; + + @ConfigAttributeGetter(name = JMX_MANAGER_PORT) + int getJmxManagerPort(); + + @ConfigAttributeSetter(name = JMX_MANAGER_PORT) + void setJmxManagerPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String JMX_MANAGER_PORT_NAME = JMX_MANAGER_PORT; + + int DEFAULT_JMX_MANAGER_PORT = 1099; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_ENABLED) + boolean getJmxManagerSSLEnabled(); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_JMX_MANAGER_SSL_ENABLED = false; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_SSL_ENABLED_NAME = JMX_MANAGER_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_ENABLED) + void setJmxManagerSSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = OFF_HEAP_MEMORY_SIZE) + String getOffHeapMemorySize(); + + /** + * Sets the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = OFF_HEAP_MEMORY_SIZE) + void setOffHeapMemorySize(String value); + + /** + * The name of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String OFF_HEAP_MEMORY_SIZE_NAME = OFF_HEAP_MEMORY_SIZE; + /** + * The default {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} value of "". + * + * @since Geode 1.0 + */ + String DEFAULT_OFF_HEAP_MEMORY_SIZE = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_PROTOCOLS) + String getJmxManagerSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_PROTOCOLS) + void setJmxManagerSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_PROTOCOLS_NAME = JMX_MANAGER_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_CIPHERS) + String getJmxManagerSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_CIPHERS) + void setJmxManagerSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_CIPHERS_NAME = JMX_MANAGER_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) + boolean getJmxManagerSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) + void setJmxManagerSSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION_NAME = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE) + String getJmxManagerSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE) + void setJmxManagerSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_NAME = JMX_MANAGER_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) + String getJmxManagerSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) + void setJmxManagerSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_TYPE_NAME = JMX_MANAGER_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) + String getJmxManagerSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) + void setJmxManagerSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * propery + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE) + String getJmxManagerSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE) + void setJmxManagerSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_TRUSTSTORE_NAME = JMX_MANAGER_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) + String getJmxManagerSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) + void setJmxManagerSSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD; + + @ConfigAttributeGetter(name = JMX_MANAGER_BIND_ADDRESS) + String getJmxManagerBindAddress(); + + @ConfigAttributeSetter(name = JMX_MANAGER_BIND_ADDRESS) + void setJmxManagerBindAddress(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_BIND_ADDRESS_NAME = JMX_MANAGER_BIND_ADDRESS; + String DEFAULT_JMX_MANAGER_BIND_ADDRESS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) + String getJmxManagerHostnameForClients(); + + @ConfigAttributeSetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) + void setJmxManagerHostnameForClients(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_HOSTNAME_FOR_CLIENTS_NAME = JMX_MANAGER_HOSTNAME_FOR_CLIENTS; + String DEFAULT_JMX_MANAGER_HOSTNAME_FOR_CLIENTS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_PASSWORD_FILE) + String getJmxManagerPasswordFile(); + + @ConfigAttributeSetter(name = JMX_MANAGER_PASSWORD_FILE) + void setJmxManagerPasswordFile(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_PASSWORD_FILE_NAME = JMX_MANAGER_PASSWORD_FILE; + String DEFAULT_JMX_MANAGER_PASSWORD_FILE = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_ACCESS_FILE) + String getJmxManagerAccessFile(); + + @ConfigAttributeSetter(name = JMX_MANAGER_ACCESS_FILE) + void setJmxManagerAccessFile(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_ACCESS_FILE_NAME = JMX_MANAGER_ACCESS_FILE; + String DEFAULT_JMX_MANAGER_ACCESS_FILE = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property + * + * @deprecated as of 8.0 use {@link #getHttpServicePort()} instead. + */ + @ConfigAttributeGetter(name = JMX_MANAGER_HTTP_PORT) + int getJmxManagerHttpPort(); + + /** + * Set the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for jmx-manager. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for + * jmx-manager. + * + * @param value the port number for jmx-manager HTTP service + * + * @deprecated as of 8.0 use {@link #setHttpServicePort(int)} instead. + */ + @ConfigAttributeSetter(name = JMX_MANAGER_HTTP_PORT) + void setJmxManagerHttpPort(int value); + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + *

+ * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + * + * @deprecated as of 8.0 use {{@link #HTTP_SERVICE_PORT_NAME} instead. + */ + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String JMX_MANAGER_HTTP_PORT_NAME = JMX_MANAGER_HTTP_PORT; + + /** + * The default value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + * Current value is a 7070 + * + * @deprecated as of 8.0 use {@link #DEFAULT_HTTP_SERVICE_PORT} instead. + */ + int DEFAULT_JMX_MANAGER_HTTP_PORT = 7070; + + @ConfigAttributeGetter(name = JMX_MANAGER_UPDATE_RATE) + int getJmxManagerUpdateRate(); + + @ConfigAttributeSetter(name = JMX_MANAGER_UPDATE_RATE) + void setJmxManagerUpdateRate(int value); + + int DEFAULT_JMX_MANAGER_UPDATE_RATE = 2000; + int MIN_JMX_MANAGER_UPDATE_RATE = 1000; + int MAX_JMX_MANAGER_UPDATE_RATE = 60000 * 5; + @ConfigAttribute(type = Integer.class, min = MIN_JMX_MANAGER_UPDATE_RATE, + max = MAX_JMX_MANAGER_UPDATE_RATE) + String JMX_MANAGER_UPDATE_RATE_NAME = JMX_MANAGER_UPDATE_RATE; + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PORT} property + * + * @return the port on which GemFireMemcachedServer should be started + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_PORT) + int getMemcachedPort(); + + @ConfigAttributeSetter(name = MEMCACHED_PORT) + void setMemcachedPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String MEMCACHED_PORT_NAME = MEMCACHED_PORT; + int DEFAULT_MEMCACHED_PORT = 0; + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PROTOCOL} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PROTOCOL} property + * + * @return the protocol for GemFireMemcachedServer + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_PROTOCOL) + String getMemcachedProtocol(); + + @ConfigAttributeSetter(name = MEMCACHED_PROTOCOL) + void setMemcachedProtocol(String protocol); + + @ConfigAttribute(type = String.class) + String MEMCACHED_PROTOCOL_NAME = MEMCACHED_PROTOCOL; + String DEFAULT_MEMCACHED_PROTOCOL = GemFireMemcachedServer.Protocol.ASCII.name(); + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property + * + * @return the bind address for GemFireMemcachedServer + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_BIND_ADDRESS) + String getMemcachedBindAddress(); + + @ConfigAttributeSetter(name = MEMCACHED_BIND_ADDRESS) + void setMemcachedBindAddress(String bindAddress); + + @ConfigAttribute(type = String.class) + String MEMCACHED_BIND_ADDRESS_NAME = MEMCACHED_BIND_ADDRESS; + String DEFAULT_MEMCACHED_BIND_ADDRESS = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_PORT} property + * + * @return the port on which GeodeRedisServer should be started + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_PORT) + int getRedisPort(); + + @ConfigAttributeSetter(name = REDIS_PORT) + void setRedisPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String REDIS_PORT_NAME = REDIS_PORT; + int DEFAULT_REDIS_PORT = 0; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_BIND_ADDRESS} property + * + * @return the bind address for GemFireRedisServer + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_BIND_ADDRESS) + String getRedisBindAddress(); + + @ConfigAttributeSetter(name = REDIS_BIND_ADDRESS) + void setRedisBindAddress(String bindAddress); + + @ConfigAttribute(type = String.class) + String REDIS_BIND_ADDRESS_NAME = REDIS_BIND_ADDRESS; + String DEFAULT_REDIS_BIND_ADDRESS = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_PASSWORD} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_PASSWORD} property + * + * @return the authentication password for GemFireRedisServer + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_PASSWORD) + String getRedisPassword(); + + @ConfigAttributeSetter(name = REDIS_PASSWORD) + void setRedisPassword(String password); + + @ConfigAttribute(type = String.class) + String REDIS_PASSWORD_NAME = REDIS_PASSWORD; + String DEFAULT_REDIS_PASSWORD = ""; + + // Added for the HTTP service + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} property + * + * @return the HTTP service port + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = HTTP_SERVICE_PORT) + int getHttpServicePort(); + + /** + * Set the {@link ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP + * service. + * + * @param value the port number for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_PORT) + void setHttpServicePort(int value); + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property + *

+ * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} + * property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String HTTP_SERVICE_PORT_NAME = HTTP_SERVICE_PORT; + + /** + * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property. Current + * value is a 7070 + * + * @since GemFire 8.0 + */ + int DEFAULT_HTTP_SERVICE_PORT = 7070; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + * + * @return the bind-address for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = HTTP_SERVICE_BIND_ADDRESS) + String getHttpServiceBindAddress(); + + /** + * Set the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} + * for HTTP service. + * + * @param value the bind-address for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_BIND_ADDRESS) + void setHttpServiceBindAddress(String value); + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_BIND_ADDRESS_NAME = HTTP_SERVICE_BIND_ADDRESS; + + /** + * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property. + * Current value is an empty string "" + * + * @since GemFire 8.0 + */ + String DEFAULT_HTTP_SERVICE_BIND_ADDRESS = ""; + + // Added for HTTP Service SSL + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_ENABLED) + boolean getHttpServiceSSLEnabled(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_ENABLED) + void setHttpServiceSSLEnabled(boolean httpServiceSSLEnabled); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_HTTP_SERVICE_SSL_ENABLED = false; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String HTTP_SERVICE_SSL_ENABLED_NAME = HTTP_SERVICE_SSL_ENABLED; + + /** + * Returns the value of the + * {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) + boolean getHttpServiceSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) + void setHttpServiceSSLRequireAuthentication(boolean httpServiceSSLRequireAuthentication); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION = false; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION_NAME = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_PROTOCOLS) + String getHttpServiceSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_PROTOCOLS) + void setHttpServiceSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_PROTOCOLS = "any"; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_PROTOCOLS_NAME = HTTP_SERVICE_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_CIPHERS) + String getHttpServiceSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_CIPHERS) + void setHttpServiceSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_CIPHERS = "any"; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_CIPHERS_NAME = HTTP_SERVICE_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE) + String getHttpServiceSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE) + void setHttpServiceSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_NAME = HTTP_SERVICE_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) + String getHttpServiceSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) + void setHttpServiceSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) + String getHttpServiceSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) + void setHttpServiceSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_TYPE_NAME = HTTP_SERVICE_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) + String getHttpServiceSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) + void setHttpServiceSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property The name + * of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_TRUSTSTORE_NAME = HTTP_SERVICE_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) + String getHttpServiceSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) + void setHttpServiceSSLTrustStorePassword(String trustStorePassword); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD; + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getHttpServiceSSLProperties(); + + // Added for API REST + + /** + * Returns the value of the {@link ConfigurationProperties#START_DEV_REST_API} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} property + * + * @return the value of the property + * + * @since GemFire 8.0 + */ + + @ConfigAttributeGetter(name = START_DEV_REST_API) + boolean getStartDevRestApi(); + + /** + * Set the {@link ConfigurationProperties#START_DEV_REST_API} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} for + * HTTP service. + * + * @param value for the property + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = START_DEV_REST_API) + void setStartDevRestApi(boolean value); + + /** + * The name of the {@link ConfigurationProperties#START_DEV_REST_API} property + *

+ * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} + * property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Boolean.class) + String START_DEV_REST_API_NAME = START_DEV_REST_API; + + /** + * The default value of the {@link ConfigurationProperties#START_DEV_REST_API} property. Current + * value is "false" + * + * @since GemFire 8.0 + */ + boolean DEFAULT_START_DEV_REST_API = false; + + /** + * The name of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Boolean.class) + String DISABLE_AUTO_RECONNECT_NAME = DISABLE_AUTO_RECONNECT; + + /** + * The default value of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property + */ + boolean DEFAULT_DISABLE_AUTO_RECONNECT = false; + + /** + * Gets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} + */ + @ConfigAttributeGetter(name = DISABLE_AUTO_RECONNECT) + boolean getDisableAutoReconnect(); + + /** + * Sets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} + * + * @param value the new setting + */ + @ConfigAttributeSetter(name = DISABLE_AUTO_RECONNECT) + void setDisableAutoReconnect(boolean value); + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getServerSSLProperties(); + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_ENABLED) + boolean getServerSSLEnabled(); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_SERVER_SSL_ENABLED = false; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String SERVER_SSL_ENABLED_NAME = SERVER_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_ENABLED) + void setServerSSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_PROTOCOLS) + String getServerSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. + */ + @ConfigAttributeSetter(name = SERVER_SSL_PROTOCOLS) + void setServerSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_SERVER_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_PROTOCOLS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_PROTOCOLS_NAME = SERVER_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_CIPHERS) + String getServerSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_CIPHERS) + void setServerSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  + */ + @Deprecated + String DEFAULT_SERVER_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_CIPHERS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_CIPHERS_NAME = SERVER_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()}  + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) + boolean getServerSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)}  + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) + void setServerSSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_SERVER_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String SERVER_SSL_REQUIRE_AUTHENTICATION_NAME = SERVER_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE) + String getServerSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE) + void setServerSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_NAME = SERVER_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_TYPE) + String getServerSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_TYPE) + void setServerSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_TYPE_NAME = SERVER_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_PASSWORD) + String getServerSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_PASSWORD) + void setServerSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_PASSWORD_NAME = SERVER_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE) + String getServerSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setServerSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE) + void setServerSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + String DEFAULT_SERVER_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_TRUSTSTORE_NAME = SERVER_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) + String getServerSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) + void setServerSSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_SERVER_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_TRUSTSTORE_PASSWORD_NAME = SERVER_SSL_TRUSTSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_ENABLED) + boolean getGatewaySSLEnabled(); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_GATEWAY_SSL_ENABLED = false; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String GATEWAY_SSL_ENABLED_NAME = GATEWAY_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_ENABLED) + void setGatewaySSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_PROTOCOLS) + String getGatewaySSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_PROTOCOLS) + void setGatewaySSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + String DEFAULT_GATEWAY_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_PROTOCOLS_NAME = GATEWAY_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_CIPHERS) + String getGatewaySSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_CIPHERS) + void setGatewaySSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  + */ + String DEFAULT_GATEWAY_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_CIPHERS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_CIPHERS_NAME = GATEWAY_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) + boolean getGatewaySSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setGatewaySSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) + void setGatewaySSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_GATEWAY_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String GATEWAY_SSL_REQUIRE_AUTHENTICATION_NAME = GATEWAY_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE) + String getGatewaySSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE) + void setGatewaySSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_NAME = GATEWAY_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_TYPE) + String getGatewaySSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_TYPE) + void setGatewaySSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_TYPE_NAME = GATEWAY_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) + String getGatewaySSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) + void setGatewaySSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_PASSWORD_NAME = GATEWAY_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE) + String getGatewaySSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE) + void setGatewaySSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_TRUSTSTORE_NAME = GATEWAY_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) + String getGatewaySSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) + void setGatewaySSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_TRUSTSTORE_PASSWORD_NAME = GATEWAY_SSL_TRUSTSTORE_PASSWORD; + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getGatewaySSLProperties(); + + ConfigSource getConfigSource(String attName); + + /** + * The name of the {@link ConfigurationProperties#LOCK_MEMORY} property. Used to cause pages to be + * locked into memory, thereby preventing them from being swapped to disk. + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = Boolean.class) + String LOCK_MEMORY_NAME = LOCK_MEMORY; + boolean DEFAULT_LOCK_MEMORY = false; + + /** + * Gets the value of {@link ConfigurationProperties#LOCK_MEMORY} + *

+ * Gets the value of {@link org.apache.geode.distributed.ConfigurationProperties#LOCK_MEMORY} + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = LOCK_MEMORY) + boolean getLockMemory(); + + /** + * Set the value of {@link ConfigurationProperties#LOCK_MEMORY} + * + * @param value the new setting + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = LOCK_MEMORY) + void setLockMemory(boolean value); + + @ConfigAttribute(type = String.class) + String SECURITY_SHIRO_INIT_NAME = SECURITY_SHIRO_INIT; + + @ConfigAttributeSetter(name = SECURITY_SHIRO_INIT) + void setShiroInit(String value); + + @ConfigAttributeGetter(name = SECURITY_SHIRO_INIT) + String getShiroInit(); + + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_CLUSTER_ALIAS) + String getClusterSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_CLUSTER_ALIAS) + void setClusterSSLAlias(String alias); + + /** + * The Default Cluster SSL alias + * + * @since Geode 1.0 + */ + String DEFAULT_SSL_ALIAS = ""; + + /** + * The name of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String CLUSTER_SSL_ALIAS_NAME = SSL_CLUSTER_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_LOCATOR_ALIAS) + String getLocatorSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_LOCATOR_ALIAS) + void setLocatorSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String LOCATOR_SSL_ALIAS_NAME = SSL_LOCATOR_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_GATEWAY_ALIAS) + String getGatewaySSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_GATEWAY_ALIAS) + void setGatewaySSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_ALIAS_NAME = SSL_GATEWAY_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_WEB_ALIAS) + String getHTTPServiceSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_WEB_ALIAS) + void setHTTPServiceSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_ALIAS_NAME = SSL_WEB_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_JMX_ALIAS) + String getJMXSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_JMX_ALIAS) + void setJMXSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String JMX_SSL_ALIAS_NAME = SSL_JMX_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_SERVER_ALIAS) + String getServerSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_SERVER_ALIAS) + void setServerSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String SERVER_SSL_ALIAS_NAME = SSL_SERVER_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_ENABLED_COMPONENTS) + SecurableCommunicationChannel[] getSecurableCommunicationChannels(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_ENABLED_COMPONENTS) + void setSecurableCommunicationChannels(SecurableCommunicationChannel[] sslEnabledComponents); + + /** + * The name of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = SecurableCommunicationChannel[].class) + String SSL_ENABLED_COMPONENTS_NAME = SSL_ENABLED_COMPONENTS; + + /** + * The default ssl enabled components + * + * @since Geode 1.0 + */ + SecurableCommunicationChannel[] DEFAULT_SSL_ENABLED_COMPONENTS = + new SecurableCommunicationChannel[] {}; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. + */ + @ConfigAttributeGetter(name = SSL_PROTOCOLS) + String getSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. + */ + @ConfigAttributeSetter(name = SSL_PROTOCOLS) + void setSSLProtocols(String protocols); + + /** + * The name of the {@link ConfigurationProperties#SSL_PROTOCOLS} property + */ + @ConfigAttribute(type = String.class) + String SSL_PROTOCOLS_NAME = SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. + */ + @ConfigAttributeGetter(name = SSL_CIPHERS) + String getSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. + */ + @ConfigAttributeSetter(name = SSL_CIPHERS) + void setSSLCiphers(String ciphers); + + /** + * The name of the {@link ConfigurationProperties#SSL_CIPHERS} property + */ + @ConfigAttribute(type = String.class) + String SSL_CIPHERS_NAME = SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. + */ + @ConfigAttributeGetter(name = SSL_REQUIRE_AUTHENTICATION) + boolean getSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. + */ + @ConfigAttributeSetter(name = SSL_REQUIRE_AUTHENTICATION) + void setSSLRequireAuthentication(boolean enabled); + + /** + * The name of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property + */ + @ConfigAttribute(type = Boolean.class) + String SSL_REQUIRE_AUTHENTICATION_NAME = SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE) + String getSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE) + void setSSLKeyStore(String keyStore); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_NAME = SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE_TYPE) + String getSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE_TYPE) + void setSSLKeyStoreType(String keyStoreType); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_TYPE_NAME = SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE_PASSWORD) + String getSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE_PASSWORD) + void setSSLKeyStorePassword(String keyStorePassword); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_PASSWORD_NAME = SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. + */ + @ConfigAttributeGetter(name = SSL_TRUSTSTORE) + String getSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. + */ + @ConfigAttributeSetter(name = SSL_TRUSTSTORE) + void setSSLTrustStore(String trustStore); + + /** + * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property + */ + @ConfigAttribute(type = String.class) + String SSL_TRUSTSTORE_NAME = SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. + */ + @ConfigAttributeGetter(name = SSL_DEFAULT_ALIAS) + String getSSLDefaultAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. + */ + @ConfigAttributeSetter(name = SSL_DEFAULT_ALIAS) + void setSSLDefaultAlias(String sslDefaultAlias); + + /** + * The name of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property + */ + @ConfigAttribute(type = String.class) + String SSL_DEFAULT_ALIAS_NAME = SSL_DEFAULT_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. + */ + @ConfigAttributeGetter(name = SSL_TRUSTSTORE_PASSWORD) + String getSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. + */ + @ConfigAttributeSetter(name = SSL_TRUSTSTORE_PASSWORD) + void setSSLTrustStorePassword(String trustStorePassword); + + /** + * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property + */ + @ConfigAttribute(type = String.class) + String SSL_TRUSTSTORE_PASSWORD_NAME = SSL_TRUSTSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} + * property. + */ + @ConfigAttributeGetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) + boolean getSSLWebRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} + * property. + */ + @ConfigAttributeSetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) + void setSSLWebRequireAuthentication(boolean requiresAuthentication); + + /** + * The name of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} property + */ + @ConfigAttribute(type = Boolean.class) + String SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION_NAME = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION; + + /** + * The default value for http service ssl mutual authentication + */ + boolean DEFAULT_SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION = false; + + // *************** Initializers to gather all the annotations in this class + // ************************ + + Map attributes = new HashMap<>(); + Map setters = new HashMap<>(); + Map getters = new HashMap<>(); + String[] dcValidAttributeNames = init(); + + static String[] init() { + List atts = new ArrayList<>(); + for (Field field : DistributionConfig.class.getDeclaredFields()) { + if (field.isAnnotationPresent(ConfigAttribute.class)) { + try { + atts.add((String) field.get(null)); + attributes.put((String) field.get(null), field.getAnnotation(ConfigAttribute.class)); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } + } + } - /** - * The default Diffie-Hellman symmetric algorithm name. - *

- * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", - * "DESede", "AES", "Blowfish". - */ - String DEFAULT_SECURITY_CLIENT_DHALGO = ""; - - /** - * The default Diffie-Hellman symmetric algorithm name. - *

- * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", - * "DESede", "AES", "Blowfish". - */ - String DEFAULT_SECURITY_UDP_DHALGO = ""; - - /** - * Returns user defined method name for peer authentication initializer in - * {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} - */ - @ConfigAttributeGetter(name = SECURITY_PEER_AUTH_INIT) - String getSecurityPeerAuthInit(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property. - */ - @ConfigAttributeSetter(name = SECURITY_PEER_AUTH_INIT) - void setSecurityPeerAuthInit(String attValue); - - /** - * The name of user module for {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_PEER_AUTH_INIT_NAME = SECURITY_PEER_AUTH_INIT; - - /** - * The default {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_PEER_AUTH_INIT = ""; - - /** - * Returns user defined method name authenticating peer's credentials in - * {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - */ - @ConfigAttributeGetter(name = SECURITY_PEER_AUTHENTICATOR) - String getSecurityPeerAuthenticator(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_PEER_AUTHENTICATOR) - void setSecurityPeerAuthenticator(String attValue); - - /** - * The name of user defined method for {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_PEER_AUTHENTICATOR_NAME = SECURITY_PEER_AUTHENTICATOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} method. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_PEER_AUTHENTICATOR = ""; - - /** - * Returns user module name authorizing client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR) - String getSecurityClientAccessor(); - - /** - * Sets the user defined method name in {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR) - void setSecurityClientAccessor(String attValue); - - /** - * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_ACCESSOR_NAME = SECURITY_CLIENT_ACCESSOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_ACCESSOR = ""; - - /** - * Returns user module name authorizing client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR_PP) - String getSecurityClientAccessorPP(); - - /** - * Sets the user defined method name in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR_PP) - void setSecurityClientAccessorPP(String attValue); - - /** - * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_ACCESSOR_PP_NAME = SECURITY_CLIENT_ACCESSOR_PP; - - /** - * The default client post-operation {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - * method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_ACCESSOR_PP = ""; - - /** - * Get the current log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. - * - * @return the current security log-level - */ - @ConfigAttributeGetter(name = SECURITY_LOG_LEVEL) - int getSecurityLogLevel(); - - /** - * Set the log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. - * - * @param level the new security log-level - */ - @ConfigAttributeSetter(name = SECURITY_LOG_LEVEL) - void setSecurityLogLevel(int level); - - /** - * The name of {@link ConfigurationProperties#SECURITY_LOG_LEVEL} property that sets the log-level - * for security logger obtained using {@link DistributedSystem#getSecurityLogWriter()} - */ - // type is String because the config file "config", "debug", "fine" etc, but the setter getter - // accepts int - @ConfigAttribute(type = String.class) - String SECURITY_LOG_LEVEL_NAME = SECURITY_LOG_LEVEL; - - /** - * Returns the value of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property - * - * @return null if logging information goes to standard out - */ - @ConfigAttributeGetter(name = SECURITY_LOG_FILE) - File getSecurityLogFile(); - - /** - * Sets the system's {@link ConfigurationProperties#SECURITY_LOG_FILE} containing security related - * messages. - *

- * Non-absolute log files are relative to the system directory. - *

- * The security log file can not be changed while the system is running. - * - * @throws IllegalArgumentException if the specified value is not acceptable. - * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. - * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when - * writing to the system's configuration file. - */ - @ConfigAttributeSetter(name = SECURITY_LOG_FILE) - void setSecurityLogFile(File value); - - /** - * The name of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property. This property is - * the path of the file where security related messages are logged. - */ - @ConfigAttribute(type = File.class) - String SECURITY_LOG_FILE_NAME = SECURITY_LOG_FILE; - - /** - * The default {@link ConfigurationProperties#SECURITY_LOG_FILE}. - *

- * * - *

- * Actual value of this constant is "" which directs security log messages to the - * same place as the system log file. - */ - File DEFAULT_SECURITY_LOG_FILE = new File(""); - - /** - * Get timeout for peer membership check when security is enabled. - * - * @return Timeout in milliseconds. - */ - @ConfigAttributeGetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) - int getSecurityPeerMembershipTimeout(); - - /** - * Set timeout for peer membership check when security is enabled. The timeout must be less than - * peer handshake timeout. - * - * @param attValue - */ - @ConfigAttributeSetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) - void setSecurityPeerMembershipTimeout(int attValue); - - /** - * The default peer membership check timeout is 1 second. - */ - int DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 1000; - - /** - * Max membership timeout must be less than max peer handshake timeout. Currently this is set to - * default handshake timeout of 60 seconds. - */ - int MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 60000; - - /** - * The name of the peer membership check timeout property - */ - @ConfigAttribute(type = Integer.class, min = 0, max = MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT) - String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT; - - /** - * Returns all properties starting with {@link ConfigurationProperties#SECURITY_PREFIX} - */ - Properties getSecurityProps(); - - /** - * Returns the value of security property {@link ConfigurationProperties#SECURITY_PREFIX} for an - * exact attribute name match. - */ - String getSecurity(String attName); - - /** - * Sets the value of the {@link ConfigurationProperties#SECURITY_PREFIX} property. - */ - void setSecurity(String attName, String attValue); - - String SECURITY_PREFIX_NAME = SECURITY_PREFIX; - - - /** - * The static String definition of the cluster ssl prefix "cluster-ssl" used in conjunction - * with other cluster-ssl-* properties property - *

- * Description: The cluster-ssl property prefix - */ - @Deprecated - String CLUSTER_SSL_PREFIX = "cluster-ssl"; - - /** - * For the "custom-" prefixed properties - */ - String USERDEFINED_PREFIX_NAME = "custom-"; - - /** - * For ssl keystore and trust store properties - */ - String SSL_SYSTEM_PROPS_NAME = "javax.net.ssl"; - - String KEY_STORE_TYPE_NAME = ".keyStoreType"; - String KEY_STORE_NAME = ".keyStore"; - String KEY_STORE_PASSWORD_NAME = ".keyStorePassword"; - String TRUST_STORE_NAME = ".trustStore"; - String TRUST_STORE_PASSWORD_NAME = ".trustStorePassword"; - - /** - * Suffix for ssl keystore and trust store properties for JMX - */ - String JMX_SSL_PROPS_SUFFIX = "-jmx"; - - /** - * For security properties starting with sysprop in gfsecurity.properties file - */ - String SYS_PROP_NAME = "sysprop-"; - /** - * The property decides whether to remove unresponsive client from the server. - */ - @ConfigAttribute(type = Boolean.class) - String REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME = REMOVE_UNRESPONSIVE_CLIENT; - - /** - * The default value of remove unresponsive client is false. - */ - boolean DEFAULT_REMOVE_UNRESPONSIVE_CLIENT = false; - - /** - * Returns the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. - * - * @since GemFire 6.0 - */ - @ConfigAttributeGetter(name = REMOVE_UNRESPONSIVE_CLIENT) - boolean getRemoveUnresponsiveClient(); - - /** - * Sets the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. - * - * @since GemFire 6.0 - */ - @ConfigAttributeSetter(name = REMOVE_UNRESPONSIVE_CLIENT) - void setRemoveUnresponsiveClient(boolean value); - - /** - * @since GemFire 6.3 - */ - @ConfigAttribute(type = Boolean.class) - String DELTA_PROPAGATION_PROP_NAME = DELTA_PROPAGATION; - - boolean DEFAULT_DELTA_PROPAGATION = true; - - /** - * Returns the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. - * - * @since GemFire 6.3 - */ - @ConfigAttributeGetter(name = DELTA_PROPAGATION) - boolean getDeltaPropagation(); - - /** - * Sets the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. - * - * @since GemFire 6.3 - */ - @ConfigAttributeSetter(name = DELTA_PROPAGATION) - void setDeltaPropagation(boolean value); - - int MIN_DISTRIBUTED_SYSTEM_ID = -1; - int MAX_DISTRIBUTED_SYSTEM_ID = 255; - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = Integer.class) - String DISTRIBUTED_SYSTEM_ID_NAME = DISTRIBUTED_SYSTEM_ID; - int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1; - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeSetter(name = DISTRIBUTED_SYSTEM_ID) - void setDistributedSystemId(int distributedSystemId); - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeGetter(name = DISTRIBUTED_SYSTEM_ID) - int getDistributedSystemId(); - - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = String.class) - String REDUNDANCY_ZONE_NAME = REDUNDANCY_ZONE; - String DEFAULT_REDUNDANCY_ZONE = ""; - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeSetter(name = REDUNDANCY_ZONE) - void setRedundancyZone(String redundancyZone); - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeGetter(name = REDUNDANCY_ZONE) - String getRedundancyZone(); - - /** - * @since GemFire 6.6.2 - */ - void setSSLProperty(String attName, String attValue); - - /** - * @since GemFire 6.6.2 - */ - Properties getSSLProperties(); - - Properties getClusterSSLProperties(); - - /** - * @since GemFire 8.0 - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - Properties getJmxSSLProperties(); - - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = Boolean.class) - String ENFORCE_UNIQUE_HOST_NAME = ENFORCE_UNIQUE_HOST; - /** - * Using the system property to set the default here to retain backwards compatibility with - * customers that are already using this system property. - */ - boolean DEFAULT_ENFORCE_UNIQUE_HOST = - Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "EnforceUniqueHostStorageAllocation"); - - @ConfigAttributeSetter(name = ENFORCE_UNIQUE_HOST) - void setEnforceUniqueHost(boolean enforceUniqueHost); - - @ConfigAttributeGetter(name = ENFORCE_UNIQUE_HOST) - boolean getEnforceUniqueHost(); - - Properties getUserDefinedProps(); - - /** - * Returns the value of the {@link ConfigurationProperties#GROUPS} property - *

- * The default value is: {@link #DEFAULT_GROUPS}. - * - * @return the value of the property - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = GROUPS) - String getGroups(); - - /** - * Sets the {@link ConfigurationProperties#GROUPS} property. - *

- * The groups can not be changed while the system is running. - * - * @throws IllegalArgumentException if the specified value is not acceptable. - * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. - * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when - * writing to the system's configuration file. - * @since GemFire 7.0 - */ - @ConfigAttributeSetter(name = GROUPS) - void setGroups(String value); - - /** - * The name of the {@link ConfigurationProperties#GROUPS} property - * - * @since GemFire 7.0 - */ - @ConfigAttribute(type = String.class) - String GROUPS_NAME = GROUPS; - /** - * The default {@link ConfigurationProperties#GROUPS}. - *

- * Actual value of this constant is "". - * - * @since GemFire 7.0 - */ - String DEFAULT_GROUPS = ""; - - /** - * Any cleanup required before closing the distributed system - */ - void close(); - - @ConfigAttributeSetter(name = REMOTE_LOCATORS) - void setRemoteLocators(String locators); - - @ConfigAttributeGetter(name = REMOTE_LOCATORS) - String getRemoteLocators(); - - /** - * The name of the {@link ConfigurationProperties#REMOTE_LOCATORS} property - */ - @ConfigAttribute(type = String.class) - String REMOTE_LOCATORS_NAME = REMOTE_LOCATORS; - /** - * The default value of the {@link ConfigurationProperties#REMOTE_LOCATORS} property - */ - String DEFAULT_REMOTE_LOCATORS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER) - boolean getJmxManager(); - - @ConfigAttributeSetter(name = JMX_MANAGER) - void setJmxManager(boolean value); - - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_NAME = JMX_MANAGER; - boolean DEFAULT_JMX_MANAGER = false; - - @ConfigAttributeGetter(name = JMX_MANAGER_START) - boolean getJmxManagerStart(); - - @ConfigAttributeSetter(name = JMX_MANAGER_START) - void setJmxManagerStart(boolean value); - - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_START_NAME = JMX_MANAGER_START; - boolean DEFAULT_JMX_MANAGER_START = false; - - @ConfigAttributeGetter(name = JMX_MANAGER_PORT) - int getJmxManagerPort(); - - @ConfigAttributeSetter(name = JMX_MANAGER_PORT) - void setJmxManagerPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String JMX_MANAGER_PORT_NAME = JMX_MANAGER_PORT; - - int DEFAULT_JMX_MANAGER_PORT = 1099; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_ENABLED) - boolean getJmxManagerSSLEnabled(); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_JMX_MANAGER_SSL_ENABLED = false; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_SSL_ENABLED_NAME = JMX_MANAGER_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_ENABLED) - void setJmxManagerSSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = OFF_HEAP_MEMORY_SIZE) - String getOffHeapMemorySize(); - - /** - * Sets the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = OFF_HEAP_MEMORY_SIZE) - void setOffHeapMemorySize(String value); - - /** - * The name of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String OFF_HEAP_MEMORY_SIZE_NAME = OFF_HEAP_MEMORY_SIZE; - /** - * The default {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} value of "". - * - * @since Geode 1.0 - */ - String DEFAULT_OFF_HEAP_MEMORY_SIZE = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_PROTOCOLS) - String getJmxManagerSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_PROTOCOLS) - void setJmxManagerSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_PROTOCOLS_NAME = JMX_MANAGER_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_CIPHERS) - String getJmxManagerSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_CIPHERS) - void setJmxManagerSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_CIPHERS_NAME = JMX_MANAGER_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) - boolean getJmxManagerSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) - void setJmxManagerSSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION_NAME = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE) - String getJmxManagerSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE) - void setJmxManagerSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_NAME = JMX_MANAGER_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) - String getJmxManagerSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) - void setJmxManagerSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_TYPE_NAME = JMX_MANAGER_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) - String getJmxManagerSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) - void setJmxManagerSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * propery - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE) - String getJmxManagerSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE) - void setJmxManagerSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_TRUSTSTORE_NAME = JMX_MANAGER_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) - String getJmxManagerSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) - void setJmxManagerSSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD; - - @ConfigAttributeGetter(name = JMX_MANAGER_BIND_ADDRESS) - String getJmxManagerBindAddress(); - - @ConfigAttributeSetter(name = JMX_MANAGER_BIND_ADDRESS) - void setJmxManagerBindAddress(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_BIND_ADDRESS_NAME = JMX_MANAGER_BIND_ADDRESS; - String DEFAULT_JMX_MANAGER_BIND_ADDRESS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) - String getJmxManagerHostnameForClients(); - - @ConfigAttributeSetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) - void setJmxManagerHostnameForClients(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_HOSTNAME_FOR_CLIENTS_NAME = JMX_MANAGER_HOSTNAME_FOR_CLIENTS; - String DEFAULT_JMX_MANAGER_HOSTNAME_FOR_CLIENTS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_PASSWORD_FILE) - String getJmxManagerPasswordFile(); - - @ConfigAttributeSetter(name = JMX_MANAGER_PASSWORD_FILE) - void setJmxManagerPasswordFile(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_PASSWORD_FILE_NAME = JMX_MANAGER_PASSWORD_FILE; - String DEFAULT_JMX_MANAGER_PASSWORD_FILE = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_ACCESS_FILE) - String getJmxManagerAccessFile(); - - @ConfigAttributeSetter(name = JMX_MANAGER_ACCESS_FILE) - void setJmxManagerAccessFile(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_ACCESS_FILE_NAME = JMX_MANAGER_ACCESS_FILE; - String DEFAULT_JMX_MANAGER_ACCESS_FILE = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property - * - * @deprecated as of 8.0 use {@link #getHttpServicePort()} instead. - */ - @ConfigAttributeGetter(name = JMX_MANAGER_HTTP_PORT) - int getJmxManagerHttpPort(); - - /** - * Set the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for jmx-manager. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for - * jmx-manager. - * - * @param value the port number for jmx-manager HTTP service - * - * @deprecated as of 8.0 use {@link #setHttpServicePort(int)} instead. - */ - @ConfigAttributeSetter(name = JMX_MANAGER_HTTP_PORT) - void setJmxManagerHttpPort(int value); - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - *

- * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - * - * @deprecated as of 8.0 use {{@link #HTTP_SERVICE_PORT_NAME} instead. - */ - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String JMX_MANAGER_HTTP_PORT_NAME = JMX_MANAGER_HTTP_PORT; - - /** - * The default value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - * Current value is a 7070 - * - * @deprecated as of 8.0 use {@link #DEFAULT_HTTP_SERVICE_PORT} instead. - */ - int DEFAULT_JMX_MANAGER_HTTP_PORT = 7070; - - @ConfigAttributeGetter(name = JMX_MANAGER_UPDATE_RATE) - int getJmxManagerUpdateRate(); - - @ConfigAttributeSetter(name = JMX_MANAGER_UPDATE_RATE) - void setJmxManagerUpdateRate(int value); - - int DEFAULT_JMX_MANAGER_UPDATE_RATE = 2000; - int MIN_JMX_MANAGER_UPDATE_RATE = 1000; - int MAX_JMX_MANAGER_UPDATE_RATE = 60000 * 5; - @ConfigAttribute(type = Integer.class, min = MIN_JMX_MANAGER_UPDATE_RATE, - max = MAX_JMX_MANAGER_UPDATE_RATE) - String JMX_MANAGER_UPDATE_RATE_NAME = JMX_MANAGER_UPDATE_RATE; - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PORT} property - * - * @return the port on which GemFireMemcachedServer should be started - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_PORT) - int getMemcachedPort(); - - @ConfigAttributeSetter(name = MEMCACHED_PORT) - void setMemcachedPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String MEMCACHED_PORT_NAME = MEMCACHED_PORT; - int DEFAULT_MEMCACHED_PORT = 0; - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PROTOCOL} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PROTOCOL} property - * - * @return the protocol for GemFireMemcachedServer - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_PROTOCOL) - String getMemcachedProtocol(); - - @ConfigAttributeSetter(name = MEMCACHED_PROTOCOL) - void setMemcachedProtocol(String protocol); - - @ConfigAttribute(type = String.class) - String MEMCACHED_PROTOCOL_NAME = MEMCACHED_PROTOCOL; - String DEFAULT_MEMCACHED_PROTOCOL = GemFireMemcachedServer.Protocol.ASCII.name(); - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property - * - * @return the bind address for GemFireMemcachedServer - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_BIND_ADDRESS) - String getMemcachedBindAddress(); - - @ConfigAttributeSetter(name = MEMCACHED_BIND_ADDRESS) - void setMemcachedBindAddress(String bindAddress); - - @ConfigAttribute(type = String.class) - String MEMCACHED_BIND_ADDRESS_NAME = MEMCACHED_BIND_ADDRESS; - String DEFAULT_MEMCACHED_BIND_ADDRESS = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_PORT} property - * - * @return the port on which GeodeRedisServer should be started - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_PORT) - int getRedisPort(); - - @ConfigAttributeSetter(name = REDIS_PORT) - void setRedisPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String REDIS_PORT_NAME = REDIS_PORT; - int DEFAULT_REDIS_PORT = 0; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_BIND_ADDRESS} property - * - * @return the bind address for GemFireRedisServer - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_BIND_ADDRESS) - String getRedisBindAddress(); - - @ConfigAttributeSetter(name = REDIS_BIND_ADDRESS) - void setRedisBindAddress(String bindAddress); - - @ConfigAttribute(type = String.class) - String REDIS_BIND_ADDRESS_NAME = REDIS_BIND_ADDRESS; - String DEFAULT_REDIS_BIND_ADDRESS = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_PASSWORD} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_PASSWORD} property - * - * @return the authentication password for GemFireRedisServer - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_PASSWORD) - String getRedisPassword(); - - @ConfigAttributeSetter(name = REDIS_PASSWORD) - void setRedisPassword(String password); - - @ConfigAttribute(type = String.class) - String REDIS_PASSWORD_NAME = REDIS_PASSWORD; - String DEFAULT_REDIS_PASSWORD = ""; - - // Added for the HTTP service - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} property - * - * @return the HTTP service port - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = HTTP_SERVICE_PORT) - int getHttpServicePort(); - - /** - * Set the {@link ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP - * service. - * - * @param value the port number for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_PORT) - void setHttpServicePort(int value); - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property - *

- * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} - * property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String HTTP_SERVICE_PORT_NAME = HTTP_SERVICE_PORT; - - /** - * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property. Current - * value is a 7070 - * - * @since GemFire 8.0 - */ - int DEFAULT_HTTP_SERVICE_PORT = 7070; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - * - * @return the bind-address for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = HTTP_SERVICE_BIND_ADDRESS) - String getHttpServiceBindAddress(); - - /** - * Set the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} - * for HTTP service. - * - * @param value the bind-address for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_BIND_ADDRESS) - void setHttpServiceBindAddress(String value); - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_BIND_ADDRESS_NAME = HTTP_SERVICE_BIND_ADDRESS; - - /** - * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property. - * Current value is an empty string "" - * - * @since GemFire 8.0 - */ - String DEFAULT_HTTP_SERVICE_BIND_ADDRESS = ""; - - // Added for HTTP Service SSL - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_ENABLED) - boolean getHttpServiceSSLEnabled(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_ENABLED) - void setHttpServiceSSLEnabled(boolean httpServiceSSLEnabled); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_HTTP_SERVICE_SSL_ENABLED = false; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String HTTP_SERVICE_SSL_ENABLED_NAME = HTTP_SERVICE_SSL_ENABLED; - - /** - * Returns the value of the - * {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) - boolean getHttpServiceSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) - void setHttpServiceSSLRequireAuthentication(boolean httpServiceSSLRequireAuthentication); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION = false; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION_NAME = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_PROTOCOLS) - String getHttpServiceSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_PROTOCOLS) - void setHttpServiceSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_PROTOCOLS = "any"; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_PROTOCOLS_NAME = HTTP_SERVICE_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_CIPHERS) - String getHttpServiceSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_CIPHERS) - void setHttpServiceSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_CIPHERS = "any"; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_CIPHERS_NAME = HTTP_SERVICE_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE) - String getHttpServiceSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE) - void setHttpServiceSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_NAME = HTTP_SERVICE_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) - String getHttpServiceSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) - void setHttpServiceSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) - String getHttpServiceSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) - void setHttpServiceSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_TYPE_NAME = HTTP_SERVICE_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) - String getHttpServiceSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) - void setHttpServiceSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property The name - * of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_TRUSTSTORE_NAME = HTTP_SERVICE_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) - String getHttpServiceSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) - void setHttpServiceSSLTrustStorePassword(String trustStorePassword); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD; - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getHttpServiceSSLProperties(); - - // Added for API REST - - /** - * Returns the value of the {@link ConfigurationProperties#START_DEV_REST_API} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} property - * - * @return the value of the property - * - * @since GemFire 8.0 - */ - - @ConfigAttributeGetter(name = START_DEV_REST_API) - boolean getStartDevRestApi(); - - /** - * Set the {@link ConfigurationProperties#START_DEV_REST_API} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} for - * HTTP service. - * - * @param value for the property - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = START_DEV_REST_API) - void setStartDevRestApi(boolean value); - - /** - * The name of the {@link ConfigurationProperties#START_DEV_REST_API} property - *

- * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} - * property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Boolean.class) - String START_DEV_REST_API_NAME = START_DEV_REST_API; - - /** - * The default value of the {@link ConfigurationProperties#START_DEV_REST_API} property. Current - * value is "false" - * - * @since GemFire 8.0 - */ - boolean DEFAULT_START_DEV_REST_API = false; - - /** - * The name of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Boolean.class) - String DISABLE_AUTO_RECONNECT_NAME = DISABLE_AUTO_RECONNECT; - - /** - * The default value of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property - */ - boolean DEFAULT_DISABLE_AUTO_RECONNECT = false; - - /** - * Gets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} - */ - @ConfigAttributeGetter(name = DISABLE_AUTO_RECONNECT) - boolean getDisableAutoReconnect(); - - /** - * Sets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} - * - * @param value the new setting - */ - @ConfigAttributeSetter(name = DISABLE_AUTO_RECONNECT) - void setDisableAutoReconnect(boolean value); - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getServerSSLProperties(); - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_ENABLED) - boolean getServerSSLEnabled(); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_SERVER_SSL_ENABLED = false; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String SERVER_SSL_ENABLED_NAME = SERVER_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_ENABLED) - void setServerSSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_PROTOCOLS) - String getServerSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. - */ - @ConfigAttributeSetter(name = SERVER_SSL_PROTOCOLS) - void setServerSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_SERVER_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_PROTOCOLS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_PROTOCOLS_NAME = SERVER_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_CIPHERS) - String getServerSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_CIPHERS) - void setServerSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  - */ - @Deprecated - String DEFAULT_SERVER_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_CIPHERS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_CIPHERS_NAME = SERVER_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()}  - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) - boolean getServerSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)}  - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) - void setServerSSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_SERVER_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String SERVER_SSL_REQUIRE_AUTHENTICATION_NAME = SERVER_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE) - String getServerSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE) - void setServerSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_NAME = SERVER_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_TYPE) - String getServerSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_TYPE) - void setServerSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_TYPE_NAME = SERVER_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_PASSWORD) - String getServerSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_PASSWORD) - void setServerSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_PASSWORD_NAME = SERVER_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE) - String getServerSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setServerSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE) - void setServerSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - String DEFAULT_SERVER_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_TRUSTSTORE_NAME = SERVER_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) - String getServerSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) - void setServerSSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_SERVER_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_TRUSTSTORE_PASSWORD_NAME = SERVER_SSL_TRUSTSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_ENABLED) - boolean getGatewaySSLEnabled(); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_GATEWAY_SSL_ENABLED = false; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String GATEWAY_SSL_ENABLED_NAME = GATEWAY_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_ENABLED) - void setGatewaySSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_PROTOCOLS) - String getGatewaySSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_PROTOCOLS) - void setGatewaySSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - String DEFAULT_GATEWAY_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_PROTOCOLS_NAME = GATEWAY_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_CIPHERS) - String getGatewaySSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_CIPHERS) - void setGatewaySSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  - */ - String DEFAULT_GATEWAY_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_CIPHERS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_CIPHERS_NAME = GATEWAY_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) - boolean getGatewaySSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setGatewaySSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) - void setGatewaySSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_GATEWAY_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String GATEWAY_SSL_REQUIRE_AUTHENTICATION_NAME = GATEWAY_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE) - String getGatewaySSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE) - void setGatewaySSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_NAME = GATEWAY_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_TYPE) - String getGatewaySSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_TYPE) - void setGatewaySSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_TYPE_NAME = GATEWAY_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) - String getGatewaySSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) - void setGatewaySSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_PASSWORD_NAME = GATEWAY_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE) - String getGatewaySSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE) - void setGatewaySSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_TRUSTSTORE_NAME = GATEWAY_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) - String getGatewaySSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) - void setGatewaySSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_TRUSTSTORE_PASSWORD_NAME = GATEWAY_SSL_TRUSTSTORE_PASSWORD; - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getGatewaySSLProperties(); - - ConfigSource getConfigSource(String attName); - - /** - * The name of the {@link ConfigurationProperties#LOCK_MEMORY} property. Used to cause pages to be - * locked into memory, thereby preventing them from being swapped to disk. - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = Boolean.class) - String LOCK_MEMORY_NAME = LOCK_MEMORY; - boolean DEFAULT_LOCK_MEMORY = false; - - /** - * Gets the value of {@link ConfigurationProperties#LOCK_MEMORY} - *

- * Gets the value of {@link org.apache.geode.distributed.ConfigurationProperties#LOCK_MEMORY} - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = LOCK_MEMORY) - boolean getLockMemory(); - - /** - * Set the value of {@link ConfigurationProperties#LOCK_MEMORY} - * - * @param value the new setting - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = LOCK_MEMORY) - void setLockMemory(boolean value); - - @ConfigAttribute(type = String.class) - String SECURITY_SHIRO_INIT_NAME = SECURITY_SHIRO_INIT; - - @ConfigAttributeSetter(name = SECURITY_SHIRO_INIT) - void setShiroInit(String value); - - @ConfigAttributeGetter(name = SECURITY_SHIRO_INIT) - String getShiroInit(); - - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_CLUSTER_ALIAS) - String getClusterSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_CLUSTER_ALIAS) - void setClusterSSLAlias(String alias); - - /** - * The Default Cluster SSL alias - * - * @since Geode 1.0 - */ - String DEFAULT_SSL_ALIAS = ""; - - /** - * The name of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String CLUSTER_SSL_ALIAS_NAME = SSL_CLUSTER_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_LOCATOR_ALIAS) - String getLocatorSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_LOCATOR_ALIAS) - void setLocatorSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String LOCATOR_SSL_ALIAS_NAME = SSL_LOCATOR_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_GATEWAY_ALIAS) - String getGatewaySSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_GATEWAY_ALIAS) - void setGatewaySSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_ALIAS_NAME = SSL_GATEWAY_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_WEB_ALIAS) - String getHTTPServiceSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_WEB_ALIAS) - void setHTTPServiceSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_ALIAS_NAME = SSL_WEB_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_JMX_ALIAS) - String getJMXSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_JMX_ALIAS) - void setJMXSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String JMX_SSL_ALIAS_NAME = SSL_JMX_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_SERVER_ALIAS) - String getServerSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_SERVER_ALIAS) - void setServerSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String SERVER_SSL_ALIAS_NAME = SSL_SERVER_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_ENABLED_COMPONENTS) - SecurableCommunicationChannel[] getSecurableCommunicationChannels(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_ENABLED_COMPONENTS) - void setSecurableCommunicationChannels(SecurableCommunicationChannel[] sslEnabledComponents); - - /** - * The name of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = SecurableCommunicationChannel[].class) - String SSL_ENABLED_COMPONENTS_NAME = SSL_ENABLED_COMPONENTS; - - /** - * The default ssl enabled components - * - * @since Geode 1.0 - */ - SecurableCommunicationChannel[] DEFAULT_SSL_ENABLED_COMPONENTS = - new SecurableCommunicationChannel[] {}; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. - */ - @ConfigAttributeGetter(name = SSL_PROTOCOLS) - String getSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. - */ - @ConfigAttributeSetter(name = SSL_PROTOCOLS) - void setSSLProtocols(String protocols); - - /** - * The name of the {@link ConfigurationProperties#SSL_PROTOCOLS} property - */ - @ConfigAttribute(type = String.class) - String SSL_PROTOCOLS_NAME = SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. - */ - @ConfigAttributeGetter(name = SSL_CIPHERS) - String getSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. - */ - @ConfigAttributeSetter(name = SSL_CIPHERS) - void setSSLCiphers(String ciphers); - - /** - * The name of the {@link ConfigurationProperties#SSL_CIPHERS} property - */ - @ConfigAttribute(type = String.class) - String SSL_CIPHERS_NAME = SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. - */ - @ConfigAttributeGetter(name = SSL_REQUIRE_AUTHENTICATION) - boolean getSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. - */ - @ConfigAttributeSetter(name = SSL_REQUIRE_AUTHENTICATION) - void setSSLRequireAuthentication(boolean enabled); - - /** - * The name of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property - */ - @ConfigAttribute(type = Boolean.class) - String SSL_REQUIRE_AUTHENTICATION_NAME = SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE) - String getSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE) - void setSSLKeyStore(String keyStore); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_NAME = SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE_TYPE) - String getSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE_TYPE) - void setSSLKeyStoreType(String keyStoreType); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_TYPE_NAME = SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE_PASSWORD) - String getSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE_PASSWORD) - void setSSLKeyStorePassword(String keyStorePassword); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_PASSWORD_NAME = SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. - */ - @ConfigAttributeGetter(name = SSL_TRUSTSTORE) - String getSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. - */ - @ConfigAttributeSetter(name = SSL_TRUSTSTORE) - void setSSLTrustStore(String trustStore); - - /** - * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property - */ - @ConfigAttribute(type = String.class) - String SSL_TRUSTSTORE_NAME = SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. - */ - @ConfigAttributeGetter(name = SSL_DEFAULT_ALIAS) - String getSSLDefaultAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. - */ - @ConfigAttributeSetter(name = SSL_DEFAULT_ALIAS) - void setSSLDefaultAlias(String sslDefaultAlias); - - /** - * The name of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property - */ - @ConfigAttribute(type = String.class) - String SSL_DEFAULT_ALIAS_NAME = SSL_DEFAULT_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. - */ - @ConfigAttributeGetter(name = SSL_TRUSTSTORE_PASSWORD) - String getSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. - */ - @ConfigAttributeSetter(name = SSL_TRUSTSTORE_PASSWORD) - void setSSLTrustStorePassword(String trustStorePassword); - - /** - * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property - */ - @ConfigAttribute(type = String.class) - String SSL_TRUSTSTORE_PASSWORD_NAME = SSL_TRUSTSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} - * property. - */ - @ConfigAttributeGetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) - boolean getSSLWebRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} - * property. - */ - @ConfigAttributeSetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) - void setSSLWebRequireAuthentication(boolean requiresAuthentication); - - /** - * The name of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} property - */ - @ConfigAttribute(type = Boolean.class) - String SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION_NAME = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION; - - /** - * The default value for http service ssl mutual authentication - */ - boolean DEFAULT_SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION = false; - - // *************** Initializers to gather all the annotations in this class - // ************************ - - Map attributes = new HashMap<>(); - Map setters = new HashMap<>(); - Map getters = new HashMap<>(); - String[] dcValidAttributeNames = init(); - - static String[] init() { - List atts = new ArrayList<>(); - for (Field field : DistributionConfig.class.getDeclaredFields()) { - if (field.isAnnotationPresent(ConfigAttribute.class)) { - try { - atts.add((String) field.get(null)); - attributes.put((String) field.get(null), field.getAnnotation(ConfigAttribute.class)); - } catch (IllegalAccessException e) { - e.printStackTrace(); + for (Method method : DistributionConfig.class.getDeclaredMethods()) { + if (method.isAnnotationPresent(ConfigAttributeGetter.class)) { + ConfigAttributeGetter getter = method.getAnnotation(ConfigAttributeGetter.class); + getters.put(getter.name(), method); + } else if (method.isAnnotationPresent(ConfigAttributeSetter.class)) { + ConfigAttributeSetter setter = method.getAnnotation(ConfigAttributeSetter.class); + setters.put(setter.name(), method); + } } + Collections.sort(atts); + return atts.toArray(new String[atts.size()]); } - } - - for (Method method : DistributionConfig.class.getDeclaredMethods()) { - if (method.isAnnotationPresent(ConfigAttributeGetter.class)) { - ConfigAttributeGetter getter = method.getAnnotation(ConfigAttributeGetter.class); - getters.put(getter.name(), method); - } else if (method.isAnnotationPresent(ConfigAttributeSetter.class)) { - ConfigAttributeSetter setter = method.getAnnotation(ConfigAttributeSetter.class); - setters.put(setter.name(), method); - } - } - Collections.sort(atts); - return atts.toArray(new String[atts.size()]); - } } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java index 686fd4827d95..795caed040c8 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfigImpl.java @@ -15,7 +15,55 @@ package org.apache.geode.distributed.internal; -import static org.apache.geode.distributed.ConfigurationProperties.*; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_CIPHERS; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_KEYSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_KEYSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_KEYSTORE_TYPE; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_PROTOCOLS; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_REQUIRE_AUTHENTICATION; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_TRUSTSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_TRUSTSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_CIPHERS; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_KEYSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_KEYSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_KEYSTORE_TYPE; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_PROTOCOLS; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_REQUIRE_AUTHENTICATION; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_TRUSTSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_TRUSTSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_CIPHERS; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_KEYSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_KEYSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_KEYSTORE_TYPE; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_PROTOCOLS; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_TRUSTSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_CIPHERS; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_KEYSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_KEYSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_KEYSTORE_TYPE; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_PROTOCOLS; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_TRUSTSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.SECURITY_PEER_AUTHENTICATOR; +import static org.apache.geode.distributed.ConfigurationProperties.SECURITY_PEER_AUTH_INIT; +import static org.apache.geode.distributed.ConfigurationProperties.SECURITY_UDP_DHALGO; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_CIPHERS; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_KEYSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_KEYSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_KEYSTORE_TYPE; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_PROTOCOLS; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_REQUIRE_AUTHENTICATION; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_TRUSTSTORE; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_TRUSTSTORE_PASSWORD; +import static org.apache.geode.distributed.ConfigurationProperties.SSL_ENABLED_COMPONENTS; import java.io.File; import java.io.IOException; @@ -32,11 +80,9 @@ import java.util.Properties; import java.util.Set; -import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.geode.redis.GeodeRedisServer; import org.apache.geode.GemFireConfigException; import org.apache.geode.GemFireIOException; @@ -49,6 +95,7 @@ import org.apache.geode.internal.process.ProcessLauncherContext; import org.apache.geode.internal.security.SecurableCommunicationChannel; import org.apache.geode.memcached.GemFireMemcachedServer; +import org.apache.geode.redis.GeodeRedisServer; /** * Provides an implementation of DistributionConfig that knows how to read the diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index cafe52dd7e73..8ca4842d30f3 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -114,29 +114,6 @@ import org.apache.geode.security.GemFireSecurityException; import org.apache.geode.security.PostProcessor; import org.apache.geode.security.SecurityManager; -import org.apache.logging.log4j.Logger; - -import java.io.File; -import java.io.IOException; -import java.io.Reader; -import java.lang.reflect.Array; -import java.net.InetAddress; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Properties; -import java.util.Set; -import java.util.SortedSet; -import java.util.StringTokenizer; -import java.util.TreeSet; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.CopyOnWriteArrayList; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicLong; -import java.util.concurrent.atomic.AtomicReference; /** * The concrete implementation of {@link DistributedSystem} that provides internal-only @@ -145,7 +122,7 @@ * @since GemFire 3.0 */ public class InternalDistributedSystem extends DistributedSystem - implements OsStatisticsFactory, StatisticsManager { +implements OsStatisticsFactory, StatisticsManager { /** * True if the user is allowed lock when memory resources appear to be overcommitted. @@ -164,11 +141,11 @@ public class InternalDistributedSystem extends DistributedSystem public static final CreationStackGenerator DEFAULT_CREATION_STACK_GENERATOR = new CreationStackGenerator() { - @Override - public Throwable generateCreationStack(final DistributionConfig config) { - return null; - } - }; + @Override + public Throwable generateCreationStack(final DistributionConfig config) { + return null; + } + }; // the following is overridden from DistributedTestCase to fix #51058 public static final AtomicReference TEST_CREATION_STACK_GENERATOR = @@ -526,7 +503,7 @@ private InternalDistributedSystem(Properties nonDefault) { } ((DistributionConfigImpl) this.originalConfig).checkForDisallowedDefaults(); // throws - // IllegalStateEx + // IllegalStateEx this.shareSockets = this.originalConfig.getConserveSockets(); this.startTime = System.currentTimeMillis(); this.grc = new GrantorRequestProcessor.GrantorRequestContext(stopper); @@ -691,7 +668,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce } catch (Exception ex) { throw new GemFireSecurityException( LocalizedStrings.InternalDistributedSystem_PROBLEM_IN_INITIALIZING_KEYS_FOR_CLIENT_AUTHENTICATION - .toLocalizedString(), + .toLocalizedString(), ex); } @@ -714,7 +691,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce } else { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_MEMORY_OVERCOMMIT - .toLocalizedString(avail, size)); + .toLocalizedString(avail, size)); } } @@ -765,7 +742,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce // but during startup we should instead throw a SystemConnectException throw new SystemConnectException( LocalizedStrings.InternalDistributedSystem_DISTRIBUTED_SYSTEM_HAS_DISCONNECTED - .toLocalizedString(), + .toLocalizedString(), e); } @@ -839,13 +816,13 @@ private void startInitLocator() throws InterruptedException { try { this.startedLocator = InternalLocator.createLocator(locId.getPort(), null, null, this.logWriter, // LOG: this is - // after IDS - // has created - // LogWriterLoggers - // and - // Appenders + // after IDS + // has created + // LogWriterLoggers + // and + // Appenders this.securityLogWriter, // LOG: this is after IDS has created LogWriterLoggers and - // Appenders + // Appenders locId.getHost(), locId.getHostnameForClients(), this.originalConfig.toProperties(), false); @@ -864,7 +841,7 @@ private void startInitLocator() throws InterruptedException { } catch (IOException e) { throw new GemFireIOException( LocalizedStrings.InternalDistributedSystem_PROBLEM_STARTING_A_LOCATOR_SERVICE - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -912,7 +889,7 @@ private void checkConnected() { if (!isConnected()) { throw new DistributedSystemDisconnectedException( LocalizedStrings.InternalDistributedSystem_THIS_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_HAS_BEEN_DISCONNECTED - .toLocalizedString(), + .toLocalizedString(), dm.getRootCause()); } } @@ -1319,7 +1296,7 @@ private void waitDisconnected() { } catch (InterruptedException e) { interrupted = true; getLogWriter().convertToLogWriterI18n() - .warning(LocalizedStrings.InternalDistributedSystem_DISCONNECT_WAIT_INTERRUPTED, e); + .warning(LocalizedStrings.InternalDistributedSystem_DISCONNECT_WAIT_INTERRUPTED, e); } finally { if (interrupted) { Thread.currentThread().interrupt(); @@ -1363,7 +1340,7 @@ protected void disconnect(boolean preparingForReconnect, String reason, boolean InternalCache currentCache = GemFireCacheImpl.getInstance(); if (currentCache != null && !currentCache.isClosed()) { disconnectListenerThread.set(Boolean.TRUE); // bug #42663 - this must be set while - // closing the cache + // closing the cache try { currentCache.close(reason, dm.getRootCause(), keepAlive, true); // fix for 42150 } catch (VirtualMachineError e) { @@ -1475,7 +1452,7 @@ protected void disconnect(boolean preparingForReconnect, String reason, boolean // NOTE: no logging after this point :-) LoggingThreadGroup.cleanUpThreadGroups(); // bug35388 - logwriters accumulate, causing mem - // leak + // leak EventID.unsetDS(); } finally { @@ -2132,7 +2109,7 @@ private static void notifyConnectListeners(InternalDistributedSystem sys) { // is still usable: SystemFailure.checkFailure(); sys.getLogWriter().convertToLogWriterI18n() - .severe(LocalizedStrings.InternalDistributedSystem_CONNECTLISTENER_THREW, t); + .severe(LocalizedStrings.InternalDistributedSystem_CONNECTLISTENER_THREW, t); } } } @@ -2238,7 +2215,7 @@ public void addDisconnectListener(DisconnectListener listener) { this.listeners.remove(listener); // don't leave in the list! throw new DistributedSystemDisconnectedException( LocalizedStrings.InternalDistributedSystem_NO_LISTENERS_PERMITTED_AFTER_SHUTDOWN_0 - .toLocalizedString(reason), + .toLocalizedString(reason), dm.getRootCause()); } } @@ -2531,7 +2508,7 @@ public boolean tryReconnect(boolean forcedDisconnect, String reason, InternalCac return false; } synchronized (CacheFactory.class) { // bug #51335 - deadlock with app thread trying to create a - // cache + // cache synchronized (GemFireCacheImpl.class) { // bug 39329: must lock reconnectLock *after* the cache synchronized (this.reconnectLock) { @@ -2662,7 +2639,7 @@ private void reconnect(boolean forcedDisconnect, String reason) { } throw new CacheClosedException( LocalizedStrings.InternalDistributedSystem_SOME_REQUIRED_ROLES_MISSING - .toLocalizedString()); + .toLocalizedString()); } } @@ -2942,11 +2919,11 @@ public void validateSameProperties(Properties propsToCheck, boolean isConnected) if (this.creationStack == null) { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_A_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_ALREADY_EXISTS_IN_THIS_VM_IT_HAS_THE_FOLLOWING_CONFIGURATION_0 - .toLocalizedString(sb.toString())); + .toLocalizedString(sb.toString())); } else { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_A_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_ALREADY_EXISTS_IN_THIS_VM_IT_HAS_THE_FOLLOWING_CONFIGURATION_0 - .toLocalizedString(sb.toString()), + .toLocalizedString(sb.toString()), this.creationStack); } } diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index 469c04a512c7..e10f1fa5b671 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -77,7 +77,6 @@ import com.sun.jna.Native; import com.sun.jna.Platform; import org.apache.commons.lang.StringUtils; -import org.apache.geode.internal.security.SecurityServiceFactory; import org.apache.logging.log4j.Logger; import org.apache.geode.CancelCriterion; @@ -213,6 +212,7 @@ import org.apache.geode.internal.offheap.MemoryAllocator; import org.apache.geode.internal.process.ClusterConfigurationNotAvailableException; import org.apache.geode.internal.security.SecurityService; +import org.apache.geode.internal.security.SecurityServiceFactory; import org.apache.geode.internal.sequencelog.SequenceLoggerImpl; import org.apache.geode.internal.tcp.ConnectionTable; import org.apache.geode.internal.util.concurrent.FutureResult; @@ -241,7 +241,7 @@ */ @SuppressWarnings("deprecation") public class GemFireCacheImpl implements InternalCache, InternalClientCache, HasCachePerfStats, - DistributionAdvisee, CacheTime { +DistributionAdvisee, CacheTime { private static final Logger logger = LogService.getLogger(); /** The default number of seconds to wait for a distributed lock */ @@ -750,7 +750,7 @@ public static Cache create(InternalDistributedSystem system, boolean existingOk, private static GemFireCacheImpl basicCreate(InternalDistributedSystem system, boolean existingOk, CacheConfig cacheConfig, PoolFactory pf, boolean isClient, boolean asyncEventListeners, TypeRegistry typeRegistry) throws CacheExistsException, TimeoutException, - CacheWriterException, GatewayException, RegionExistsException { + CacheWriterException, GatewayException, RegionExistsException { try { synchronized (GemFireCacheImpl.class) { GemFireCacheImpl instance = checkExistingCache(existingOk, cacheConfig); @@ -782,7 +782,7 @@ private static GemFireCacheImpl checkExistingCache(boolean existingOk, CacheConf // instance.creationStack argument is for debugging... throw new CacheExistsException(instance, LocalizedStrings.CacheFactory_0_AN_OPEN_CACHE_ALREADY_EXISTS - .toLocalizedString(instance), + .toLocalizedString(instance), instance.creationStack); } } @@ -831,7 +831,7 @@ private GemFireCacheImpl(boolean isClient, PoolFactory pf, InternalDistributedSy this.system.addResourceListener(this.resourceEventsListener); if (this.system.isLoner()) { this.system.getInternalLogWriter() - .info(LocalizedStrings.GemFireCacheImpl_RUNNING_IN_LOCAL_MODE); + .info(LocalizedStrings.GemFireCacheImpl_RUNNING_IN_LOCAL_MODE); } } else { logger.info("Running in client mode"); @@ -842,7 +842,7 @@ private GemFireCacheImpl(boolean isClient, PoolFactory pf, InternalDistributedSy if (this.dm.getDMType() == DistributionManager.ADMIN_ONLY_DM_TYPE) { throw new IllegalStateException( LocalizedStrings.GemFireCache_CANNOT_CREATE_A_CACHE_IN_AN_ADMINONLY_VM - .toLocalizedString()); + .toLocalizedString()); } this.rootRegions = new HashMap<>(); @@ -1016,28 +1016,28 @@ private ConfigurationResponse requestSharedConfiguration() { Properties clusterSecProperties = clusterConfig == null ? new Properties() : clusterConfig.getGemfireProperties(); - // If not using shared configuration, return null or throw an exception is locator is secured - if (!config.getUseSharedConfiguration()) { - if (clusterSecProperties.containsKey(ConfigurationProperties.SECURITY_MANAGER)) { - throw new GemFireConfigException( - LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION_2.toLocalizedString()); - } else { - logger.info(LocalizedMessage - .create(LocalizedStrings.GemFireCache_NOT_USING_SHARED_CONFIGURATION)); - return null; - } - } + // If not using shared configuration, return null or throw an exception is locator is secured + if (!config.getUseSharedConfiguration()) { + if (clusterSecProperties.containsKey(ConfigurationProperties.SECURITY_MANAGER)) { + throw new GemFireConfigException( + LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION_2.toLocalizedString()); + } else { + logger.info(LocalizedMessage + .create(LocalizedStrings.GemFireCache_NOT_USING_SHARED_CONFIGURATION)); + return null; + } + } - Properties serverSecProperties = config.getSecurityProps(); - // check for possible mis-configuration - if (isMisConfigured(clusterSecProperties, serverSecProperties, - ConfigurationProperties.SECURITY_MANAGER) - || isMisConfigured(clusterSecProperties, serverSecProperties, - ConfigurationProperties.SECURITY_POST_PROCESSOR)) { - throw new GemFireConfigException( - LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION.toLocalizedString()); - } - return response; + Properties serverSecProperties = config.getSecurityProps(); + // check for possible mis-configuration + if (isMisConfigured(clusterSecProperties, serverSecProperties, + ConfigurationProperties.SECURITY_MANAGER) + || isMisConfigured(clusterSecProperties, serverSecProperties, + ConfigurationProperties.SECURITY_POST_PROCESSOR)) { + throw new GemFireConfigException( + LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION.toLocalizedString()); + } + return response; } catch (ClusterConfigurationNotAvailableException e) { throw new GemFireConfigException( @@ -1160,7 +1160,7 @@ private void initialize() { } catch (IOException | ClassNotFoundException e) { throw new GemFireConfigException( LocalizedStrings.GemFireCache_EXCEPTION_OCCURRED_WHILE_DEPLOYING_JARS_FROM_SHARED_CONDFIGURATION - .toLocalizedString(), + .toLocalizedString(), e); } @@ -1321,7 +1321,7 @@ public URL getCacheXmlURL() { } catch (MalformedURLException ex) { throw new CacheXmlException( LocalizedStrings.GemFireCache_COULD_NOT_CONVERT_XML_FILE_0_TO_AN_URL - .toLocalizedString(xmlFile), + .toLocalizedString(xmlFile), ex); } } @@ -1331,11 +1331,11 @@ public URL getCacheXmlURL() { if (!xmlFile.exists()) { throw new CacheXmlException( LocalizedStrings.GemFireCache_DECLARATIVE_CACHE_XML_FILERESOURCE_0_DOES_NOT_EXIST - .toLocalizedString(xmlFile)); + .toLocalizedString(xmlFile)); } else { throw new CacheXmlException( LocalizedStrings.GemFireCache_DECLARATIVE_XML_FILE_0_IS_NOT_A_FILE - .toLocalizedString(xmlFile)); + .toLocalizedString(xmlFile)); } } } @@ -1393,7 +1393,7 @@ private void initializeDeclarativeCache() } catch (IOException ex) { throw new CacheXmlException( LocalizedStrings.GemFireCache_WHILE_OPENING_CACHE_XML_0_THE_FOLLOWING_ERROR_OCCURRED_1 - .toLocalizedString(url.toString(), ex)); + .toLocalizedString(url.toString(), ex)); } catch (CacheXmlException ex) { CacheXmlException newEx = @@ -1740,7 +1740,7 @@ public void shutDownAll() { es.awaitTermination(Integer.MAX_VALUE, TimeUnit.SECONDS); } catch (InterruptedException ignore) { logger - .debug("Shutdown all interrupted while waiting for PRs to be shutdown gracefully."); + .debug("Shutdown all interrupted while waiting for PRs to be shutdown gracefully."); } } else { @@ -1815,7 +1815,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); + .waitForProfileStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all bucketLock profiles received.", partitionedRegion.getName()); @@ -1830,7 +1830,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.DISK_STORE_FLUSHED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.DISK_STORE_FLUSHED); + .waitForProfileStatus(PartitionedRegion.DISK_STORE_FLUSHED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all flush profiles received.", partitionedRegion.getName()); @@ -1864,7 +1864,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); + .waitForProfileStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all offline_equal profiles received.", partitionedRegion.getName()); @@ -1882,13 +1882,13 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } // synchronized @@ -2986,7 +2986,7 @@ public Region basicCreateRegion(String name, RegionAttributes @Override public Region createVMRegion(String name, RegionAttributes p_attrs, InternalRegionArguments internalRegionArgs) - throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { + throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { if (getMyId().getVmKind() == DistributionManager.LOCATOR_DM_TYPE) { if (!internalRegionArgs.isUsedForMetaRegion() @@ -3456,7 +3456,7 @@ public void setMessageSyncInterval(int seconds) { if (seconds < 0) { throw new IllegalArgumentException( LocalizedStrings.GemFireCache_THE_MESSAGESYNCINTERVAL_PROPERTY_FOR_CACHE_CANNOT_BE_NEGATIVE - .toLocalizedString()); + .toLocalizedString()); } HARegionQueue.setMessageSyncInterval(seconds); } @@ -3503,7 +3503,7 @@ public void regionReinitializing(String fullPath) { if (old != null) { throw new IllegalStateException( LocalizedStrings.GemFireCache_FOUND_AN_EXISTING_REINITALIZING_REGION_NAMED_0 - .toLocalizedString(fullPath)); + .toLocalizedString(fullPath)); } } @@ -3519,7 +3519,7 @@ public void regionReinitialized(Region region) { if (future == null) { throw new IllegalStateException( LocalizedStrings.GemFireCache_COULD_NOT_FIND_A_REINITIALIZING_REGION_NAMED_0 - .toLocalizedString(regionName)); + .toLocalizedString(regionName)); } future.set(region); unregisterReinitializingRegion(regionName); @@ -3794,7 +3794,7 @@ public void addGatewaySender(GatewaySender sender) { } else { throw new IllegalStateException( LocalizedStrings.GemFireCache_A_GATEWAYSENDER_WITH_ID_0_IS_ALREADY_DEFINED_IN_THIS_CACHE - .toLocalizedString(sender.getId())); + .toLocalizedString(sender.getId())); } } @@ -4448,32 +4448,32 @@ public QueryMonitor getQueryMonitor() { // ResourceManager and not overridden by system property. boolean needQueryMonitor = MAX_QUERY_EXECUTION_TIME > 0 || this.testMaxQueryExecutionTime > 0 || monitorRequired; - if (needQueryMonitor && this.queryMonitor == null) { - synchronized (this.queryMonitorLock) { - if (this.queryMonitor == null) { - int maxTime = MAX_QUERY_EXECUTION_TIME > this.testMaxQueryExecutionTime - ? MAX_QUERY_EXECUTION_TIME : this.testMaxQueryExecutionTime; - - if (monitorRequired && maxTime < 0) { - // this means that the resource manager is being used and we need to monitor query - // memory usage - // If no max execution time has been set, then we will default to five hours - maxTime = FIVE_HOURS; - } + if (needQueryMonitor && this.queryMonitor == null) { + synchronized (this.queryMonitorLock) { + if (this.queryMonitor == null) { + int maxTime = MAX_QUERY_EXECUTION_TIME > this.testMaxQueryExecutionTime + ? MAX_QUERY_EXECUTION_TIME : this.testMaxQueryExecutionTime; + + if (monitorRequired && maxTime < 0) { + // this means that the resource manager is being used and we need to monitor query + // memory usage + // If no max execution time has been set, then we will default to five hours + maxTime = FIVE_HOURS; + } - this.queryMonitor = new QueryMonitor(maxTime); - final LoggingThreadGroup group = - LoggingThreadGroup.createThreadGroup("QueryMonitor Thread Group", logger); - Thread qmThread = new Thread(group, this.queryMonitor, "QueryMonitor Thread"); - qmThread.setDaemon(true); - qmThread.start(); - if (logger.isDebugEnabled()) { - logger.debug("QueryMonitor thread started."); + this.queryMonitor = new QueryMonitor(maxTime); + final LoggingThreadGroup group = + LoggingThreadGroup.createThreadGroup("QueryMonitor Thread Group", logger); + Thread qmThread = new Thread(group, this.queryMonitor, "QueryMonitor Thread"); + qmThread.setDaemon(true); + qmThread.start(); + if (logger.isDebugEnabled()) { + logger.debug("QueryMonitor thread started."); + } + } } } - } - } - return this.queryMonitor; + return this.queryMonitor; } /** @@ -5105,18 +5105,18 @@ public void addDeclarableProperties(final Map mapOfNewDe BiPredicate isKeyIdentifiableAndSameIdPredicate = (Declarable oldKey, Declarable newKey) -> Identifiable.class.isInstance(newKey) - && ((Identifiable) oldKey).getId().equals(((Identifiable) newKey).getId()); - - Supplier isKeyClassSame = - () -> clazz.getName().equals(oldEntry.getKey().getClass().getName()); - Supplier isValueEqual = () -> newEntry.getValue().equals(oldEntry.getValue()); - Supplier isKeyIdentifiableAndSameId = - () -> isKeyIdentifiableAndSameIdPredicate.test(oldEntry.getKey(), newEntry.getKey()); - - if (isKeyClassSame.get() && (isValueEqual.get() || isKeyIdentifiableAndSameId.get())) { - matchingDeclarable = oldEntry.getKey(); - break; - } + && ((Identifiable) oldKey).getId().equals(((Identifiable) newKey).getId()); + + Supplier isKeyClassSame = + () -> clazz.getName().equals(oldEntry.getKey().getClass().getName()); + Supplier isValueEqual = () -> newEntry.getValue().equals(oldEntry.getValue()); + Supplier isKeyIdentifiableAndSameId = + () -> isKeyIdentifiableAndSameIdPredicate.test(oldEntry.getKey(), newEntry.getKey()); + + if (isKeyClassSame.get() && (isValueEqual.get() || isKeyIdentifiableAndSameId.get())) { + matchingDeclarable = oldEntry.getKey(); + break; + } } if (matchingDeclarable != null) { this.declarablePropertiesMap.remove(matchingDeclarable); diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index fd2c721f4dff..69b3c801ffe3 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -17,6 +17,45 @@ import static org.apache.geode.internal.lang.SystemUtils.getLineSeparator; import static org.apache.geode.internal.offheap.annotations.OffHeapIdentifier.ENTRY_EVENT_NEW_VALUE; +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.AbstractSet; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.Semaphore; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import javax.transaction.RollbackException; +import javax.transaction.Status; +import javax.transaction.SystemException; +import javax.transaction.Transaction; + +import org.apache.logging.log4j.Logger; + import org.apache.geode.CancelCriterion; import org.apache.geode.CancelException; import org.apache.geode.CopyHelper; @@ -179,44 +218,6 @@ import org.apache.geode.internal.util.concurrent.StoppableReadWriteLock; import org.apache.geode.pdx.JSONFormatter; import org.apache.geode.pdx.PdxInstance; -import org.apache.logging.log4j.Logger; - -import java.io.DataInputStream; -import java.io.DataOutputStream; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.AbstractSet; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.EnumSet; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.Future; -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.Semaphore; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; /** * Implementation of a local scoped-region. Note that this class has a different meaning starting @@ -226,7 +227,7 @@ */ @SuppressWarnings("deprecation") public class LocalRegion extends AbstractRegion implements LoaderHelperFactory, - ResourceListener, DiskExceptionHandler, DiskRecoveryStore { +ResourceListener, DiskExceptionHandler, DiskRecoveryStore { // package-private to avoid synthetic accessor static final Logger logger = LogService.getLogger(); @@ -578,7 +579,7 @@ protected LocalRegion(String regionName, RegionAttributes attrs, LocalRegion par if (cache.getOffHeapStore() == null) { throw new IllegalStateException( LocalizedStrings.LocalRegion_THE_REGION_0_WAS_CONFIGURED_TO_USE_OFF_HEAP_MEMORY_BUT_OFF_HEAP_NOT_CONFIGURED - .toLocalizedString(myName)); + .toLocalizedString(myName)); } } @@ -634,25 +635,25 @@ protected LocalRegion(String regionName, RegionAttributes attrs, LocalRegion par internalRegionArgs.getCacheServiceProfiles() == null ? Collections.emptyMap() : Collections.unmodifiableMap(internalRegionArgs.getCacheServiceProfiles()); - if (!isUsedForMetaRegion && !isUsedForPartitionedRegionAdmin - && !isUsedForPartitionedRegionBucket && !isUsedForSerialGatewaySenderQueue - && !isUsedForParallelGatewaySenderQueue) { - this.filterProfile = new FilterProfile(this); - } + if (!isUsedForMetaRegion && !isUsedForPartitionedRegionAdmin + && !isUsedForPartitionedRegionBucket && !isUsedForSerialGatewaySenderQueue + && !isUsedForParallelGatewaySenderQueue) { + this.filterProfile = new FilterProfile(this); + } - // initialize client to server proxy - this.serverRegionProxy = this.getPoolName() != null ? new ServerRegionProxy(this) : null; - this.imageState = new UnsharedImageState(this.serverRegionProxy != null, - getDataPolicy().withReplication() || getDataPolicy().isPreloaded(), - getAttributes().getDataPolicy().withPersistence(), this.stopper); + // initialize client to server proxy + this.serverRegionProxy = this.getPoolName() != null ? new ServerRegionProxy(this) : null; + this.imageState = new UnsharedImageState(this.serverRegionProxy != null, + getDataPolicy().withReplication() || getDataPolicy().isPreloaded(), + getAttributes().getDataPolicy().withPersistence(), this.stopper); - createEventTracker(); + createEventTracker(); - // prevent internal regions from participating in a TX, bug 38709 - this.supportsTX = !isSecret() && !isUsedForPartitionedRegionAdmin() && !isUsedForMetaRegion() - || isMetaRegionWithTransactions(); + // prevent internal regions from participating in a TX, bug 38709 + this.supportsTX = !isSecret() && !isUsedForPartitionedRegionAdmin() && !isUsedForMetaRegion() + || isMetaRegionWithTransactions(); - this.testCallable = internalRegionArgs.getTestCallable(); + this.testCallable = internalRegionArgs.getTestCallable(); } private RegionMap createRegionMap(InternalRegionArguments internalRegionArgs) { @@ -710,7 +711,7 @@ Object getSizeGuard() { return new Object(); } else { return this.fullPath; // avoids creating another sync object - could be anything unique to - // this region + // this region } } @@ -859,7 +860,7 @@ public VersionSource getVersionMember() { // TODO: createSubregion method is too complex for IDE to analyze public Region createSubregion(String subregionName, RegionAttributes attrs, InternalRegionArguments internalRegionArgs) - throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { + throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { checkReadiness(); RegionAttributes regionAttributes = attrs; @@ -914,8 +915,8 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, newRegion = local ? new LocalRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs) - : new DistributedRegion(subregionName, regionAttributes, this, this.cache, - internalRegionArgs); + : new DistributedRegion(subregionName, regionAttributes, this, this.cache, + internalRegionArgs); } Object previousValue = this.subregions.putIfAbsent(subregionName, newRegion); @@ -955,7 +956,7 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, this.cache.setRegionByPath(newRegion.getFullPath(), newRegion); if (regionAttributes instanceof UserSpecifiedRegionAttributes) { internalRegionArgs - .setIndexes(((UserSpecifiedRegionAttributes) regionAttributes).getIndexes()); + .setIndexes(((UserSpecifiedRegionAttributes) regionAttributes).getIndexes()); } // releases initialization Latches @@ -974,8 +975,8 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, } else { newRegion.initialCriticalMembers( this.cache.getInternalResourceManager().getHeapMonitor().getState().isCritical() - || this.cache.getInternalResourceManager().getOffHeapMonitor().getState() - .isCritical(), + || this.cache.getInternalResourceManager().getOffHeapMonitor().getState() + .isCritical(), this.cache.getResourceAdvisor().adviseCritialMembers()); } @@ -993,10 +994,10 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, throw e; } catch (RuntimeException validationException) { logger - .warn( - LocalizedMessage.create( - LocalizedStrings.LocalRegion_INITIALIZATION_FAILED_FOR_REGION_0, getFullPath()), - validationException); + .warn( + LocalizedMessage.create( + LocalizedStrings.LocalRegion_INITIALIZATION_FAILED_FOR_REGION_0, getFullPath()), + validationException); throw validationException; } finally { if (!success) { @@ -1052,8 +1053,8 @@ private void validatedCreate(EntryEventImpl event, long startPut) false, // ifOld null, // expectedOldValue true // requireOldValue TODO txMerge why is oldValue required for - // create? I think so that the EntryExistsException will have it. - )) { + // create? I think so that the EntryExistsException will have it. + )) { throw new EntryExistsException(event.getKey().toString(), event.getOldValue()); } else { if (!getDataView().isDeferredStats()) { @@ -1212,7 +1213,7 @@ public Object getDeserializedValue(RegionEntry regionEntry, final KeyInfo keyInf "getDeserializedValue for {} returning version: {} returnTombstones: {} value: {}", keyInfo.getKey(), regionEntry.getVersionStamp() == null ? "null" : regionEntry.getVersionStamp().asVersionTag(), - returnTombstones, value); + returnTombstones, value); } return value; } finally { @@ -1305,7 +1306,7 @@ public Object get(Object key, Object aCallbackArgument, boolean generateCallback public Object get(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, boolean preferCD, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return get(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, preferCD, requestingClient, clientEvent, returnTombstones, false, false); } @@ -1317,7 +1318,7 @@ public Object get(Object key, Object aCallbackArgument, boolean generateCallback public Object getRetained(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return getRetained(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, requestingClient, clientEvent, returnTombstones, false); } @@ -1332,7 +1333,7 @@ public Object getRetained(Object key, Object aCallbackArgument, boolean generate private Object getRetained(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones, boolean opScopeIsLocal) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return get(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, true, requestingClient, clientEvent, returnTombstones, opScopeIsLocal, false /* see GEODE-1291 */); } @@ -1593,7 +1594,7 @@ Object validatedPut(EntryEventImpl event, long startPut) false, // ifOld null, // expectedOldValue false // requireOldValue - )) { + )) { if (!event.isOldValueOffHeap()) { // don't copy it to heap just to return from put. // TODO: come up with a better way to do this. @@ -1671,7 +1672,7 @@ private void extractDeltaIntoEvent(Object value, EntryEventImpl event) { } else if (this instanceof DistributedRegion && !((DistributedRegion) this).scope.isDistributedNoAck() && !((CacheDistributionAdvisee) this).getCacheDistributionAdvisor().adviseCacheOp() - .isEmpty()) { + .isEmpty()) { extractDelta = true; } if (!extractDelta && ClientHealthMonitor.getInstance() != null) { @@ -1691,7 +1692,7 @@ private void extractDeltaIntoEvent(Object value, EntryEventImpl event) { } catch (Exception e) { throw new DeltaSerializationException( LocalizedStrings.DistributionManager_CAUGHT_EXCEPTION_WHILE_SENDING_DELTA - .toLocalizedString(), + .toLocalizedString(), e); } event.setDeltaBytes(hdos.toByteArray()); @@ -2081,11 +2082,11 @@ public void writeToDisk() { if (dp.isEmpty()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_WRITE_A_REGION_WITH_DATAPOLICY_0_TO_DISK - .toLocalizedString(dp)); + .toLocalizedString(dp)); } else if (!dp.withPersistence() && !isOverflowEnabled()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_WRITE_A_REGION_THAT_IS_NOT_CONFIGURED_TO_ACCESS_DISKS - .toLocalizedString()); + .toLocalizedString()); } } else { this.diskRegion.asynchForceFlush(); @@ -2171,13 +2172,13 @@ public void localDestroy(Object key, Object aCallbackArgument) throws EntryNotFo // cache writer not called throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // no distributed lock throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } finally { event.release(); @@ -2195,13 +2196,13 @@ public void localDestroyRegion(Object aCallbackArgument) { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -2220,13 +2221,13 @@ public void close() { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -2287,7 +2288,7 @@ static LocalRegion getRegionFromPath(DistributedSystem system, String path) { */ protected void initialize(InputStream snapshotInputStream, InternalDistributedMember imageTarget, InternalRegionArguments internalRegionArgs) - throws TimeoutException, IOException, ClassNotFoundException { + throws TimeoutException, IOException, ClassNotFoundException { if (!isInternalRegion()) { // Subclasses may have already called this method, but this is // acceptable because addResourceListener won't add it twice @@ -2427,11 +2428,11 @@ void createOQLIndexes(InternalRegionArguments internalRegionArgs, boolean recove DefaultQueryService qs = (DefaultQueryService) getGemFireCache().getLocalQueryService(); String fromClause = icd.getIndexType() == IndexType.FUNCTIONAL || icd.getIndexType() == IndexType.HASH - ? icd.getIndexFromClause() : this.getFullPath(); - // load entries during initialization only for non overflow regions - indexes.add( - qs.createIndex(icd.getIndexName(), icd.getIndexType(), icd.getIndexExpression(), - fromClause, icd.getIndexImportString(), !isOverflowToDisk)); + ? icd.getIndexFromClause() : this.getFullPath(); + // load entries during initialization only for non overflow regions + indexes.add( + qs.createIndex(icd.getIndexName(), icd.getIndexType(), icd.getIndexExpression(), + fromClause, icd.getIndexImportString(), !isOverflowToDisk)); } } catch (Exception ex) { @@ -3095,7 +3096,7 @@ private void cacheWriteBeforeRegionClear(RegionEventImpl event) void cacheWriteBeforePut(EntryEventImpl event, Set netWriteRecipients, CacheWriter localWriter, boolean requireOldValue, Object expectedOldValue) - throws CacheWriterException, TimeoutException { + throws CacheWriterException, TimeoutException { Assert.assertTrue(netWriteRecipients == null); Operation operation = event.getOperation(); boolean isPutIfAbsentOrReplace = @@ -3132,7 +3133,7 @@ void validateKey(Object key) { if (!this.keyConstraint.isInstance(key)) throw new ClassCastException( LocalizedStrings.LocalRegion_KEY_0_DOES_NOT_SATISFY_KEYCONSTRAINT_1 - .toLocalizedString(key.getClass().getName(), this.keyConstraint.getName())); + .toLocalizedString(key.getClass().getName(), this.keyConstraint.getName())); } // We don't need to check that the key is Serializable. Instead, @@ -3189,7 +3190,7 @@ private void validateValue(Object value) { } throw new ClassCastException( LocalizedStrings.LocalRegion_VALUE_0_DOES_NOT_SATISFY_VALUECONSTRAINT_1 - .toLocalizedString(valueClassName, this.valueConstraint.getName())); + .toLocalizedString(valueClassName, this.valueConstraint.getName())); } } } @@ -3237,8 +3238,8 @@ private void scheduleTombstone(RegionEntry entry, VersionTag destroyedVersion, logger.trace(LogMarker.TOMBSTONE_COUNT, "{} tombstone for {} version={} count is {} entryMap size is {}", reschedule ? "rescheduling" : "scheduling", entry.getKey(), - entry.getVersionStamp().asVersionTag(), this.tombstoneCount.get(), - this.entries.size()/* , new Exception("stack trace") */); + entry.getVersionStamp().asVersionTag(), this.tombstoneCount.get(), + this.entries.size()/* , new Exception("stack trace") */); // this can be useful for debugging tombstone count problems if there aren't a lot of // concurrent threads // if (TombstoneService.DEBUG_TOMBSTONE_COUNT && this.entries instanceof AbstractRegionMap) { @@ -3378,7 +3379,7 @@ private void validateSubregionAttributes(RegionAttributes attrs) { if (this.scope == Scope.LOCAL && attrs.getScope() != Scope.LOCAL) { throw new IllegalStateException( LocalizedStrings.LocalRegion_A_REGION_WITH_SCOPELOCAL_CAN_ONLY_HAVE_SUBREGIONS_WITH_SCOPELOCAL - .toLocalizedString()); + .toLocalizedString()); } } @@ -3567,7 +3568,7 @@ public void saveSnapshot(OutputStream outputStream) throws IOException { if (isProxy()) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGIONS_WITH_DATAPOLICY_0_DO_NOT_SUPPORT_SAVESNAPSHOT - .toLocalizedString(getDataPolicy())); + .toLocalizedString(getDataPolicy())); } checkForNoAccess(); DataOutputStream out = new DataOutputStream(outputStream); @@ -3617,7 +3618,7 @@ public void loadSnapshot(InputStream inputStream) if (isProxy()) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGIONS_WITH_DATAPOLICY_0_DO_NOT_SUPPORT_LOADSNAPSHOT - .toLocalizedString(getDataPolicy())); + .toLocalizedString(getDataPolicy())); } if (inputStream == null) { throw new NullPointerException( @@ -3701,7 +3702,7 @@ private void processSingleInterest(Object key, int interestType, if (isDurable && !proxy.getPool().isDurableClient()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_DURABLE_FLAG_ONLY_APPLICABLE_FOR_DURABLE_CLIENTS - .toLocalizedString()); + .toLocalizedString()); } if (!proxy.getPool().getSubscriptionEnabled()) { String msg = "Interest registration requires a pool whose queue is enabled."; @@ -3712,7 +3713,7 @@ private void processSingleInterest(Object key, int interestType, && !getAttributes().getScope().isLocal()) { // fix for bug 37692 throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_INTEREST_REGISTRATION_NOT_SUPPORTED_ON_REPLICATED_REGIONS - .toLocalizedString()); + .toLocalizedString()); } if (key == null) { @@ -3973,7 +3974,7 @@ public Set getKeysWithInterest(int interestType, Object interestArg, boolean all if (!(interestArg instanceof String)) { throw new IllegalArgumentException( LocalizedStrings.AbstractRegion_REGULAR_EXPRESSION_ARGUMENT_WAS_NOT_A_STRING - .toLocalizedString()); + .toLocalizedString()); } Pattern keyPattern = Pattern.compile((String) interestArg); @@ -4011,12 +4012,12 @@ public Set getKeysWithInterest(int interestType, Object interestArg, boolean all } else if (interestType == InterestType.FILTER_CLASS) { throw new UnsupportedOperationException( LocalizedStrings.AbstractRegion_INTERESTTYPEFILTER_CLASS_NOT_YET_SUPPORTED - .toLocalizedString()); + .toLocalizedString()); } else if (interestType == InterestType.OQL_QUERY) { throw new UnsupportedOperationException( LocalizedStrings.AbstractRegion_INTERESTTYPEOQL_QUERY_NOT_YET_SUPPORTED - .toLocalizedString()); + .toLocalizedString()); } else { throw new IllegalArgumentException(LocalizedStrings.AbstractRegion_UNSUPPORTED_INTEREST_TYPE_0 @@ -4100,13 +4101,13 @@ protected void localDestroyNoCallbacks(Object key) { // cache writer not called throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // no distributed lock throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (EntryNotFoundException ignore) { // not a problem @@ -4498,7 +4499,7 @@ private void recreate(InputStream inputStream, InternalDistributedMember imageTa // shouldn't happen since we're holding the destroy lock throw new InternalGemFireError( LocalizedStrings.LocalRegion_GOT_REGIONEXISTSEXCEPTION_IN_REINITIALIZE_WHEN_HOLDING_DESTROY_LOCK - .toLocalizedString(), + .toLocalizedString(), e); } finally { if (newRegion == null) { @@ -4517,7 +4518,7 @@ void loadSnapshotDuringInitialization(InputStream inputStream) if (snapshotVersion != SNAPSHOT_VERSION) { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_UNSUPPORTED_SNAPSHOT_VERSION_0_ONLY_VERSION_1_IS_SUPPORTED - .toLocalizedString(new Object[] {snapshotVersion, SNAPSHOT_VERSION})); + .toLocalizedString(new Object[] {snapshotVersion, SNAPSHOT_VERSION})); } for (;;) { Object key = DataSerializer.readObject(in); @@ -4537,7 +4538,7 @@ void loadSnapshotDuringInitialization(InputStream inputStream) } else { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_UNEXPECTED_SNAPSHOT_CODE_0_THIS_SNAPSHOT_WAS_PROBABLY_WRITTEN_BY_AN_EARLIER_INCOMPATIBLE_RELEASE - .toLocalizedString(aByte)); + .toLocalizedString(aByte)); } // If versioning is enabled, we will give the entry a "fake" version. @@ -4924,7 +4925,7 @@ && getDataPolicy().withReplication() && invokeCallbacks) { // catches case where being called by (distributed) invalidateRegion throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_DO_A_LOCAL_INVALIDATE_ON_A_REPLICATED_REGION - .toLocalizedString()); + .toLocalizedString()); } if (hasSeenEvent(event)) { @@ -5043,7 +5044,7 @@ void txApplyInvalidatePart2(RegionEntry regionEntry, Object key, boolean didDest */ protected boolean basicPut(EntryEventImpl event, boolean ifNew, boolean ifOld, Object expectedOldValue, boolean requireOldValue) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { return getDataView().putEntry(event, ifNew, ifOld, expectedOldValue, requireOldValue, 0L, false); } @@ -5095,7 +5096,7 @@ void txApplyPutPart2(RegionEntry regionEntry, Object key, long lastModified, boo try { this.indexManager.updateIndexes(regionEntry, isCreate ? IndexManager.ADD_ENTRY : IndexManager.UPDATE_ENTRY, - isCreate ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); + isCreate ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); } catch (QueryException e) { throw new IndexMaintenanceException(e); } @@ -5115,7 +5116,7 @@ void txApplyPutPart2(RegionEntry regionEntry, Object key, long lastModified, boo public boolean basicBridgeCreate(final Object key, final byte[] value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent, boolean throwEntryExists) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); Object theCallbackArg = callbackArg; @@ -5275,7 +5276,7 @@ private void concurrencyConfigurationCheck(VersionTag tag) { public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Object value, byte[] deltaBytes, boolean isObject, Object callbackArgument, boolean isCreate, boolean processedMarker, EntryEventImpl event, EventID eventID) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { if (isCacheContentProxy()) { return; @@ -5322,7 +5323,7 @@ public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Obje if (isInitialized()) { invokePutCallbacks( isCreate ? EnumListenerEvent.AFTER_CREATE : EnumListenerEvent.AFTER_UPDATE, event, true, - true); + true); } } } @@ -5333,7 +5334,7 @@ public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Obje */ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, Object callbackArgument, boolean processedMarker, EventID eventID, VersionTag versionTag) - throws EntryNotFoundException { + throws EntryNotFoundException { if (!isCacheContentProxy()) { concurrencyConfigurationCheck(versionTag); @@ -5341,8 +5342,8 @@ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, // Create an event and put the entry @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.INVALIDATE, key, null /* newValue */, - callbackArgument /* callbackArg */, true /* originRemote */, serverId); + EntryEventImpl.create(this, Operation.INVALIDATE, key, null /* newValue */, + callbackArgument /* callbackArg */, true /* originRemote */, serverId); try { event.setVersionTag(versionTag); @@ -5382,7 +5383,7 @@ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, */ public void basicBridgeClientDestroy(DistributedMember serverId, Object key, Object callbackArgument, boolean processedMarker, EventID eventID, VersionTag versionTag) - throws EntryNotFoundException { + throws EntryNotFoundException { if (!isCacheContentProxy()) { concurrencyConfigurationCheck(versionTag); @@ -5390,8 +5391,8 @@ public void basicBridgeClientDestroy(DistributedMember serverId, Object key, // Create an event and destroy the entry @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.DESTROY, key, null /* newValue */, - callbackArgument /* callbackArg */, true /* originRemote */, serverId); + EntryEventImpl.create(this, Operation.DESTROY, key, null /* newValue */, + callbackArgument /* callbackArg */, true /* originRemote */, serverId); try { event.setFromServer(true); event.setVersionTag(versionTag); @@ -5452,7 +5453,7 @@ public void basicBridgeClientClear(Object callbackArgument, boolean processedMar public void basicBridgeDestroy(Object key, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { Object theCallbackArg = callbackArg; if (fromClient) { @@ -5490,7 +5491,7 @@ public void basicBridgeDestroy(Object key, Object callbackArg, ClientProxyMember // TODO: fromClient is always true public void basicBridgeInvalidate(Object key, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { Object theCallbackArg = callbackArg; if (fromClient) { @@ -5583,7 +5584,7 @@ void basicUpdateEntryVersion(EntryEventImpl event) throws EntryNotFoundException */ boolean basicUpdate(final EntryEventImpl event, final boolean ifNew, final boolean ifOld, final long lastModified, final boolean overwriteDestroyed) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { // check validity of key against keyConstraint if (this.keyConstraint != null) { @@ -5674,7 +5675,7 @@ private void checkIfAboveThreshold(final Object key) throws LowMemoryException { // #45603: trigger a background eviction since we're above the the critical // threshold InternalResourceManager.getInternalResourceManager(this.cache).getHeapMonitor() - .updateStateAndSendEvent(); + .updateStateAndSendEvent(); throw new LowMemoryException( LocalizedStrings.ResourceManager_LOW_MEMORY_IN_0_FOR_PUT_1_MEMBER_2.toLocalizedString( @@ -5740,7 +5741,7 @@ protected long basicPutPart2(EntryEventImpl event, RegionEntry entry, boolean is if (!entry.isInvalid()) { this.indexManager.updateIndexes(entry, isNewKey ? IndexManager.ADD_ENTRY : IndexManager.UPDATE_ENTRY, - isNewKey ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); + isNewKey ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); } } catch (QueryException e) { throw new IndexMaintenanceException(e); @@ -6403,7 +6404,7 @@ protected void postCreateRegion() { rm.setEvictionHeapPercentage(evictionPercentage); if (logWriter.fineEnabled()) { logWriter - .fine("Enabled heap eviction at " + evictionPercentage + " percent for LRU region"); + .fine("Enabled heap eviction at " + evictionPercentage + " percent for LRU region"); } } @@ -6525,7 +6526,7 @@ public boolean isTX() { */ boolean mapDestroy(final EntryEventImpl event, final boolean cacheWrite, final boolean isEviction, Object expectedOldValue) - throws CacheWriterException, EntryNotFoundException, TimeoutException { + throws CacheWriterException, EntryNotFoundException, TimeoutException { final boolean inGII = lockGII(); try { // make sure unlockGII is called for bug 40001 @@ -6678,17 +6679,17 @@ boolean evictDestroy(LRUEntry entry) { } catch (CacheWriterException error) { throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), error); } catch (TimeoutException anotherError) { throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), anotherError); } catch (EntryNotFoundException yetAnotherError) { throw new Error( LocalizedStrings.LocalRegion_ENTRYNOTFOUNDEXCEPTION_SHOULD_BE_MASKED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), yetAnotherError); } finally { event.release(); @@ -7297,7 +7298,7 @@ private void detachPool() { PoolImpl pool = (PoolImpl) PoolManager.find(this.getPoolName()); if (poolName != null && pool != null) { serverRegionProxy - .detach(internalCache.keepDurableSubscriptionsAlive() || pool.getKeepAlive()); + .detach(internalCache.keepDurableSubscriptionsAlive() || pool.getKeepAlive()); } else { serverRegionProxy.detach(internalCache.keepDurableSubscriptionsAlive()); } @@ -7363,7 +7364,7 @@ void handleCacheClose(Operation operation) { if (!ids.isDisconnecting()) { throw new InternalGemFireError( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_HERE - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -7387,7 +7388,7 @@ public static void validateRegionName(String name, InternalRegionArguments inter if (name.contains(SEPARATOR)) { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_NAME_CANNOT_CONTAIN_THE_SEPARATOR_0 - .toLocalizedString(SEPARATOR)); + .toLocalizedString(SEPARATOR)); } // Validate the name of the region only if it isn't an internal region @@ -7451,7 +7452,7 @@ private void checkRegionDestroyed(boolean checkCancel) { if (this.isDestroyedForParallelWAN) { throw new RegionDestroyedException( LocalizedStrings.LocalRegion_REGION_IS_BEING_DESTROYED_WAITING_FOR_PARALLEL_QUEUE_TO_DRAIN - .toLocalizedString(), + .toLocalizedString(), getFullPath()); } } @@ -7483,7 +7484,7 @@ protected void checkIfReplicatedAndLocalDestroy(EntryEventImpl event) { && !isUsedForSerialGatewaySenderQueue()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_NOT_ALLOWED_TO_DO_A_LOCAL_DESTROY_ON_A_REPLICATED_REGION - .toLocalizedString()); + .toLocalizedString()); } } @@ -7981,7 +7982,7 @@ public CacheStatistics getStatistics() { if (!lr.statisticsEnabled) { throw new StatisticsDisabledException( LocalizedStrings.LocalRegion_STATISTICS_DISABLED_FOR_REGION_0 - .toLocalizedString(lr.getFullPath())); + .toLocalizedString(lr.getFullPath())); } return new CacheStatisticsImpl(getCheckedRegionEntry(), lr); } @@ -8446,7 +8447,7 @@ private void jtaEnlistmentFailureCleanup(TXStateInterface txState, Exception rea throw new FailedSynchronizationException( LocalizedStrings.LocalRegion_FAILED_ENLISTEMENT_WITH_TRANSACTION_0 - .toLocalizedString(jtaTransName), + .toLocalizedString(jtaTransName), reason); } @@ -8589,7 +8590,7 @@ public Iterator iterator() { public void remove() { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_THIS_ITERATOR_DOES_NOT_SUPPORT_MODIFICATION - .toLocalizedString()); + .toLocalizedString()); } @Override @@ -8799,7 +8800,7 @@ public CacheStatistics getStatistics() { if (!LocalRegion.this.statisticsEnabled) { throw new StatisticsDisabledException( LocalizedStrings.LocalRegion_STATISTICS_DISABLED_FOR_REGION_0 - .toLocalizedString(getFullPath())); + .toLocalizedString(getFullPath())); } return new CacheStatisticsImpl(this.basicGetEntry(), LocalRegion.this); } @@ -8920,7 +8921,7 @@ public boolean containsValue(final Object value) { if (value == null) { throw new NullPointerException( LocalizedStrings.LocalRegion_VALUE_FOR_CONTAINSVALUEVALUE_CANNOT_BE_NULL - .toLocalizedString()); + .toLocalizedString()); } checkReadiness(); checkForNoAccess(); @@ -8975,7 +8976,7 @@ public Object remove(Object key) { // TODO: fromClient is always true public void basicBridgeDestroyRegion(Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EventID eventId) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -8993,7 +8994,7 @@ public void basicBridgeDestroyRegion(Object callbackArg, final ClientProxyMember public void basicBridgeClear(Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EventID eventId) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -9173,7 +9174,7 @@ void clearRegionLocally(RegionEventImpl regionEvent, boolean cacheWrite, // TODO: never throw an annonymous class (and outer-class is not serializable) throw new CacheRuntimeException( LocalizedStrings.LocalRegion_EXCEPTION_OCCURRED_WHILE_RE_CREATING_INDEX_DATA_ON_CLEARED_REGION - .toLocalizedString(), + .toLocalizedString(), qe) { private static final long serialVersionUID = 0L; }; @@ -9206,7 +9207,7 @@ void basicLocalClear(RegionEventImpl rEvent) { public void handleInterestEvent(InterestRegistrationEvent event) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGION_INTEREST_REGISTRATION_IS_ONLY_SUPPORTED_FOR_PARTITIONEDREGIONS - .toLocalizedString()); + .toLocalizedString()); } // TODO: refactor basicGetAll @@ -9389,7 +9390,7 @@ private void verifyRemoveAllKeys(Collection keys) { */ public VersionedObjectList basicBridgePutAll(Map map, Map retryVersions, ClientProxyMembershipID memberId, EventID eventId, boolean skipCallbacks, Object callbackArg) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { long startPut = CachePerfStats.getStatTime(); if (isGatewaySenderEnabled()) { @@ -9579,7 +9580,7 @@ public VersionedObjectList basicPutAll(final Map map, if (runtimeException == null) { runtimeException = new ServerOperationException( LocalizedStrings.Region_PutAll_Applied_PartialKeys_At_Server_0 - .toLocalizedString(getFullPath()), + .toLocalizedString(getFullPath()), e.getFailure()); } } @@ -9702,8 +9703,8 @@ public void run() { // postPutAll() to fill in the version tags. partialKeys.setSucceededKeysAndVersions(succeeded); logger - .info(LocalizedMessage.create(LocalizedStrings.Region_PutAll_Applied_PartialKeys_0_1, - new Object[] {getFullPath(), partialKeys})); + .info(LocalizedMessage.create(LocalizedStrings.Region_PutAll_Applied_PartialKeys_0_1, + new Object[] {getFullPath(), partialKeys})); if (isDebugEnabled) { logger.debug(partialKeys.detailString()); } @@ -9796,7 +9797,7 @@ VersionedObjectList basicRemoveAll(final Collection keys, if (runtimeException == null) { runtimeException = new ServerOperationException( LocalizedStrings.Region_RemoveAll_Applied_PartialKeys_At_Server_0 - .toLocalizedString(getFullPath()), + .toLocalizedString(getFullPath()), e.getFailure()); } } @@ -10078,7 +10079,7 @@ private void basicEntryPutAll(Object key, Object value, DistributedPutAllOperati @Released EntryEventImpl event = - EntryEventImpl.createPutAllEvent(putallOp, this, Operation.PUTALL_CREATE, key, value); + EntryEventImpl.createPutAllEvent(putallOp, this, Operation.PUTALL_CREATE, key, value); try { if (tagHolder != null) { @@ -10182,11 +10183,11 @@ public void postPutAllFireEvents(DistributedPutAllOperation putAllOp, : EnumListenerEvent.AFTER_UPDATE; invokePutCallbacks(op, event, !event.callbacksInvoked() && !event.isPossibleDuplicate(), this.isUsedForPartitionedRegionBucket - /* - * If this is replicated region, use "false". We must notify gateways inside RegionEntry - * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is - * bucket region, use "true", because the event order is guaranteed - */); + /* + * If this is replicated region, use "false". We must notify gateways inside RegionEntry + * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is + * bucket region, use "true", because the event order is guaranteed + */); } } } @@ -10215,11 +10216,11 @@ public void postRemoveAllFireEvents(DistributedRemoveAllOperation removeAllOp, invokeDestroyCallbacks(EnumListenerEvent.AFTER_DESTROY, event, !event.callbacksInvoked() && !event.isPossibleDuplicate(), this.isUsedForPartitionedRegionBucket - /* - * If this is replicated region, use "false". We must notify gateways inside RegionEntry - * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is - * bucket region, use "true", because the event order is guaranteed - */); + /* + * If this is replicated region, use "false". We must notify gateways inside RegionEntry + * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is + * bucket region, use "true", because the event order is guaranteed + */); } } } @@ -10487,40 +10488,40 @@ public LoaderHelper createLoaderHelper(Object key, Object callbackArgument, /** visitor over the CacheProfiles to check if the region has a CacheLoader */ private static final DistributionAdvisor.ProfileVisitor netLoaderVisitor = new DistributionAdvisor.ProfileVisitor() { - @Override - public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, - int numProfiles, Void aggregate) { - assert profile instanceof CacheProfile; - final CacheProfile prof = (CacheProfile) profile; - - // if region in cache is not yet initialized, exclude - if (prof.regionInitialized) { // fix for bug 41102 - // cut the visit short if we find a CacheLoader - return !prof.hasCacheLoader; - } - // continue the visit - return true; - } - }; + @Override + public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, + int numProfiles, Void aggregate) { + assert profile instanceof CacheProfile; + final CacheProfile prof = (CacheProfile) profile; + + // if region in cache is not yet initialized, exclude + if (prof.regionInitialized) { // fix for bug 41102 + // cut the visit short if we find a CacheLoader + return !prof.hasCacheLoader; + } + // continue the visit + return true; + } + }; /** visitor over the CacheProfiles to check if the region has a CacheWriter */ private static final DistributionAdvisor.ProfileVisitor netWriterVisitor = new DistributionAdvisor.ProfileVisitor() { - @Override - public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, - int numProfiles, Void aggregate) { - assert profile instanceof CacheProfile; - final CacheProfile prof = (CacheProfile) profile; - - // if region in cache is in recovery - if (!prof.inRecovery) { - // cut the visit short if we find a CacheWriter - return !prof.hasCacheWriter; - } - // continue the visit - return true; - } - }; + @Override + public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, + int numProfiles, Void aggregate) { + assert profile instanceof CacheProfile; + final CacheProfile prof = (CacheProfile) profile; + + // if region in cache is in recovery + if (!prof.inRecovery) { + // cut the visit short if we find a CacheWriter + return !prof.hasCacheWriter; + } + // continue the visit + return true; + } + }; /** * Return true if some other member of the distributed system, not including self, has a @@ -10603,7 +10604,7 @@ protected HashMap getDestroyedSubregionSerialNumbers() { if (!this.isDestroyed) { throw new IllegalStateException( LocalizedStrings.LocalRegion_REGION_0_MUST_BE_DESTROYED_BEFORE_CALLING_GETDESTROYEDSUBREGIONSERIALNUMBERS - .toLocalizedString(getFullPath())); + .toLocalizedString(getFullPath())); } return this.destroyedSubregionSerialNumbers; } @@ -10639,7 +10640,7 @@ private void addSubregionSerialNumbers(Map map) { @Override public SelectResults query(String predicate) throws FunctionDomainException, - TypeMismatchException, NameResolutionException, QueryInvocationTargetException { + TypeMismatchException, NameResolutionException, QueryInvocationTargetException { if (predicate == null) { throw new IllegalArgumentException( @@ -10715,7 +10716,7 @@ public ResultCollector executeFunction(final DistributedRegionFunctionExecutor e Set members = getMemoryThresholdReachedMembers(); throw new LowMemoryException( LocalizedStrings.ResourceManager_LOW_MEMORY_FOR_0_FUNCEXEC_MEMBERS_1 - .toLocalizedString(function.getId(), members), + .toLocalizedString(function.getId(), members), members); } final LocalResultCollector resultCollector = @@ -10751,12 +10752,12 @@ protected void setMemoryThresholdFlag(MemoryEvent event) { if (event.isLocal()) { if (event.getState().isCritical() && !event.getPreviousState().isCritical() && (event.getType() == ResourceType.HEAP_MEMORY - || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { + || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { // start rejecting operations this.memoryThresholdReached.set(true); } else if (!event.getState().isCritical() && event.getPreviousState().isCritical() && (event.getType() == ResourceType.HEAP_MEMORY - || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { + || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { this.memoryThresholdReached.set(false); } } @@ -11521,7 +11522,7 @@ private void checkIfConcurrentMapOpsAllowed() { // This check allows NORMAL with local scope to fix bug 44856 if (this.serverRegionProxy == null && (this.dataPolicy == DataPolicy.NORMAL && this.scope.isDistributed() - || this.dataPolicy == DataPolicy.EMPTY)) { + || this.dataPolicy == DataPolicy.EMPTY)) { // the functional spec says these data policies do not support concurrent map // operations throw new UnsupportedOperationException(); @@ -11634,7 +11635,7 @@ public boolean remove(Object key, Object value, Object callbackArg) { @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.REMOVE, key, null, callbackArg, false, getMyId()); + EntryEventImpl.create(this, Operation.REMOVE, key, null, callbackArg, false, getMyId()); try { if (generateEventID() && event.getEventId() == null) { @@ -11742,7 +11743,7 @@ private Object replaceWithCallbackArgument(Object key, Object value, Object call @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.REPLACE, key, value, callbackArg, false, getMyId()); + EntryEventImpl.create(this, Operation.REPLACE, key, value, callbackArg, false, getMyId()); try { if (generateEventID()) { @@ -11772,7 +11773,7 @@ private Object replaceWithCallbackArgument(Object key, Object value, Object call public Object basicBridgePutIfAbsent(final Object key, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11853,7 +11854,7 @@ public Version[] getSerializationVersions() { public boolean basicBridgeReplace(final Object key, Object expectedOldValue, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11913,7 +11914,7 @@ public boolean basicBridgeReplace(final Object key, Object expectedOldValue, Obj public Object basicBridgeReplace(final Object key, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11982,7 +11983,7 @@ public Object basicBridgeReplace(final Object key, Object value, boolean isObjec // TODO: fromClient is always true public void basicBridgeRemove(Object key, Object expectedOldValue, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -12090,8 +12091,8 @@ boolean expireRegion(RegionExpiryTask regionExpiryTask, boolean distributed, boo // release the sync before doing the operation to prevent deadlock caused by r48875 Operation op = destroy ? distributed ? Operation.REGION_EXPIRE_DESTROY : Operation.REGION_EXPIRE_LOCAL_DESTROY - : distributed ? Operation.REGION_EXPIRE_INVALIDATE - : Operation.REGION_EXPIRE_LOCAL_INVALIDATE; + : distributed ? Operation.REGION_EXPIRE_INVALIDATE + : Operation.REGION_EXPIRE_LOCAL_INVALIDATE; RegionEventImpl event = new RegionEventImpl(this, op, null, false, getMyId(), generateEventID()); if (destroy) { diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java index 114ddda51671..2007f35029d7 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/DistributionConfigJUnitTest.java @@ -21,6 +21,7 @@ import static org.apache.geode.distributed.ConfigurationProperties.ENABLE_CLUSTER_CONFIGURATION; import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_PORT; import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_BEAN_INPUT_NAMES; import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_HTTP_PORT; import static org.apache.geode.distributed.ConfigurationProperties.LOG_DISK_SPACE_LIMIT; import static org.apache.geode.distributed.ConfigurationProperties.LOG_FILE_SIZE_LIMIT; @@ -35,26 +36,13 @@ import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_ARCHIVE_FILE; import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLE_RATE; import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLING_ENABLED; -import static org.apache.geode.distributed.ConfigurationProperties.JMX_BEAN_INPUT_NAMES; - import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; -import static org.mockito.Matchers.any; +import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import org.apache.geode.InternalGemFireException; -import org.apache.geode.UnmodifiableException; -import org.apache.geode.internal.ConfigSource; -import org.apache.geode.security.TestPostProcessor; -import org.apache.geode.security.TestSecurityManager; -import org.apache.geode.test.junit.categories.MembershipTest; -import org.apache.geode.test.junit.categories.UnitTest; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; - import java.io.File; import java.lang.reflect.Method; import java.util.ArrayList; @@ -64,6 +52,18 @@ import java.util.Map; import java.util.Properties; +import org.junit.Before; +import org.junit.Test; +import org.junit.experimental.categories.Category; + +import org.apache.geode.InternalGemFireException; +import org.apache.geode.UnmodifiableException; +import org.apache.geode.internal.ConfigSource; +import org.apache.geode.security.TestPostProcessor; +import org.apache.geode.security.TestSecurityManager; +import org.apache.geode.test.junit.categories.MembershipTest; +import org.apache.geode.test.junit.categories.UnitTest; + @Category({UnitTest.class, MembershipTest.class}) public class DistributionConfigJUnitTest { diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 985c97eb5ee2..5b18250f461d 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -14,8 +14,32 @@ */ package org.apache.geode.distributed.internal; -import static org.apache.geode.distributed.ConfigurationProperties.*; -import static org.junit.Assert.*; +import static org.apache.geode.distributed.ConfigurationProperties.ARCHIVE_DISK_SPACE_LIMIT; +import static org.apache.geode.distributed.ConfigurationProperties.ARCHIVE_FILE_SIZE_LIMIT; +import static org.apache.geode.distributed.ConfigurationProperties.CACHE_XML_FILE; +import static org.apache.geode.distributed.ConfigurationProperties.CLUSTER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.GATEWAY_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.GROUPS; +import static org.apache.geode.distributed.ConfigurationProperties.HTTP_SERVICE_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.JMX_MANAGER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.LOCATORS; +import static org.apache.geode.distributed.ConfigurationProperties.LOG_DISK_SPACE_LIMIT; +import static org.apache.geode.distributed.ConfigurationProperties.LOG_FILE_SIZE_LIMIT; +import static org.apache.geode.distributed.ConfigurationProperties.LOG_LEVEL; +import static org.apache.geode.distributed.ConfigurationProperties.MCAST_PORT; +import static org.apache.geode.distributed.ConfigurationProperties.MEMBERSHIP_PORT_RANGE; +import static org.apache.geode.distributed.ConfigurationProperties.MEMBER_TIMEOUT; +import static org.apache.geode.distributed.ConfigurationProperties.NAME; +import static org.apache.geode.distributed.ConfigurationProperties.SERVER_SSL_ENABLED; +import static org.apache.geode.distributed.ConfigurationProperties.SSL_ENABLED_COMPONENTS; +import static org.apache.geode.distributed.ConfigurationProperties.START_LOCATOR; +import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_ARCHIVE_FILE; +import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLE_RATE; +import static org.apache.geode.distributed.ConfigurationProperties.STATISTIC_SAMPLING_ENABLED; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.fail; import java.io.File; import java.io.FileWriter; @@ -30,28 +54,30 @@ import java.util.Properties; import java.util.logging.Level; -import org.apache.geode.test.junit.categories.MembershipTest; import org.junit.After; import org.junit.Assert; -import org.junit.Before; -import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.rules.ExpectedException; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionShortcut; import org.apache.geode.distributed.DistributedSystem; import org.apache.geode.distributed.DistributedSystemDisconnectedException; import org.apache.geode.distributed.Locator; import org.apache.geode.internal.AvailablePort; import org.apache.geode.internal.Config; import org.apache.geode.internal.ConfigSource; +import org.apache.geode.internal.cache.GemFireCacheImpl; +import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.internal.i18n.LocalizedStrings; import org.apache.geode.internal.logging.InternalLogWriter; import org.apache.geode.test.junit.categories.IntegrationTest; -import org.apache.geode.internal.cache.GemFireCacheImpl; -import org.apache.geode.internal.cache.LocalRegion; -import org.apache.geode.cache.*; +import org.apache.geode.test.junit.categories.MembershipTest; /** * Tests the functionality of the {@link InternalDistributedSystem} class. Mostly checks @@ -740,7 +766,7 @@ public void testSSLEnabledComponentsWrongComponentName() { new DistributionConfigImpl(props, false); illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException - .expectMessage("There is no registered component for the name: testing"); + .expectMessage("There is no registered component for the name: testing"); } @@ -753,7 +779,7 @@ public void testSSLEnabledComponentsWithLegacyJMXSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -766,7 +792,7 @@ public void testSSLEnabledComponentsWithLegacyGatewaySSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -779,7 +805,7 @@ public void testSSLEnabledComponentsWithLegacyServerSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -792,7 +818,7 @@ public void testSSLEnabledComponentsWithLegacyHTTPServiceSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } private Properties getCommonProperties() { From 55acd81509abbf9eb332f47397d6da18f1f1c268 Mon Sep 17 00:00:00 2001 From: dineshpune2006 Date: Mon, 3 Jul 2017 17:00:00 +0530 Subject: [PATCH 6/6] GEODE-3151 java spotlessApply --- .../internal/AbstractDistributionConfig.java | 236 +- .../internal/DistributionConfig.java | 6524 ++++++++--------- .../internal/InternalDistributedSystem.java | 34 +- .../internal/cache/GemFireCacheImpl.java | 154 +- .../geode/internal/cache/LocalRegion.java | 328 +- .../InternalDistributedSystemJUnitTest.java | 10 +- 6 files changed, 3643 insertions(+), 3643 deletions(-) diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java index a21a04258284..3e924a5796b8 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/AbstractDistributionConfig.java @@ -53,7 +53,7 @@ */ @SuppressWarnings("deprecation") public abstract class AbstractDistributionConfig extends AbstractConfig -implements DistributionConfig { + implements DistributionConfig { protected Object checkAttribute(String attName, Object value) { // first check to see if this attribute is modifiable, this also checks if the attribute is a @@ -102,13 +102,13 @@ protected void minMaxCheck(String propName, int value, int minValue, int maxValu if (value < minValue) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString( - new Object[] {propName, Integer.valueOf(value), Integer.valueOf(minValue)})); + .toLocalizedString( + new Object[] {propName, Integer.valueOf(value), Integer.valueOf(minValue)})); } else if (value > maxValue) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString( - new Object[] {propName, Integer.valueOf(value), Integer.valueOf(maxValue)})); + .toLocalizedString( + new Object[] {propName, Integer.valueOf(value), Integer.valueOf(maxValue)})); } } @@ -126,8 +126,8 @@ protected int checkTcpPort(int value) { if (getClusterSSLEnabled() && value != 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_0_WHEN_2_IS_TRUE - .toLocalizedString( - new Object[] {TCP_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); + .toLocalizedString( + new Object[] {TCP_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); } return value; } @@ -137,8 +137,8 @@ protected int checkMcastPort(int value) { if (getClusterSSLEnabled() && value != 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_0_WHEN_2_IS_TRUE - .toLocalizedString( - new Object[] {MCAST_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); + .toLocalizedString( + new Object[] {MCAST_PORT, Integer.valueOf(value), CLUSTER_SSL_ENABLED})); } return value; } @@ -148,7 +148,7 @@ protected InetAddress checkMcastAddress(InetAddress value) { if (!value.isMulticastAddress()) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_IT_WAS_NOT_A_MULTICAST_ADDRESS - .toLocalizedString(new Object[] {MCAST_ADDRESS, value})); + .toLocalizedString(new Object[] {MCAST_ADDRESS, value})); } return value; } @@ -158,7 +158,7 @@ protected String checkBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -168,7 +168,7 @@ protected String checkServerBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -178,7 +178,7 @@ protected Boolean checkClusterSSLEnabled(Boolean value) { if (value.booleanValue() && (getMcastPort() != 0)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_MUST_BE_FALSE_WHEN_2_IS_NOT_0 - .toLocalizedString(new Object[] {CLUSTER_SSL_ENABLED, value, MCAST_PORT})); + .toLocalizedString(new Object[] {CLUSTER_SSL_ENABLED, value, MCAST_PORT})); } return value; } @@ -188,7 +188,7 @@ protected String checkHttpServiceBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -202,15 +202,15 @@ protected int checkDistributedSystemId(int value) { if (value < MIN_DISTRIBUTED_SYSTEM_ID) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), - Integer.valueOf(MIN_DISTRIBUTED_SYSTEM_ID)})); + .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), + Integer.valueOf(MIN_DISTRIBUTED_SYSTEM_ID)})); } } if (value > MAX_DISTRIBUTED_SYSTEM_ID) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), - Integer.valueOf(MAX_DISTRIBUTED_SYSTEM_ID)})); + .toLocalizedString(new Object[] {DISTRIBUTED_SYSTEM_ID, Integer.valueOf(value), + Integer.valueOf(MAX_DISTRIBUTED_SYSTEM_ID)})); } return value; } @@ -251,7 +251,7 @@ protected String checkLocators(String value) { if (portIndex < 1) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0_HOST_NAME_WAS_EMPTY - .toLocalizedString(value)); + .toLocalizedString(value)); } // starting in 5.1.0.4 we allow '@' as the bind-addr separator @@ -277,7 +277,7 @@ protected String checkLocators(String value) { } catch (UnknownHostException ex) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_UNKNOWN_LOCATOR_HOST_0 - .toLocalizedString(host)); + .toLocalizedString(host)); } locatorsb.append(host); @@ -291,7 +291,7 @@ protected String checkLocators(String value) { } catch (UnknownHostException ex) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_UNKNOWN_LOCATOR_BIND_ADDRESS_0 - .toLocalizedString(bindAddr)); + .toLocalizedString(bindAddr)); } if (bindAddr.indexOf(':') >= 0) { @@ -307,7 +307,7 @@ protected String checkLocators(String value) { if (locator.indexOf('[') >= 0) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0 - .toLocalizedString(value)); + .toLocalizedString(value)); } else { // Using host:port syntax @@ -324,7 +324,7 @@ protected String checkLocators(String value) { } else if (portVal < 1 || portVal > 65535) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_INVALID_LOCATOR_0_THE_PORT_1_WAS_NOT_GREATER_THAN_ZERO_AND_LESS_THAN_65536 - .toLocalizedString(new Object[] {value, Integer.valueOf(portVal)})); + .toLocalizedString(new Object[] {value, Integer.valueOf(portVal)})); } } catch (NumberFormatException ex) { throw new IllegalArgumentException( @@ -360,32 +360,32 @@ protected FlowControlParams checkMcastFlowControl(FlowControlParams params) { if (value < MIN_FC_BYTE_ALLOWANCE) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_BYTEALLOWANCE_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MIN_FC_BYTE_ALLOWANCE)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MIN_FC_BYTE_ALLOWANCE)})); } float fvalue = params.getRechargeThreshold(); if (fvalue < MIN_FC_RECHARGE_THRESHOLD) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGETHRESHOLD_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), - new Float(MIN_FC_RECHARGE_THRESHOLD)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), + new Float(MIN_FC_RECHARGE_THRESHOLD)})); } else if (fvalue > MAX_FC_RECHARGE_THRESHOLD) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGETHRESHOLD_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), - new Float(MAX_FC_RECHARGE_THRESHOLD)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, new Float(fvalue), + new Float(MAX_FC_RECHARGE_THRESHOLD)})); } value = params.getRechargeBlockMs(); if (value < MIN_FC_RECHARGE_BLOCK_MS) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGEBLOCKMS_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MIN_FC_RECHARGE_BLOCK_MS)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MIN_FC_RECHARGE_BLOCK_MS)})); } else if (value > MAX_FC_RECHARGE_BLOCK_MS) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_RECHARGEBLOCKMS_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), - Integer.valueOf(MAX_FC_RECHARGE_BLOCK_MS)})); + .toLocalizedString(new Object[] {MCAST_FLOW_CONTROL, Integer.valueOf(value), + Integer.valueOf(MAX_FC_RECHARGE_BLOCK_MS)})); } return params; } @@ -400,8 +400,8 @@ protected int[] checkMembershipPortRange(int[] value) { if (value[1] - value[0] < 2) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {MEMBERSHIP_PORT_RANGE, value[0] + "-" + value[1], - Integer.valueOf(3)})); + .toLocalizedString(new Object[] {MEMBERSHIP_PORT_RANGE, value[0] + "-" + value[1], + Integer.valueOf(3)})); } return value; } @@ -426,7 +426,7 @@ protected String checkSecurityPeerAuthInit(String value) { String mcastInfo = MCAST_PORT + "[" + getMcastPort() + "]"; throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_2_MUST_BE_0_WHEN_SECURITY_IS_ENABLED - .toLocalizedString(new Object[] {SECURITY_PEER_AUTH_INIT, value, mcastInfo})); + .toLocalizedString(new Object[] {SECURITY_PEER_AUTH_INIT, value, mcastInfo})); } return value; } @@ -437,7 +437,7 @@ protected String checkSecurityPeerAuthenticator(String value) { String mcastInfo = MCAST_PORT + "[" + getMcastPort() + "]"; throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_2_MUST_BE_0_WHEN_SECURITY_IS_ENABLED - .toLocalizedString(new Object[] {SECURITY_PEER_AUTHENTICATOR, value, mcastInfo})); + .toLocalizedString(new Object[] {SECURITY_PEER_AUTHENTICATOR, value, mcastInfo})); } return value; } @@ -447,14 +447,14 @@ protected int checkSecurityLogLevel(int value) { if (value < MIN_LOG_LEVEL) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_LESS_THAN_2 - .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, - LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MIN_LOG_LEVEL)})); + .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, + LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MIN_LOG_LEVEL)})); } if (value > MAX_LOG_LEVEL) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_COULD_NOT_SET_0_TO_1_BECAUSE_ITS_VALUE_CAN_NOT_BE_GREATER_THAN_2 - .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, - LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MAX_LOG_LEVEL)})); + .toLocalizedString(new Object[] {SECURITY_LOG_LEVEL, + LogWriterImpl.levelToString(value), LogWriterImpl.levelToString(MAX_LOG_LEVEL)})); } return value; } @@ -466,7 +466,7 @@ protected String checkMemcachedProtocol(String protocol) { && !protocol.equalsIgnoreCase(GemFireMemcachedServer.Protocol.BINARY.name()))) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_MEMCACHED_PROTOCOL_MUST_BE_ASCII_OR_BINARY - .toLocalizedString()); + .toLocalizedString()); } return protocol; } @@ -480,7 +480,7 @@ protected String checkMemcachedBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_MEMCACHED_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -490,7 +490,7 @@ protected String checkRedisBindAddress(String value) { if (value != null && value.length() > 0 && !SocketCreator.isLocalHost(value)) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_REDIS_BIND_ADDRESS_0_INVALID_MUST_BE_IN_1 - .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); + .toLocalizedString(new Object[] {value, SocketCreator.getMyAddresses()})); } return value; } @@ -516,15 +516,15 @@ protected SecurableCommunicationChannel[] checkLegacySSLWhenSSLEnabledComponents default: throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_0_INVALID_TRY_1 - .toLocalizedString(new Object[] {value, - StringUtils - .join(new String[] {SecurableCommunicationChannel.ALL.getConstant(), - SecurableCommunicationChannel.CLUSTER.getConstant(), - SecurableCommunicationChannel.SERVER.getConstant(), - SecurableCommunicationChannel.GATEWAY.getConstant(), - SecurableCommunicationChannel.JMX.getConstant(), - SecurableCommunicationChannel.WEB.getConstant(), - SecurableCommunicationChannel.LOCATOR.getConstant()}, ",")})); + .toLocalizedString(new Object[] {value, + StringUtils + .join(new String[] {SecurableCommunicationChannel.ALL.getConstant(), + SecurableCommunicationChannel.CLUSTER.getConstant(), + SecurableCommunicationChannel.SERVER.getConstant(), + SecurableCommunicationChannel.GATEWAY.getConstant(), + SecurableCommunicationChannel.JMX.getConstant(), + SecurableCommunicationChannel.WEB.getConstant(), + SecurableCommunicationChannel.LOCATOR.getConstant()}, ",")})); } } if (value.length > 0) { @@ -532,7 +532,7 @@ protected SecurableCommunicationChannel[] checkLegacySSLWhenSSLEnabledComponents || getServerSSLEnabled() || getGatewaySSLEnabled()) { throw new IllegalArgumentException( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .toLocalizedString()); + .toLocalizedString()); } } return value; @@ -560,7 +560,7 @@ public void setAttributeObject(String attName, Object attValue, ConfigSource sou if (!validValueClass.isInstance(attValue)) { throw new InvalidValueException( LocalizedStrings.AbstractDistributionConfig_0_VALUE_1_MUST_BE_OF_TYPE_2 - .toLocalizedString(new Object[] {attName, attValue, validValueClass.getName()})); + .toLocalizedString(new Object[] {attName, attValue, validValueClass.getName()})); } } @@ -598,7 +598,7 @@ public void setAttributeObject(String attName, Object attValue, ConfigSource sou } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } Class[] pTypes = setter.getParameterTypes(); @@ -644,7 +644,7 @@ public Object getAttributeObject(String attName) { } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } try { @@ -713,7 +713,7 @@ public static Class _getAttributeType(String attName) { } throw new InternalGemFireException( LocalizedStrings.AbstractDistributionConfig_UNHANDLED_ATTRIBUTE_NAME_0 - .toLocalizedString(attName)); + .toLocalizedString(attName)); } return ca.type(); } @@ -725,23 +725,23 @@ public static Class _getAttributeType(String attName) { m.put(ACK_WAIT_THRESHOLD, LocalizedStrings.AbstractDistributionConfig_DEFAULT_ACK_WAIT_THRESHOLD_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ACK_WAIT_THRESHOLD), - Integer.valueOf(MIN_ACK_WAIT_THRESHOLD), Integer.valueOf(MIN_ACK_WAIT_THRESHOLD)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ACK_WAIT_THRESHOLD), + Integer.valueOf(MIN_ACK_WAIT_THRESHOLD), Integer.valueOf(MIN_ACK_WAIT_THRESHOLD)})); m.put(ARCHIVE_FILE_SIZE_LIMIT, LocalizedStrings.AbstractDistributionConfig_ARCHIVE_FILE_SIZE_LIMIT_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(ACK_SEVERE_ALERT_THRESHOLD, LocalizedStrings.AbstractDistributionConfig_ACK_SEVERE_ALERT_THRESHOLD_NAME - .toLocalizedString(new Object[] {ACK_WAIT_THRESHOLD, - Integer.valueOf(DEFAULT_ACK_SEVERE_ALERT_THRESHOLD), - Integer.valueOf(MIN_ACK_SEVERE_ALERT_THRESHOLD), - Integer.valueOf(MAX_ACK_SEVERE_ALERT_THRESHOLD)})); + .toLocalizedString(new Object[] {ACK_WAIT_THRESHOLD, + Integer.valueOf(DEFAULT_ACK_SEVERE_ALERT_THRESHOLD), + Integer.valueOf(MIN_ACK_SEVERE_ALERT_THRESHOLD), + Integer.valueOf(MAX_ACK_SEVERE_ALERT_THRESHOLD)})); m.put(ARCHIVE_DISK_SPACE_LIMIT, LocalizedStrings.AbstractDistributionConfig_ARCHIVE_DISK_SPACE_LIMIT_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(CACHE_XML_FILE, LocalizedStrings.AbstractDistributionConfig_CACHE_XML_FILE_NAME_0 .toLocalizedString(DEFAULT_CACHE_XML_FILE)); @@ -751,7 +751,7 @@ public static Class _getAttributeType(String attName) { m.put(ENABLE_TIME_STATISTICS, LocalizedStrings.AbstractDistributionConfig_ENABLE_TIME_STATISTICS_NAME - .toLocalizedString()); + .toLocalizedString()); m.put(DEPLOY_WORKING_DIR, LocalizedStrings.AbstractDistributionConfig_DEPLOY_WORKING_DIR_0 .toLocalizedString(DEFAULT_DEPLOY_WORKING_DIR)); @@ -761,8 +761,8 @@ public static Class _getAttributeType(String attName) { m.put(LOG_LEVEL, LocalizedStrings.AbstractDistributionConfig_LOG_LEVEL_NAME_0_1 - .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), - LogWriterImpl.allowedLogLevels()})); + .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), + LogWriterImpl.allowedLogLevels()})); m.put(LOG_FILE_SIZE_LIMIT, LocalizedStrings.AbstractDistributionConfig_LOG_FILE_SIZE_LIMIT_NAME.toLocalizedString()); @@ -778,13 +778,13 @@ public static Class _getAttributeType(String attName) { m.put(TCP_PORT, LocalizedStrings.AbstractDistributionConfig_TCP_PORT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_TCP_PORT), - Integer.valueOf(MIN_TCP_PORT), Integer.valueOf(MAX_TCP_PORT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_TCP_PORT), + Integer.valueOf(MIN_TCP_PORT), Integer.valueOf(MAX_TCP_PORT)})); m.put(MCAST_PORT, LocalizedStrings.AbstractDistributionConfig_MCAST_PORT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_PORT), - Integer.valueOf(MIN_MCAST_PORT), Integer.valueOf(MAX_MCAST_PORT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_PORT), + Integer.valueOf(MIN_MCAST_PORT), Integer.valueOf(MAX_MCAST_PORT)})); m.put(MCAST_ADDRESS, LocalizedStrings.AbstractDistributionConfig_MCAST_ADDRESS_NAME_0_1.toLocalizedString( @@ -792,16 +792,16 @@ public static Class _getAttributeType(String attName) { m.put(MCAST_TTL, LocalizedStrings.AbstractDistributionConfig_MCAST_TTL_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_TTL), - Integer.valueOf(MIN_MCAST_TTL), Integer.valueOf(MAX_MCAST_TTL)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_MCAST_TTL), + Integer.valueOf(MIN_MCAST_TTL), Integer.valueOf(MAX_MCAST_TTL)})); m.put(MCAST_SEND_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_MCAST_SEND_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_SEND_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_SEND_BUFFER_SIZE))); m.put(MCAST_RECV_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_MCAST_RECV_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_RECV_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_MCAST_RECV_BUFFER_SIZE))); m.put(MCAST_FLOW_CONTROL, LocalizedStrings.AbstractDistributionConfig_MCAST_FLOW_CONTROL_NAME_0 .toLocalizedString(DEFAULT_MCAST_FLOW_CONTROL)); @@ -818,24 +818,24 @@ public static Class _getAttributeType(String attName) { m.put(UDP_SEND_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_SEND_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_UDP_SEND_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_UDP_SEND_BUFFER_SIZE))); m.put(UDP_RECV_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_RECV_BUFFER_SIZE_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_UDP_RECV_BUFFER_SIZE))); + .toLocalizedString(Integer.valueOf(DEFAULT_UDP_RECV_BUFFER_SIZE))); m.put(UDP_FRAGMENT_SIZE, LocalizedStrings.AbstractDistributionConfig_UDP_FRAGMENT_SIZE_NAME_0 .toLocalizedString(Integer.valueOf(DEFAULT_UDP_FRAGMENT_SIZE))); m.put(SOCKET_LEASE_TIME, LocalizedStrings.AbstractDistributionConfig_SOCKET_LEASE_TIME_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_LEASE_TIME), - Integer.valueOf(MIN_SOCKET_LEASE_TIME), Integer.valueOf(MAX_SOCKET_LEASE_TIME)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_LEASE_TIME), + Integer.valueOf(MIN_SOCKET_LEASE_TIME), Integer.valueOf(MAX_SOCKET_LEASE_TIME)})); m.put(SOCKET_BUFFER_SIZE, LocalizedStrings.AbstractDistributionConfig_SOCKET_BUFFER_SIZE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_BUFFER_SIZE), - Integer.valueOf(MIN_SOCKET_BUFFER_SIZE), Integer.valueOf(MAX_SOCKET_BUFFER_SIZE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_SOCKET_BUFFER_SIZE), + Integer.valueOf(MIN_SOCKET_BUFFER_SIZE), Integer.valueOf(MAX_SOCKET_BUFFER_SIZE)})); m.put(CONSERVE_SOCKETS, LocalizedStrings.AbstractDistributionConfig_CONSERVE_SOCKETS_NAME_0 .toLocalizedString(Boolean.valueOf(DEFAULT_CONSERVE_SOCKETS))); @@ -848,7 +848,7 @@ public static Class _getAttributeType(String attName) { m.put(SERVER_BIND_ADDRESS, LocalizedStrings.AbstractDistributionConfig_SERVER_BIND_ADDRESS_NAME_0 - .toLocalizedString(DEFAULT_BIND_ADDRESS)); + .toLocalizedString(DEFAULT_BIND_ADDRESS)); m.put(JMX_BEAN_INPUT_NAMES, LocalizedStrings.AbstractDistributionConfig_JMX_INPUT_BEAN_NAMES_0.toLocalizedString("")); @@ -859,17 +859,17 @@ public static Class _getAttributeType(String attName) { m.put(STATISTIC_ARCHIVE_FILE, LocalizedStrings.AbstractDistributionConfig_STATISTIC_ARCHIVE_FILE_NAME_0 - .toLocalizedString(DEFAULT_STATISTIC_ARCHIVE_FILE)); + .toLocalizedString(DEFAULT_STATISTIC_ARCHIVE_FILE)); m.put(STATISTIC_SAMPLE_RATE, LocalizedStrings.AbstractDistributionConfig_STATISTIC_SAMPLE_RATE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_STATISTIC_SAMPLE_RATE), - Integer.valueOf(MIN_STATISTIC_SAMPLE_RATE), - Integer.valueOf(MAX_STATISTIC_SAMPLE_RATE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_STATISTIC_SAMPLE_RATE), + Integer.valueOf(MIN_STATISTIC_SAMPLE_RATE), + Integer.valueOf(MAX_STATISTIC_SAMPLE_RATE)})); m.put(STATISTIC_SAMPLING_ENABLED, LocalizedStrings.AbstractDistributionConfig_STATISTIC_SAMPLING_ENABLED_NAME_0 - .toLocalizedString(Boolean.valueOf(DEFAULT_STATISTIC_SAMPLING_ENABLED))); + .toLocalizedString(Boolean.valueOf(DEFAULT_STATISTIC_SAMPLING_ENABLED))); m.put(SSL_CLUSTER_ALIAS, LocalizedStrings.AbstractDistributionConfig_CLUSTER_SSL_ALIAS_0 .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_ALIAS))); @@ -885,7 +885,7 @@ public static Class _getAttributeType(String attName) { m.put(CLUSTER_SSL_REQUIRE_AUTHENTICATION, LocalizedStrings.AbstractDistributionConfig_SSL_REQUIRE_AUTHENTICATION_NAME - .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_REQUIRE_AUTHENTICATION))); + .toLocalizedString(Boolean.valueOf(DEFAULT_SSL_REQUIRE_AUTHENTICATION))); m.put(CLUSTER_SSL_KEYSTORE, "Location of the Java keystore file containing an distributed member's own certificate and private key."); @@ -904,29 +904,29 @@ public static Class _getAttributeType(String attName) { m.put(MAX_WAIT_TIME_RECONNECT, LocalizedStrings.AbstractDistributionConfig_MAX_WAIT_TIME_FOR_RECONNECT - .toLocalizedString()); + .toLocalizedString()); m.put(MAX_NUM_RECONNECT_TRIES, LocalizedStrings.AbstractDistributionConfig_MAX_NUM_RECONNECT_TRIES.toLocalizedString()); m.put(ASYNC_DISTRIBUTION_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_ASYNC_DISTRIBUTION_TIMEOUT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT), - Integer.valueOf(MIN_ASYNC_DISTRIBUTION_TIMEOUT), - Integer.valueOf(MAX_ASYNC_DISTRIBUTION_TIMEOUT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT), + Integer.valueOf(MIN_ASYNC_DISTRIBUTION_TIMEOUT), + Integer.valueOf(MAX_ASYNC_DISTRIBUTION_TIMEOUT)})); m.put(ASYNC_QUEUE_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_ASYNC_QUEUE_TIMEOUT_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_QUEUE_TIMEOUT), - Integer.valueOf(MIN_ASYNC_QUEUE_TIMEOUT), - Integer.valueOf(MAX_ASYNC_QUEUE_TIMEOUT)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_QUEUE_TIMEOUT), + Integer.valueOf(MIN_ASYNC_QUEUE_TIMEOUT), + Integer.valueOf(MAX_ASYNC_QUEUE_TIMEOUT)})); m.put(ASYNC_MAX_QUEUE_SIZE, LocalizedStrings.AbstractDistributionConfig_ASYNC_MAX_QUEUE_SIZE_NAME_0_1_2 - .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_MAX_QUEUE_SIZE), - Integer.valueOf(MIN_ASYNC_MAX_QUEUE_SIZE), - Integer.valueOf(MAX_ASYNC_MAX_QUEUE_SIZE)})); + .toLocalizedString(new Object[] {Integer.valueOf(DEFAULT_ASYNC_MAX_QUEUE_SIZE), + Integer.valueOf(MIN_ASYNC_MAX_QUEUE_SIZE), + Integer.valueOf(MAX_ASYNC_MAX_QUEUE_SIZE)})); m.put(START_LOCATOR, LocalizedStrings.AbstractDistributionConfig_START_LOCATOR_NAME.toLocalizedString()); @@ -939,11 +939,11 @@ public static Class _getAttributeType(String attName) { m.put(DURABLE_CLIENT_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_DURABLE_CLIENT_TIMEOUT_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_DURABLE_CLIENT_TIMEOUT))); + .toLocalizedString(Integer.valueOf(DEFAULT_DURABLE_CLIENT_TIMEOUT))); m.put(SECURITY_CLIENT_AUTH_INIT, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_AUTH_INIT_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTH_INIT)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTH_INIT)); m.put(ENABLE_NETWORK_PARTITION_DETECTION, "Whether network partitioning detection is enabled"); @@ -951,43 +951,43 @@ public static Class _getAttributeType(String attName) { m.put(SECURITY_CLIENT_AUTHENTICATOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_AUTHENTICATOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTHENTICATOR)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_AUTHENTICATOR)); m.put(SECURITY_CLIENT_DHALGO, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_DHALGO_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_DHALGO)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_DHALGO)); m.put(SECURITY_UDP_DHALGO, LocalizedStrings.AbstractDistributionConfig_SECURITY_UDP_DHALGO_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_UDP_DHALGO)); + .toLocalizedString(DEFAULT_SECURITY_UDP_DHALGO)); m.put(SECURITY_PEER_AUTH_INIT, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_AUTH_INIT_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_PEER_AUTH_INIT)); + .toLocalizedString(DEFAULT_SECURITY_PEER_AUTH_INIT)); m.put(SECURITY_PEER_AUTHENTICATOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_AUTHENTICATOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_PEER_AUTHENTICATOR)); + .toLocalizedString(DEFAULT_SECURITY_PEER_AUTHENTICATOR)); m.put(SECURITY_CLIENT_ACCESSOR, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_ACCESSOR_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR)); m.put(SECURITY_CLIENT_ACCESSOR_PP, LocalizedStrings.AbstractDistributionConfig_SECURITY_CLIENT_ACCESSOR_PP_NAME_0 - .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR_PP)); + .toLocalizedString(DEFAULT_SECURITY_CLIENT_ACCESSOR_PP)); m.put(SECURITY_LOG_LEVEL, LocalizedStrings.AbstractDistributionConfig_SECURITY_LOG_LEVEL_NAME_0_1 - .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), - LogWriterImpl.allowedLogLevels()})); + .toLocalizedString(new Object[] {LogWriterImpl.levelToString(DEFAULT_LOG_LEVEL), + LogWriterImpl.allowedLogLevels()})); m.put(SECURITY_LOG_FILE, LocalizedStrings.AbstractDistributionConfig_SECURITY_LOG_FILE_NAME_0 .toLocalizedString(DEFAULT_SECURITY_LOG_FILE)); m.put(SECURITY_PEER_VERIFY_MEMBER_TIMEOUT, LocalizedStrings.AbstractDistributionConfig_SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME_0 - .toLocalizedString(Integer.valueOf(DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT))); + .toLocalizedString(Integer.valueOf(DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT))); m.put(SECURITY_PREFIX, LocalizedStrings.AbstractDistributionConfig_SECURITY_PREFIX_NAME.toLocalizedString()); @@ -997,13 +997,13 @@ public static Class _getAttributeType(String attName) { m.put(REMOVE_UNRESPONSIVE_CLIENT, LocalizedStrings.AbstractDistributionConfig_REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME_0 - .toLocalizedString(DEFAULT_REMOVE_UNRESPONSIVE_CLIENT)); + .toLocalizedString(DEFAULT_REMOVE_UNRESPONSIVE_CLIENT)); m.put(DELTA_PROPAGATION, "Whether delta propagation is enabled"); m.put(REMOTE_LOCATORS, LocalizedStrings.AbstractDistributionConfig_REMOTE_DISTRIBUTED_SYSTEMS_NAME_0 - .toLocalizedString(DEFAULT_REMOTE_LOCATORS)); + .toLocalizedString(DEFAULT_REMOTE_LOCATORS)); m.put(DISTRIBUTED_SYSTEM_ID, "An id that uniquely idenitifies this distributed system. " @@ -1051,7 +1051,7 @@ public static Class _getAttributeType(String attName) { m.put(JMX_MANAGER_PORT, "The port the jmx manager will listen on. Default is \"" + DEFAULT_JMX_MANAGER_PORT - + "\". Set to zero to disable GemFire's creation of a jmx listening port."); + + "\". Set to zero to disable GemFire's creation of a jmx listening port."); m.put(JMX_MANAGER_BIND_ADDRESS, "The address the jmx manager will listen on for remote connections. Default is \"\" which causes the jmx manager to listen on the host's default address. This property is ignored if jmx-manager-port is \"0\"."); m.put(JMX_MANAGER_HOSTNAME_FOR_CLIENTS, @@ -1082,12 +1082,12 @@ public static Class _getAttributeType(String attName) { "The password which client of GeodeRedisServer must use to authenticate themselves. The default is none and no authentication will be required."); m.put(ENABLE_CLUSTER_CONFIGURATION, LocalizedStrings.AbstractDistributionConfig_ENABLE_SHARED_CONFIGURATION - .toLocalizedString()); + .toLocalizedString()); m.put(USE_CLUSTER_CONFIGURATION, LocalizedStrings.AbstractDistributionConfig_USE_SHARED_CONFIGURATION.toLocalizedString()); m.put(LOAD_CLUSTER_CONFIGURATION_FROM_DIR, LocalizedStrings.AbstractDistributionConfig_LOAD_SHARED_CONFIGURATION_FROM_DIR - .toLocalizedString(ClusterConfigurationService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME)); + .toLocalizedString(ClusterConfigurationService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME)); m.put(CLUSTER_CONFIGURATION_DIR, LocalizedStrings.AbstractDistributionConfig_CLUSTER_CONFIGURATION_DIR.toLocalizedString()); m.put(SSL_SERVER_ALIAS, LocalizedStrings.AbstractDistributionConfig_SERVER_SSL_ALIAS_0 @@ -1254,7 +1254,7 @@ public static InetAddress _getDefaultMcastAddress() { // this should never happen throw new Error( LocalizedStrings.AbstractDistributionConfig_UNEXPECTED_PROBLEM_GETTING_INETADDRESS_0 - .toLocalizedString(ex), + .toLocalizedString(ex), ex); } } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java index f49fbdcb486c..68d86cf2566c 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java @@ -1640,3270 +1640,3270 @@ public interface DistributionConfig extends Config, LogConfig { int[] DEFAULT_MEMBERSHIP_PORT_RANGE = Boolean.getBoolean(RESTRICT_MEMBERSHIP_PORT_RANGE) ? new int[] {32769, 61000} : new int[] {1024, 65535}; - @ConfigAttributeGetter(name = MEMBERSHIP_PORT_RANGE) - int[] getMembershipPortRange(); - - @ConfigAttributeSetter(name = MEMBERSHIP_PORT_RANGE) - void setMembershipPortRange(int[] range); - - /** - * Returns the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - @ConfigAttributeGetter(name = CONSERVE_SOCKETS) - boolean getConserveSockets(); - - /** - * Sets the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property. - */ - @ConfigAttributeSetter(name = CONSERVE_SOCKETS) - void setConserveSockets(boolean newValue); - - /** - * The name of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - @ConfigAttribute(type = Boolean.class) - String CONSERVE_SOCKETS_NAME = CONSERVE_SOCKETS; - - /** - * The default value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property - */ - boolean DEFAULT_CONSERVE_SOCKETS = true; - - /** - * Returns the value of the {@link ConfigurationProperties#ROLES} property - */ - @ConfigAttributeGetter(name = ROLES) - String getRoles(); - - /** - * Sets the value of the {@link ConfigurationProperties#ROLES} property. - */ - @ConfigAttributeSetter(name = ROLES) - void setRoles(String roles); - - /** - * The name of the {@link ConfigurationProperties#ROLES} property - */ - @ConfigAttribute(type = String.class) - String ROLES_NAME = ROLES; - - /** - * The default value of the {@link ConfigurationProperties#ROLES} property - */ - String DEFAULT_ROLES = ""; - - /** - * The name of the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT} property - */ - @ConfigAttribute(type = Integer.class) - String MAX_WAIT_TIME_FOR_RECONNECT_NAME = MAX_WAIT_TIME_RECONNECT; - - /** - * Default value for {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, 60,000 milliseconds. - */ - int DEFAULT_MAX_WAIT_TIME_FOR_RECONNECT = 60000; - - /** - * Sets the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for - * reconnect. - */ - @ConfigAttributeSetter(name = MAX_WAIT_TIME_RECONNECT) - void setMaxWaitTimeForReconnect(int timeOut); - - /** - * Returns the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for - * reconnect. - */ - @ConfigAttributeGetter(name = MAX_WAIT_TIME_RECONNECT) - int getMaxWaitTimeForReconnect(); - - /** - * The name of the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES} property. - */ - @ConfigAttribute(type = Integer.class) - String MAX_NUM_RECONNECT_TRIES_NAME = MAX_NUM_RECONNECT_TRIES; - - /** - * Default value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - int DEFAULT_MAX_NUM_RECONNECT_TRIES = 3; - - /** - * Sets the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - @ConfigAttributeSetter(name = MAX_NUM_RECONNECT_TRIES) - void setMaxNumReconnectTries(int tries); - - /** - * Returns the value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. - */ - @ConfigAttributeGetter(name = MAX_NUM_RECONNECT_TRIES) - int getMaxNumReconnectTries(); - - // ------------------- Asynchronous Messaging Properties ------------------- - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = ASYNC_DISTRIBUTION_TIMEOUT) - int getAsyncDistributionTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = ASYNC_DISTRIBUTION_TIMEOUT) - void setAsyncDistributionTimeout(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 0. - */ - int DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT = 0; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 0. - */ - int MIN_ASYNC_DISTRIBUTION_TIMEOUT = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is - * 60000. - */ - int MAX_ASYNC_DISTRIBUTION_TIMEOUT = 60000; - - /** - * The name of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_DISTRIBUTION_TIMEOUT, - max = MAX_ASYNC_DISTRIBUTION_TIMEOUT) - String ASYNC_DISTRIBUTION_TIMEOUT_NAME = ASYNC_DISTRIBUTION_TIMEOUT; - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = ASYNC_QUEUE_TIMEOUT) - int getAsyncQueueTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = ASYNC_QUEUE_TIMEOUT) - void setAsyncQueueTimeout(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 60000. - */ - int DEFAULT_ASYNC_QUEUE_TIMEOUT = 60000; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 0. - */ - int MIN_ASYNC_QUEUE_TIMEOUT = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is - * 86400000. - */ - int MAX_ASYNC_QUEUE_TIMEOUT = 86400000; - /** - * The name of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_QUEUE_TIMEOUT, - max = MAX_ASYNC_QUEUE_TIMEOUT) - String ASYNC_QUEUE_TIMEOUT_NAME = ASYNC_QUEUE_TIMEOUT; - - /** - * Returns the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. - */ - @ConfigAttributeGetter(name = ASYNC_MAX_QUEUE_SIZE) - int getAsyncMaxQueueSize(); - - /** - * Sets the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. - */ - @ConfigAttributeSetter(name = ASYNC_MAX_QUEUE_SIZE) - void setAsyncMaxQueueSize(int newValue); - - /** - * The default value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 8. - */ - int DEFAULT_ASYNC_MAX_QUEUE_SIZE = 8; - /** - * The minimum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 0. - */ - int MIN_ASYNC_MAX_QUEUE_SIZE = 0; - /** - * The maximum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 1024. - */ - int MAX_ASYNC_MAX_QUEUE_SIZE = 1024; - - /** - * The name of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property - */ - @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_MAX_QUEUE_SIZE, - max = MAX_ASYNC_MAX_QUEUE_SIZE) - String ASYNC_MAX_QUEUE_SIZE_NAME = ASYNC_MAX_QUEUE_SIZE; - /** - * @since GemFire 5.7 - */ - @ConfigAttribute(type = String.class) - String CLIENT_CONFLATION_PROP_NAME = CONFLATE_EVENTS; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_DEFAULT = "server"; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_ON = "true"; - /** - * @since GemFire 5.7 - */ - String CLIENT_CONFLATION_PROP_VALUE_OFF = "false"; - - /** - * @since Geode 1.0 - */ - @ConfigAttribute(type = Boolean.class) - String DISTRIBUTED_TRANSACTIONS_NAME = DISTRIBUTED_TRANSACTIONS; - boolean DEFAULT_DISTRIBUTED_TRANSACTIONS = false; - - @ConfigAttributeGetter(name = DISTRIBUTED_TRANSACTIONS) - boolean getDistributedTransactions(); - - @ConfigAttributeSetter(name = DISTRIBUTED_TRANSACTIONS) - void setDistributedTransactions(boolean value); - - /** - * Returns the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. - * - * @since GemFire 5.7 - */ - @ConfigAttributeGetter(name = CONFLATE_EVENTS) - String getClientConflation(); - - /** - * Sets the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. - * - * @since GemFire 5.7 - */ - @ConfigAttributeSetter(name = CONFLATE_EVENTS) - void setClientConflation(String clientConflation); - // ------------------------------------------------------------------------- - - /** - * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. - */ - @ConfigAttributeGetter(name = DURABLE_CLIENT_ID) - String getDurableClientId(); - - /** - * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. - */ - @ConfigAttributeSetter(name = DURABLE_CLIENT_ID) - void setDurableClientId(String durableClientId); - - /** - * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property - */ - @ConfigAttribute(type = String.class) - String DURABLE_CLIENT_ID_NAME = DURABLE_CLIENT_ID; - - /** - * The default {@link ConfigurationProperties#DURABLE_CLIENT_ID}. - *

- * Actual value of this constant is "". - */ - String DEFAULT_DURABLE_CLIENT_ID = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. - */ - @ConfigAttributeGetter(name = DURABLE_CLIENT_TIMEOUT) - int getDurableClientTimeout(); - - /** - * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. - */ - @ConfigAttributeSetter(name = DURABLE_CLIENT_TIMEOUT) - void setDurableClientTimeout(int durableClientTimeout); - - /** - * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property - */ - @ConfigAttribute(type = Integer.class) - String DURABLE_CLIENT_TIMEOUT_NAME = DURABLE_CLIENT_TIMEOUT; - - /** - * The default {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} in seconds. - *

- * Actual value of this constant is "300". - */ - int DEFAULT_DURABLE_CLIENT_TIMEOUT = 300; - - /** - * Returns user module name for client authentication initializer in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTH_INIT) - String getSecurityClientAuthInit(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTH_INIT) - void setSecurityClientAuthInit(String attValue); - - /** - * The name of user defined method name for - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_AUTH_INIT_NAME = SECURITY_CLIENT_AUTH_INIT; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} method name. - *

- * Actual value of this is in format "jar file:module name". - */ - String DEFAULT_SECURITY_CLIENT_AUTH_INIT = ""; - - /** - * Returns user module name authenticating client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTHENTICATOR) - String getSecurityClientAuthenticator(); - - /** - * Sets the user defined method name in - * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTHENTICATOR) - void setSecurityClientAuthenticator(String attValue); - - /** - * The name of factory method for {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_AUTHENTICATOR_NAME = SECURITY_CLIENT_AUTHENTICATOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_AUTHENTICATOR = ""; - - /** - * Returns user defined class name authenticating client credentials in - * {@link ConfigurationProperties#SECURITY_MANAGER} - */ - @ConfigAttributeGetter(name = SECURITY_MANAGER) - String getSecurityManager(); - - /** - * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_MANAGER} property. - */ - @ConfigAttributeSetter(name = SECURITY_MANAGER) - void setSecurityManager(String attValue); - - /** - * The name of class for {@link ConfigurationProperties#SECURITY_MANAGER} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_MANAGER_NAME = SECURITY_MANAGER; - - /** - * The default {@link ConfigurationProperties#SECURITY_MANAGER} class name. - *

- * Actual value of this is fully qualified "class name". - */ - String DEFAULT_SECURITY_MANAGER = ""; - - /** - * Returns user defined post processor name in - * {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} - */ - @ConfigAttributeGetter(name = SECURITY_POST_PROCESSOR) - String getPostProcessor(); - - /** - * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_POST_PROCESSOR) - void setPostProcessor(String attValue); - - /** - * The name of class for {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_POST_PROCESSOR_NAME = SECURITY_POST_PROCESSOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} class name. - *

- * Actual value of this is fully qualified "class name". - */ - String DEFAULT_SECURITY_POST_PROCESSOR = ""; - - /** - * Returns name of algorithm to use for Diffie-Hellman key exchange - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_DHALGO) - String getSecurityClientDHAlgo(); - - /** - * Set the name of algorithm to use for Diffie-Hellman key exchange - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_DHALGO) - void setSecurityClientDHAlgo(String attValue); - - /** - * Returns name of algorithm to use for Diffie-Hellman key exchange - * "security-udp-dhalgo" - */ - @ConfigAttributeGetter(name = SECURITY_UDP_DHALGO) - String getSecurityUDPDHAlgo(); - - /** - * Set the name of algorithm to use for Diffie-Hellman key exchange - * "security-udp-dhalgo" property. - */ - @ConfigAttributeSetter(name = SECURITY_UDP_DHALGO) - void setSecurityUDPDHAlgo(String attValue); - - /** - * The name of the Diffie-Hellman symmetric algorithm - * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_DHALGO_NAME = SECURITY_CLIENT_DHALGO; - - /** - * The name of the Diffie-Hellman symmetric algorithm "security-client-dhalgo" property. - */ - @ConfigAttribute(type = String.class) - String SECURITY_UDP_DHALGO_NAME = SECURITY_UDP_DHALGO; - - /** - * The default Diffie-Hellman symmetric algorithm name. - *

- * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", - * "DESede", "AES", "Blowfish". - */ - String DEFAULT_SECURITY_CLIENT_DHALGO = ""; - - /** - * The default Diffie-Hellman symmetric algorithm name. - *

- * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", - * "DESede", "AES", "Blowfish". - */ - String DEFAULT_SECURITY_UDP_DHALGO = ""; - - /** - * Returns user defined method name for peer authentication initializer in - * {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} - */ - @ConfigAttributeGetter(name = SECURITY_PEER_AUTH_INIT) - String getSecurityPeerAuthInit(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property. - */ - @ConfigAttributeSetter(name = SECURITY_PEER_AUTH_INIT) - void setSecurityPeerAuthInit(String attValue); - - /** - * The name of user module for {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property - */ - @ConfigAttribute(type = String.class) - String SECURITY_PEER_AUTH_INIT_NAME = SECURITY_PEER_AUTH_INIT; - - /** - * The default {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_PEER_AUTH_INIT = ""; - - /** - * Returns user defined method name authenticating peer's credentials in - * {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - */ - @ConfigAttributeGetter(name = SECURITY_PEER_AUTHENTICATOR) - String getSecurityPeerAuthenticator(); - - /** - * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_PEER_AUTHENTICATOR) - void setSecurityPeerAuthenticator(String attValue); - - /** - * The name of user defined method for {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_PEER_AUTHENTICATOR_NAME = SECURITY_PEER_AUTHENTICATOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} method. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_PEER_AUTHENTICATOR = ""; - - /** - * Returns user module name authorizing client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR) - String getSecurityClientAccessor(); - - /** - * Sets the user defined method name in {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - * property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR) - void setSecurityClientAccessor(String attValue); - - /** - * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_ACCESSOR_NAME = SECURITY_CLIENT_ACCESSOR; - - /** - * The default {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_ACCESSOR = ""; - - /** - * Returns user module name authorizing client credentials in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - */ - @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR_PP) - String getSecurityClientAccessorPP(); - - /** - * Sets the user defined method name in - * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} property. - */ - @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR_PP) - void setSecurityClientAccessorPP(String attValue); - - /** - * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - * property - */ - @ConfigAttribute(type = String.class) - String SECURITY_CLIENT_ACCESSOR_PP_NAME = SECURITY_CLIENT_ACCESSOR_PP; - - /** - * The default client post-operation {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} - * method name. - *

- * Actual value of this is fully qualified "method name". - */ - String DEFAULT_SECURITY_CLIENT_ACCESSOR_PP = ""; - - /** - * Get the current log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. - * - * @return the current security log-level - */ - @ConfigAttributeGetter(name = SECURITY_LOG_LEVEL) - int getSecurityLogLevel(); - - /** - * Set the log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. - * - * @param level the new security log-level - */ - @ConfigAttributeSetter(name = SECURITY_LOG_LEVEL) - void setSecurityLogLevel(int level); - - /** - * The name of {@link ConfigurationProperties#SECURITY_LOG_LEVEL} property that sets the log-level - * for security logger obtained using {@link DistributedSystem#getSecurityLogWriter()} - */ - // type is String because the config file "config", "debug", "fine" etc, but the setter getter - // accepts int - @ConfigAttribute(type = String.class) - String SECURITY_LOG_LEVEL_NAME = SECURITY_LOG_LEVEL; - - /** - * Returns the value of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property - * - * @return null if logging information goes to standard out - */ - @ConfigAttributeGetter(name = SECURITY_LOG_FILE) - File getSecurityLogFile(); - - /** - * Sets the system's {@link ConfigurationProperties#SECURITY_LOG_FILE} containing security related - * messages. - *

- * Non-absolute log files are relative to the system directory. - *

- * The security log file can not be changed while the system is running. - * - * @throws IllegalArgumentException if the specified value is not acceptable. - * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. - * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when - * writing to the system's configuration file. - */ - @ConfigAttributeSetter(name = SECURITY_LOG_FILE) - void setSecurityLogFile(File value); - - /** - * The name of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property. This property is - * the path of the file where security related messages are logged. - */ - @ConfigAttribute(type = File.class) - String SECURITY_LOG_FILE_NAME = SECURITY_LOG_FILE; - - /** - * The default {@link ConfigurationProperties#SECURITY_LOG_FILE}. - *

- * * - *

- * Actual value of this constant is "" which directs security log messages to the - * same place as the system log file. - */ - File DEFAULT_SECURITY_LOG_FILE = new File(""); - - /** - * Get timeout for peer membership check when security is enabled. - * - * @return Timeout in milliseconds. - */ - @ConfigAttributeGetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) - int getSecurityPeerMembershipTimeout(); - - /** - * Set timeout for peer membership check when security is enabled. The timeout must be less than - * peer handshake timeout. - * - * @param attValue - */ - @ConfigAttributeSetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) - void setSecurityPeerMembershipTimeout(int attValue); - - /** - * The default peer membership check timeout is 1 second. - */ - int DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 1000; - - /** - * Max membership timeout must be less than max peer handshake timeout. Currently this is set to - * default handshake timeout of 60 seconds. - */ - int MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 60000; - - /** - * The name of the peer membership check timeout property - */ - @ConfigAttribute(type = Integer.class, min = 0, max = MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT) - String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT; - - /** - * Returns all properties starting with {@link ConfigurationProperties#SECURITY_PREFIX} - */ - Properties getSecurityProps(); - - /** - * Returns the value of security property {@link ConfigurationProperties#SECURITY_PREFIX} for an - * exact attribute name match. - */ - String getSecurity(String attName); - - /** - * Sets the value of the {@link ConfigurationProperties#SECURITY_PREFIX} property. - */ - void setSecurity(String attName, String attValue); - - String SECURITY_PREFIX_NAME = SECURITY_PREFIX; - - - /** - * The static String definition of the cluster ssl prefix "cluster-ssl" used in conjunction - * with other cluster-ssl-* properties property - *

- * Description: The cluster-ssl property prefix - */ - @Deprecated - String CLUSTER_SSL_PREFIX = "cluster-ssl"; - - /** - * For the "custom-" prefixed properties - */ - String USERDEFINED_PREFIX_NAME = "custom-"; - - /** - * For ssl keystore and trust store properties - */ - String SSL_SYSTEM_PROPS_NAME = "javax.net.ssl"; - - String KEY_STORE_TYPE_NAME = ".keyStoreType"; - String KEY_STORE_NAME = ".keyStore"; - String KEY_STORE_PASSWORD_NAME = ".keyStorePassword"; - String TRUST_STORE_NAME = ".trustStore"; - String TRUST_STORE_PASSWORD_NAME = ".trustStorePassword"; - - /** - * Suffix for ssl keystore and trust store properties for JMX - */ - String JMX_SSL_PROPS_SUFFIX = "-jmx"; - - /** - * For security properties starting with sysprop in gfsecurity.properties file - */ - String SYS_PROP_NAME = "sysprop-"; - /** - * The property decides whether to remove unresponsive client from the server. - */ - @ConfigAttribute(type = Boolean.class) - String REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME = REMOVE_UNRESPONSIVE_CLIENT; - - /** - * The default value of remove unresponsive client is false. - */ - boolean DEFAULT_REMOVE_UNRESPONSIVE_CLIENT = false; - - /** - * Returns the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. - * - * @since GemFire 6.0 - */ - @ConfigAttributeGetter(name = REMOVE_UNRESPONSIVE_CLIENT) - boolean getRemoveUnresponsiveClient(); - - /** - * Sets the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. - * - * @since GemFire 6.0 - */ - @ConfigAttributeSetter(name = REMOVE_UNRESPONSIVE_CLIENT) - void setRemoveUnresponsiveClient(boolean value); - - /** - * @since GemFire 6.3 - */ - @ConfigAttribute(type = Boolean.class) - String DELTA_PROPAGATION_PROP_NAME = DELTA_PROPAGATION; - - boolean DEFAULT_DELTA_PROPAGATION = true; - - /** - * Returns the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. - * - * @since GemFire 6.3 - */ - @ConfigAttributeGetter(name = DELTA_PROPAGATION) - boolean getDeltaPropagation(); - - /** - * Sets the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. - * - * @since GemFire 6.3 - */ - @ConfigAttributeSetter(name = DELTA_PROPAGATION) - void setDeltaPropagation(boolean value); - - int MIN_DISTRIBUTED_SYSTEM_ID = -1; - int MAX_DISTRIBUTED_SYSTEM_ID = 255; - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = Integer.class) - String DISTRIBUTED_SYSTEM_ID_NAME = DISTRIBUTED_SYSTEM_ID; - int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1; - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeSetter(name = DISTRIBUTED_SYSTEM_ID) - void setDistributedSystemId(int distributedSystemId); - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeGetter(name = DISTRIBUTED_SYSTEM_ID) - int getDistributedSystemId(); - - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = String.class) - String REDUNDANCY_ZONE_NAME = REDUNDANCY_ZONE; - String DEFAULT_REDUNDANCY_ZONE = ""; - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeSetter(name = REDUNDANCY_ZONE) - void setRedundancyZone(String redundancyZone); - - /** - * @since GemFire 6.6 - */ - @ConfigAttributeGetter(name = REDUNDANCY_ZONE) - String getRedundancyZone(); - - /** - * @since GemFire 6.6.2 - */ - void setSSLProperty(String attName, String attValue); - - /** - * @since GemFire 6.6.2 - */ - Properties getSSLProperties(); - - Properties getClusterSSLProperties(); - - /** - * @since GemFire 8.0 - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - Properties getJmxSSLProperties(); - - /** - * @since GemFire 6.6 - */ - @ConfigAttribute(type = Boolean.class) - String ENFORCE_UNIQUE_HOST_NAME = ENFORCE_UNIQUE_HOST; - /** - * Using the system property to set the default here to retain backwards compatibility with - * customers that are already using this system property. - */ - boolean DEFAULT_ENFORCE_UNIQUE_HOST = - Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "EnforceUniqueHostStorageAllocation"); - - @ConfigAttributeSetter(name = ENFORCE_UNIQUE_HOST) - void setEnforceUniqueHost(boolean enforceUniqueHost); - - @ConfigAttributeGetter(name = ENFORCE_UNIQUE_HOST) - boolean getEnforceUniqueHost(); - - Properties getUserDefinedProps(); - - /** - * Returns the value of the {@link ConfigurationProperties#GROUPS} property - *

- * The default value is: {@link #DEFAULT_GROUPS}. - * - * @return the value of the property - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = GROUPS) - String getGroups(); - - /** - * Sets the {@link ConfigurationProperties#GROUPS} property. - *

- * The groups can not be changed while the system is running. - * - * @throws IllegalArgumentException if the specified value is not acceptable. - * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. - * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when - * writing to the system's configuration file. - * @since GemFire 7.0 - */ - @ConfigAttributeSetter(name = GROUPS) - void setGroups(String value); - - /** - * The name of the {@link ConfigurationProperties#GROUPS} property - * - * @since GemFire 7.0 - */ - @ConfigAttribute(type = String.class) - String GROUPS_NAME = GROUPS; - /** - * The default {@link ConfigurationProperties#GROUPS}. - *

- * Actual value of this constant is "". - * - * @since GemFire 7.0 - */ - String DEFAULT_GROUPS = ""; - - /** - * Any cleanup required before closing the distributed system - */ - void close(); - - @ConfigAttributeSetter(name = REMOTE_LOCATORS) - void setRemoteLocators(String locators); - - @ConfigAttributeGetter(name = REMOTE_LOCATORS) - String getRemoteLocators(); - - /** - * The name of the {@link ConfigurationProperties#REMOTE_LOCATORS} property - */ - @ConfigAttribute(type = String.class) - String REMOTE_LOCATORS_NAME = REMOTE_LOCATORS; - /** - * The default value of the {@link ConfigurationProperties#REMOTE_LOCATORS} property - */ - String DEFAULT_REMOTE_LOCATORS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER) - boolean getJmxManager(); - - @ConfigAttributeSetter(name = JMX_MANAGER) - void setJmxManager(boolean value); - - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_NAME = JMX_MANAGER; - boolean DEFAULT_JMX_MANAGER = false; - - @ConfigAttributeGetter(name = JMX_MANAGER_START) - boolean getJmxManagerStart(); - - @ConfigAttributeSetter(name = JMX_MANAGER_START) - void setJmxManagerStart(boolean value); - - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_START_NAME = JMX_MANAGER_START; - boolean DEFAULT_JMX_MANAGER_START = false; - - @ConfigAttributeGetter(name = JMX_MANAGER_PORT) - int getJmxManagerPort(); - - @ConfigAttributeSetter(name = JMX_MANAGER_PORT) - void setJmxManagerPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String JMX_MANAGER_PORT_NAME = JMX_MANAGER_PORT; - - int DEFAULT_JMX_MANAGER_PORT = 1099; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_ENABLED) - boolean getJmxManagerSSLEnabled(); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_JMX_MANAGER_SSL_ENABLED = false; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_SSL_ENABLED_NAME = JMX_MANAGER_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_ENABLED) - void setJmxManagerSSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = OFF_HEAP_MEMORY_SIZE) - String getOffHeapMemorySize(); - - /** - * Sets the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = OFF_HEAP_MEMORY_SIZE) - void setOffHeapMemorySize(String value); - - /** - * The name of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String OFF_HEAP_MEMORY_SIZE_NAME = OFF_HEAP_MEMORY_SIZE; - /** - * The default {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} value of "". - * - * @since Geode 1.0 - */ - String DEFAULT_OFF_HEAP_MEMORY_SIZE = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_PROTOCOLS) - String getJmxManagerSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_PROTOCOLS) - void setJmxManagerSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_PROTOCOLS_NAME = JMX_MANAGER_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_CIPHERS) - String getJmxManagerSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_CIPHERS) - void setJmxManagerSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_CIPHERS_NAME = JMX_MANAGER_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) - boolean getJmxManagerSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) - void setJmxManagerSSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION_NAME = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE) - String getJmxManagerSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE) - void setJmxManagerSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_NAME = JMX_MANAGER_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) - String getJmxManagerSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) - void setJmxManagerSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_TYPE_NAME = JMX_MANAGER_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) - String getJmxManagerSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) - void setJmxManagerSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} - * propery - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_KEYSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE) - String getJmxManagerSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE) - void setJmxManagerSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_TRUSTSTORE_NAME = JMX_MANAGER_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) - String getJmxManagerSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) - void setJmxManagerSSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD; - - @ConfigAttributeGetter(name = JMX_MANAGER_BIND_ADDRESS) - String getJmxManagerBindAddress(); - - @ConfigAttributeSetter(name = JMX_MANAGER_BIND_ADDRESS) - void setJmxManagerBindAddress(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_BIND_ADDRESS_NAME = JMX_MANAGER_BIND_ADDRESS; - String DEFAULT_JMX_MANAGER_BIND_ADDRESS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) - String getJmxManagerHostnameForClients(); - - @ConfigAttributeSetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) - void setJmxManagerHostnameForClients(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_HOSTNAME_FOR_CLIENTS_NAME = JMX_MANAGER_HOSTNAME_FOR_CLIENTS; - String DEFAULT_JMX_MANAGER_HOSTNAME_FOR_CLIENTS = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_PASSWORD_FILE) - String getJmxManagerPasswordFile(); - - @ConfigAttributeSetter(name = JMX_MANAGER_PASSWORD_FILE) - void setJmxManagerPasswordFile(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_PASSWORD_FILE_NAME = JMX_MANAGER_PASSWORD_FILE; - String DEFAULT_JMX_MANAGER_PASSWORD_FILE = ""; - - @ConfigAttributeGetter(name = JMX_MANAGER_ACCESS_FILE) - String getJmxManagerAccessFile(); - - @ConfigAttributeSetter(name = JMX_MANAGER_ACCESS_FILE) - void setJmxManagerAccessFile(String value); - - @ConfigAttribute(type = String.class) - String JMX_MANAGER_ACCESS_FILE_NAME = JMX_MANAGER_ACCESS_FILE; - String DEFAULT_JMX_MANAGER_ACCESS_FILE = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property - * - * @deprecated as of 8.0 use {@link #getHttpServicePort()} instead. - */ - @ConfigAttributeGetter(name = JMX_MANAGER_HTTP_PORT) - int getJmxManagerHttpPort(); - - /** - * Set the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for jmx-manager. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for - * jmx-manager. - * - * @param value the port number for jmx-manager HTTP service - * - * @deprecated as of 8.0 use {@link #setHttpServicePort(int)} instead. - */ - @ConfigAttributeSetter(name = JMX_MANAGER_HTTP_PORT) - void setJmxManagerHttpPort(int value); - - /** - * The name of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - *

- * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - * - * @deprecated as of 8.0 use {{@link #HTTP_SERVICE_PORT_NAME} instead. - */ - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String JMX_MANAGER_HTTP_PORT_NAME = JMX_MANAGER_HTTP_PORT; - - /** - * The default value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. - * Current value is a 7070 - * - * @deprecated as of 8.0 use {@link #DEFAULT_HTTP_SERVICE_PORT} instead. - */ - int DEFAULT_JMX_MANAGER_HTTP_PORT = 7070; - - @ConfigAttributeGetter(name = JMX_MANAGER_UPDATE_RATE) - int getJmxManagerUpdateRate(); - - @ConfigAttributeSetter(name = JMX_MANAGER_UPDATE_RATE) - void setJmxManagerUpdateRate(int value); - - int DEFAULT_JMX_MANAGER_UPDATE_RATE = 2000; - int MIN_JMX_MANAGER_UPDATE_RATE = 1000; - int MAX_JMX_MANAGER_UPDATE_RATE = 60000 * 5; - @ConfigAttribute(type = Integer.class, min = MIN_JMX_MANAGER_UPDATE_RATE, - max = MAX_JMX_MANAGER_UPDATE_RATE) - String JMX_MANAGER_UPDATE_RATE_NAME = JMX_MANAGER_UPDATE_RATE; - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PORT} property - * - * @return the port on which GemFireMemcachedServer should be started - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_PORT) - int getMemcachedPort(); - - @ConfigAttributeSetter(name = MEMCACHED_PORT) - void setMemcachedPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String MEMCACHED_PORT_NAME = MEMCACHED_PORT; - int DEFAULT_MEMCACHED_PORT = 0; - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PROTOCOL} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PROTOCOL} property - * - * @return the protocol for GemFireMemcachedServer - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_PROTOCOL) - String getMemcachedProtocol(); - - @ConfigAttributeSetter(name = MEMCACHED_PROTOCOL) - void setMemcachedProtocol(String protocol); - - @ConfigAttribute(type = String.class) - String MEMCACHED_PROTOCOL_NAME = MEMCACHED_PROTOCOL; - String DEFAULT_MEMCACHED_PROTOCOL = GemFireMemcachedServer.Protocol.ASCII.name(); - - /** - * Returns the value of the {@link ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property - * - * @return the bind address for GemFireMemcachedServer - * - * @since GemFire 7.0 - */ - @ConfigAttributeGetter(name = MEMCACHED_BIND_ADDRESS) - String getMemcachedBindAddress(); - - @ConfigAttributeSetter(name = MEMCACHED_BIND_ADDRESS) - void setMemcachedBindAddress(String bindAddress); - - @ConfigAttribute(type = String.class) - String MEMCACHED_BIND_ADDRESS_NAME = MEMCACHED_BIND_ADDRESS; - String DEFAULT_MEMCACHED_BIND_ADDRESS = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_PORT} property - * - * @return the port on which GeodeRedisServer should be started - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_PORT) - int getRedisPort(); - - @ConfigAttributeSetter(name = REDIS_PORT) - void setRedisPort(int value); - - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String REDIS_PORT_NAME = REDIS_PORT; - int DEFAULT_REDIS_PORT = 0; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_BIND_ADDRESS} property - * - * @return the bind address for GemFireRedisServer - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_BIND_ADDRESS) - String getRedisBindAddress(); - - @ConfigAttributeSetter(name = REDIS_BIND_ADDRESS) - void setRedisBindAddress(String bindAddress); - - @ConfigAttribute(type = String.class) - String REDIS_BIND_ADDRESS_NAME = REDIS_BIND_ADDRESS; - String DEFAULT_REDIS_BIND_ADDRESS = ""; - - /** - * Returns the value of the {@link ConfigurationProperties#REDIS_PASSWORD} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_PASSWORD} property - * - * @return the authentication password for GemFireRedisServer - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = REDIS_PASSWORD) - String getRedisPassword(); - - @ConfigAttributeSetter(name = REDIS_PASSWORD) - void setRedisPassword(String password); - - @ConfigAttribute(type = String.class) - String REDIS_PASSWORD_NAME = REDIS_PASSWORD; - String DEFAULT_REDIS_PASSWORD = ""; - - // Added for the HTTP service - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} property - * - * @return the HTTP service port - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = HTTP_SERVICE_PORT) - int getHttpServicePort(); - - /** - * Set the {@link ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP - * service. - * - * @param value the port number for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_PORT) - void setHttpServicePort(int value); - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property - *

- * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} - * property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Integer.class, min = 0, max = 65535) - String HTTP_SERVICE_PORT_NAME = HTTP_SERVICE_PORT; - - /** - * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property. Current - * value is a 7070 - * - * @since GemFire 8.0 - */ - int DEFAULT_HTTP_SERVICE_PORT = 7070; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - * - * @return the bind-address for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeGetter(name = HTTP_SERVICE_BIND_ADDRESS) - String getHttpServiceBindAddress(); - - /** - * Set the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} - * for HTTP service. - * - * @param value the bind-address for HTTP service - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_BIND_ADDRESS) - void setHttpServiceBindAddress(String value); - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_BIND_ADDRESS_NAME = HTTP_SERVICE_BIND_ADDRESS; - - /** - * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property. - * Current value is an empty string "" - * - * @since GemFire 8.0 - */ - String DEFAULT_HTTP_SERVICE_BIND_ADDRESS = ""; - - // Added for HTTP Service SSL - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_ENABLED) - boolean getHttpServiceSSLEnabled(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_ENABLED) - void setHttpServiceSSLEnabled(boolean httpServiceSSLEnabled); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_HTTP_SERVICE_SSL_ENABLED = false; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String HTTP_SERVICE_SSL_ENABLED_NAME = HTTP_SERVICE_SSL_ENABLED; - - /** - * Returns the value of the - * {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) - boolean getHttpServiceSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) - void setHttpServiceSSLRequireAuthentication(boolean httpServiceSSLRequireAuthentication); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION = false; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION_NAME = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_PROTOCOLS) - String getHttpServiceSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_PROTOCOLS) - void setHttpServiceSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_PROTOCOLS = "any"; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_PROTOCOLS_NAME = HTTP_SERVICE_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_CIPHERS) - String getHttpServiceSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_CIPHERS) - void setHttpServiceSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_CIPHERS = "any"; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_CIPHERS_NAME = HTTP_SERVICE_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE) - String getHttpServiceSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE) - void setHttpServiceSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_NAME = HTTP_SERVICE_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) - String getHttpServiceSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) - void setHttpServiceSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) - String getHttpServiceSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) - void setHttpServiceSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_KEYSTORE_TYPE_NAME = HTTP_SERVICE_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) - String getHttpServiceSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) - void setHttpServiceSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property The name - * of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_TRUSTSTORE_NAME = HTTP_SERVICE_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) - String getHttpServiceSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) - void setHttpServiceSSLTrustStorePassword(String trustStorePassword); - - /** - * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} property - * The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD; - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getHttpServiceSSLProperties(); - - // Added for API REST - - /** - * Returns the value of the {@link ConfigurationProperties#START_DEV_REST_API} property - *

- * Returns the value of the - * {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} property - * - * @return the value of the property - * - * @since GemFire 8.0 - */ - - @ConfigAttributeGetter(name = START_DEV_REST_API) - boolean getStartDevRestApi(); - - /** - * Set the {@link ConfigurationProperties#START_DEV_REST_API} for HTTP service. - *

- * Set the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} for - * HTTP service. - * - * @param value for the property - * - * @since GemFire 8.0 - */ - @ConfigAttributeSetter(name = START_DEV_REST_API) - void setStartDevRestApi(boolean value); - - /** - * The name of the {@link ConfigurationProperties#START_DEV_REST_API} property - *

- * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} - * property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Boolean.class) - String START_DEV_REST_API_NAME = START_DEV_REST_API; - - /** - * The default value of the {@link ConfigurationProperties#START_DEV_REST_API} property. Current - * value is "false" - * - * @since GemFire 8.0 - */ - boolean DEFAULT_START_DEV_REST_API = false; - - /** - * The name of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property - * - * @since GemFire 8.0 - */ - @ConfigAttribute(type = Boolean.class) - String DISABLE_AUTO_RECONNECT_NAME = DISABLE_AUTO_RECONNECT; - - /** - * The default value of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property - */ - boolean DEFAULT_DISABLE_AUTO_RECONNECT = false; - - /** - * Gets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} - */ - @ConfigAttributeGetter(name = DISABLE_AUTO_RECONNECT) - boolean getDisableAutoReconnect(); - - /** - * Sets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} - * - * @param value the new setting - */ - @ConfigAttributeSetter(name = DISABLE_AUTO_RECONNECT) - void setDisableAutoReconnect(boolean value); - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getServerSSLProperties(); - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_ENABLED) - boolean getServerSSLEnabled(); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_SERVER_SSL_ENABLED = false; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String SERVER_SSL_ENABLED_NAME = SERVER_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_ENABLED) - void setServerSSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_PROTOCOLS) - String getServerSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. - */ - @ConfigAttributeSetter(name = SERVER_SSL_PROTOCOLS) - void setServerSSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - @Deprecated - String DEFAULT_SERVER_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_PROTOCOLS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_PROTOCOLS_NAME = SERVER_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_CIPHERS) - String getServerSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_CIPHERS) - void setServerSSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  - */ - @Deprecated - String DEFAULT_SERVER_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_CIPHERS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_CIPHERS_NAME = SERVER_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()}  - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) - boolean getServerSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)}  - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) - void setServerSSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_SERVER_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String SERVER_SSL_REQUIRE_AUTHENTICATION_NAME = SERVER_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE) - String getServerSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE) - void setServerSSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_NAME = SERVER_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_TYPE) - String getServerSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_TYPE) - void setServerSSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_TYPE_NAME = SERVER_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_PASSWORD) - String getServerSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_PASSWORD) - void setServerSSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_SERVER_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_KEYSTORE_PASSWORD_NAME = SERVER_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE) - String getServerSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setServerSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE) - void setServerSSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - String DEFAULT_SERVER_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_TRUSTSTORE_NAME = SERVER_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) - String getServerSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) - void setServerSSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_SERVER_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String SERVER_SSL_TRUSTSTORE_PASSWORD_NAME = SERVER_SSL_TRUSTSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_ENABLED) - boolean getGatewaySSLEnabled(); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} state. - *

- * Actual value of this constant is false. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} - */ - @Deprecated - boolean DEFAULT_GATEWAY_SSL_ENABLED = false; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_ENABLED} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String GATEWAY_SSL_ENABLED_NAME = GATEWAY_SSL_ENABLED; - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_ENABLED) - void setGatewaySSLEnabled(boolean enabled); - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_PROTOCOLS) - String getGatewaySSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_PROTOCOLS) - void setGatewaySSLProtocols(String protocols); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} - */ - String DEFAULT_GATEWAY_SSL_PROTOCOLS = "any"; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_PROTOCOLS_NAME = GATEWAY_SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_CIPHERS) - String getGatewaySSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_CIPHERS) - void setGatewaySSLCiphers(String ciphers); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} value. - *

- * Actual value of this constant is any. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  - */ - String DEFAULT_GATEWAY_SSL_CIPHERS = "any"; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_CIPHERS} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_CIPHERS_NAME = GATEWAY_SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) - boolean getGatewaySSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property. - * - * @deprecated Geode 1.0 use {@link #setGatewaySSLRequireAuthentication(boolean)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) - void setGatewaySSLRequireAuthentication(boolean enabled); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} value. - *

- * Actual value of this constant is true. - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - boolean DEFAULT_GATEWAY_SSL_REQUIRE_AUTHENTICATION = true; - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} - */ - @Deprecated - @ConfigAttribute(type = Boolean.class) - String GATEWAY_SSL_REQUIRE_AUTHENTICATION_NAME = GATEWAY_SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE) - String getGatewaySSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE) - void setGatewaySSLKeyStore(String keyStore); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_NAME = GATEWAY_SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_TYPE) - String getGatewaySSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_TYPE) - void setGatewaySSLKeyStoreType(String keyStoreType); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE_TYPE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property The name of - * the {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_TYPE_NAME = GATEWAY_SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) - String getGatewaySSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) - void setGatewaySSLKeyStorePassword(String keyStorePassword); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_KEYSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property The name - * of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_KEYSTORE_PASSWORD_NAME = GATEWAY_SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE) - String getGatewaySSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE) - void setGatewaySSLTrustStore(String trustStore); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_TRUSTSTORE = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property The name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_TRUSTSTORE_NAME = GATEWAY_SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} - * property. - * - * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} - */ - @Deprecated - @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) - String getGatewaySSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property. - * - * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} - */ - @Deprecated - @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) - void setGatewaySSLTrustStorePassword(String trusStorePassword); - - /** - * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} value. - *

- * Actual value of this constant is "". - * - * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - String DEFAULT_GATEWAY_SSL_TRUSTSTORE_PASSWORD = ""; - - /** - * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property The - * name of the - * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} - * property - * - * @deprecated Geode 1.0 use - * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} - */ - @Deprecated - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_TRUSTSTORE_PASSWORD_NAME = GATEWAY_SSL_TRUSTSTORE_PASSWORD; - - /** - * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} - */ - @Deprecated - Properties getGatewaySSLProperties(); - - ConfigSource getConfigSource(String attName); - - /** - * The name of the {@link ConfigurationProperties#LOCK_MEMORY} property. Used to cause pages to be - * locked into memory, thereby preventing them from being swapped to disk. - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = Boolean.class) - String LOCK_MEMORY_NAME = LOCK_MEMORY; - boolean DEFAULT_LOCK_MEMORY = false; - - /** - * Gets the value of {@link ConfigurationProperties#LOCK_MEMORY} - *

- * Gets the value of {@link org.apache.geode.distributed.ConfigurationProperties#LOCK_MEMORY} - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = LOCK_MEMORY) - boolean getLockMemory(); - - /** - * Set the value of {@link ConfigurationProperties#LOCK_MEMORY} - * - * @param value the new setting - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = LOCK_MEMORY) - void setLockMemory(boolean value); - - @ConfigAttribute(type = String.class) - String SECURITY_SHIRO_INIT_NAME = SECURITY_SHIRO_INIT; - - @ConfigAttributeSetter(name = SECURITY_SHIRO_INIT) - void setShiroInit(String value); - - @ConfigAttributeGetter(name = SECURITY_SHIRO_INIT) - String getShiroInit(); - - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_CLUSTER_ALIAS) - String getClusterSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_CLUSTER_ALIAS) - void setClusterSSLAlias(String alias); - - /** - * The Default Cluster SSL alias - * - * @since Geode 1.0 - */ - String DEFAULT_SSL_ALIAS = ""; - - /** - * The name of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String CLUSTER_SSL_ALIAS_NAME = SSL_CLUSTER_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_LOCATOR_ALIAS) - String getLocatorSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_LOCATOR_ALIAS) - void setLocatorSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String LOCATOR_SSL_ALIAS_NAME = SSL_LOCATOR_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_GATEWAY_ALIAS) - String getGatewaySSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_GATEWAY_ALIAS) - void setGatewaySSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String GATEWAY_SSL_ALIAS_NAME = SSL_GATEWAY_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_WEB_ALIAS) - String getHTTPServiceSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_WEB_ALIAS) - void setHTTPServiceSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String HTTP_SERVICE_SSL_ALIAS_NAME = SSL_WEB_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_JMX_ALIAS) - String getJMXSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_JMX_ALIAS) - void setJMXSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String JMX_SSL_ALIAS_NAME = SSL_JMX_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_SERVER_ALIAS) - String getServerSSLAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_SERVER_ALIAS) - void setServerSSLAlias(String alias); - - /** - * The name of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = String.class) - String SERVER_SSL_ALIAS_NAME = SSL_SERVER_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeGetter(name = SSL_ENABLED_COMPONENTS) - SecurableCommunicationChannel[] getSecurableCommunicationChannels(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. - * - * @since Geode 1.0 - */ - @ConfigAttributeSetter(name = SSL_ENABLED_COMPONENTS) - void setSecurableCommunicationChannels(SecurableCommunicationChannel[] sslEnabledComponents); - - /** - * The name of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property - * - * @since Geode 1.0 - */ - @ConfigAttribute(type = SecurableCommunicationChannel[].class) - String SSL_ENABLED_COMPONENTS_NAME = SSL_ENABLED_COMPONENTS; - - /** - * The default ssl enabled components - * - * @since Geode 1.0 - */ - SecurableCommunicationChannel[] DEFAULT_SSL_ENABLED_COMPONENTS = - new SecurableCommunicationChannel[] {}; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. - */ - @ConfigAttributeGetter(name = SSL_PROTOCOLS) - String getSSLProtocols(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. - */ - @ConfigAttributeSetter(name = SSL_PROTOCOLS) - void setSSLProtocols(String protocols); - - /** - * The name of the {@link ConfigurationProperties#SSL_PROTOCOLS} property - */ - @ConfigAttribute(type = String.class) - String SSL_PROTOCOLS_NAME = SSL_PROTOCOLS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. - */ - @ConfigAttributeGetter(name = SSL_CIPHERS) - String getSSLCiphers(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. - */ - @ConfigAttributeSetter(name = SSL_CIPHERS) - void setSSLCiphers(String ciphers); - - /** - * The name of the {@link ConfigurationProperties#SSL_CIPHERS} property - */ - @ConfigAttribute(type = String.class) - String SSL_CIPHERS_NAME = SSL_CIPHERS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. - */ - @ConfigAttributeGetter(name = SSL_REQUIRE_AUTHENTICATION) - boolean getSSLRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. - */ - @ConfigAttributeSetter(name = SSL_REQUIRE_AUTHENTICATION) - void setSSLRequireAuthentication(boolean enabled); - - /** - * The name of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property - */ - @ConfigAttribute(type = Boolean.class) - String SSL_REQUIRE_AUTHENTICATION_NAME = SSL_REQUIRE_AUTHENTICATION; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE) - String getSSLKeyStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE) - void setSSLKeyStore(String keyStore); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_NAME = SSL_KEYSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE_TYPE) - String getSSLKeyStoreType(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE_TYPE) - void setSSLKeyStoreType(String keyStoreType); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_TYPE_NAME = SSL_KEYSTORE_TYPE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. - */ - @ConfigAttributeGetter(name = SSL_KEYSTORE_PASSWORD) - String getSSLKeyStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. - */ - @ConfigAttributeSetter(name = SSL_KEYSTORE_PASSWORD) - void setSSLKeyStorePassword(String keyStorePassword); - - /** - * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property - */ - @ConfigAttribute(type = String.class) - String SSL_KEYSTORE_PASSWORD_NAME = SSL_KEYSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. - */ - @ConfigAttributeGetter(name = SSL_TRUSTSTORE) - String getSSLTrustStore(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. - */ - @ConfigAttributeSetter(name = SSL_TRUSTSTORE) - void setSSLTrustStore(String trustStore); - - /** - * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property - */ - @ConfigAttribute(type = String.class) - String SSL_TRUSTSTORE_NAME = SSL_TRUSTSTORE; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. - */ - @ConfigAttributeGetter(name = SSL_DEFAULT_ALIAS) - String getSSLDefaultAlias(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. - */ - @ConfigAttributeSetter(name = SSL_DEFAULT_ALIAS) - void setSSLDefaultAlias(String sslDefaultAlias); - - /** - * The name of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property - */ - @ConfigAttribute(type = String.class) - String SSL_DEFAULT_ALIAS_NAME = SSL_DEFAULT_ALIAS; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. - */ - @ConfigAttributeGetter(name = SSL_TRUSTSTORE_PASSWORD) - String getSSLTrustStorePassword(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. - */ - @ConfigAttributeSetter(name = SSL_TRUSTSTORE_PASSWORD) - void setSSLTrustStorePassword(String trustStorePassword); - - /** - * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property - */ - @ConfigAttribute(type = String.class) - String SSL_TRUSTSTORE_PASSWORD_NAME = SSL_TRUSTSTORE_PASSWORD; - - /** - * Returns the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} - * property. - */ - @ConfigAttributeGetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) - boolean getSSLWebRequireAuthentication(); - - /** - * Sets the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} - * property. - */ - @ConfigAttributeSetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) - void setSSLWebRequireAuthentication(boolean requiresAuthentication); - - /** - * The name of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} property - */ - @ConfigAttribute(type = Boolean.class) - String SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION_NAME = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION; - - /** - * The default value for http service ssl mutual authentication - */ - boolean DEFAULT_SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION = false; - - // *************** Initializers to gather all the annotations in this class - // ************************ - - Map attributes = new HashMap<>(); - Map setters = new HashMap<>(); - Map getters = new HashMap<>(); - String[] dcValidAttributeNames = init(); - - static String[] init() { - List atts = new ArrayList<>(); - for (Field field : DistributionConfig.class.getDeclaredFields()) { - if (field.isAnnotationPresent(ConfigAttribute.class)) { - try { - atts.add((String) field.get(null)); - attributes.put((String) field.get(null), field.getAnnotation(ConfigAttribute.class)); - } catch (IllegalAccessException e) { - e.printStackTrace(); - } - } - } + @ConfigAttributeGetter(name = MEMBERSHIP_PORT_RANGE) + int[] getMembershipPortRange(); + + @ConfigAttributeSetter(name = MEMBERSHIP_PORT_RANGE) + void setMembershipPortRange(int[] range); + + /** + * Returns the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + @ConfigAttributeGetter(name = CONSERVE_SOCKETS) + boolean getConserveSockets(); + + /** + * Sets the value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property. + */ + @ConfigAttributeSetter(name = CONSERVE_SOCKETS) + void setConserveSockets(boolean newValue); + + /** + * The name of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + @ConfigAttribute(type = Boolean.class) + String CONSERVE_SOCKETS_NAME = CONSERVE_SOCKETS; + + /** + * The default value of the {@link ConfigurationProperties#CONSERVE_SOCKETS} property + */ + boolean DEFAULT_CONSERVE_SOCKETS = true; + + /** + * Returns the value of the {@link ConfigurationProperties#ROLES} property + */ + @ConfigAttributeGetter(name = ROLES) + String getRoles(); + + /** + * Sets the value of the {@link ConfigurationProperties#ROLES} property. + */ + @ConfigAttributeSetter(name = ROLES) + void setRoles(String roles); + + /** + * The name of the {@link ConfigurationProperties#ROLES} property + */ + @ConfigAttribute(type = String.class) + String ROLES_NAME = ROLES; + + /** + * The default value of the {@link ConfigurationProperties#ROLES} property + */ + String DEFAULT_ROLES = ""; + + /** + * The name of the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT} property + */ + @ConfigAttribute(type = Integer.class) + String MAX_WAIT_TIME_FOR_RECONNECT_NAME = MAX_WAIT_TIME_RECONNECT; + + /** + * Default value for {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, 60,000 milliseconds. + */ + int DEFAULT_MAX_WAIT_TIME_FOR_RECONNECT = 60000; + + /** + * Sets the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for + * reconnect. + */ + @ConfigAttributeSetter(name = MAX_WAIT_TIME_RECONNECT) + void setMaxWaitTimeForReconnect(int timeOut); + + /** + * Returns the {@link ConfigurationProperties#MAX_WAIT_TIME_RECONNECT}, in milliseconds, for + * reconnect. + */ + @ConfigAttributeGetter(name = MAX_WAIT_TIME_RECONNECT) + int getMaxWaitTimeForReconnect(); + + /** + * The name of the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES} property. + */ + @ConfigAttribute(type = Integer.class) + String MAX_NUM_RECONNECT_TRIES_NAME = MAX_NUM_RECONNECT_TRIES; + + /** + * Default value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + int DEFAULT_MAX_NUM_RECONNECT_TRIES = 3; + + /** + * Sets the {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + @ConfigAttributeSetter(name = MAX_NUM_RECONNECT_TRIES) + void setMaxNumReconnectTries(int tries); + + /** + * Returns the value for {@link ConfigurationProperties#MAX_NUM_RECONNECT_TRIES}. + */ + @ConfigAttributeGetter(name = MAX_NUM_RECONNECT_TRIES) + int getMaxNumReconnectTries(); + + // ------------------- Asynchronous Messaging Properties ------------------- + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = ASYNC_DISTRIBUTION_TIMEOUT) + int getAsyncDistributionTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = ASYNC_DISTRIBUTION_TIMEOUT) + void setAsyncDistributionTimeout(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 0. + */ + int DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT = 0; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 0. + */ + int MIN_ASYNC_DISTRIBUTION_TIMEOUT = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} is + * 60000. + */ + int MAX_ASYNC_DISTRIBUTION_TIMEOUT = 60000; + + /** + * The name of the {@link ConfigurationProperties#ASYNC_DISTRIBUTION_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_DISTRIBUTION_TIMEOUT, + max = MAX_ASYNC_DISTRIBUTION_TIMEOUT) + String ASYNC_DISTRIBUTION_TIMEOUT_NAME = ASYNC_DISTRIBUTION_TIMEOUT; + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = ASYNC_QUEUE_TIMEOUT) + int getAsyncQueueTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = ASYNC_QUEUE_TIMEOUT) + void setAsyncQueueTimeout(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 60000. + */ + int DEFAULT_ASYNC_QUEUE_TIMEOUT = 60000; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is 0. + */ + int MIN_ASYNC_QUEUE_TIMEOUT = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} is + * 86400000. + */ + int MAX_ASYNC_QUEUE_TIMEOUT = 86400000; + /** + * The name of the {@link ConfigurationProperties#ASYNC_QUEUE_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_QUEUE_TIMEOUT, + max = MAX_ASYNC_QUEUE_TIMEOUT) + String ASYNC_QUEUE_TIMEOUT_NAME = ASYNC_QUEUE_TIMEOUT; + + /** + * Returns the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. + */ + @ConfigAttributeGetter(name = ASYNC_MAX_QUEUE_SIZE) + int getAsyncMaxQueueSize(); + + /** + * Sets the value of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property. + */ + @ConfigAttributeSetter(name = ASYNC_MAX_QUEUE_SIZE) + void setAsyncMaxQueueSize(int newValue); + + /** + * The default value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 8. + */ + int DEFAULT_ASYNC_MAX_QUEUE_SIZE = 8; + /** + * The minimum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 0. + */ + int MIN_ASYNC_MAX_QUEUE_SIZE = 0; + /** + * The maximum value of {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} is 1024. + */ + int MAX_ASYNC_MAX_QUEUE_SIZE = 1024; + + /** + * The name of the {@link ConfigurationProperties#ASYNC_MAX_QUEUE_SIZE} property + */ + @ConfigAttribute(type = Integer.class, min = MIN_ASYNC_MAX_QUEUE_SIZE, + max = MAX_ASYNC_MAX_QUEUE_SIZE) + String ASYNC_MAX_QUEUE_SIZE_NAME = ASYNC_MAX_QUEUE_SIZE; + /** + * @since GemFire 5.7 + */ + @ConfigAttribute(type = String.class) + String CLIENT_CONFLATION_PROP_NAME = CONFLATE_EVENTS; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_DEFAULT = "server"; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_ON = "true"; + /** + * @since GemFire 5.7 + */ + String CLIENT_CONFLATION_PROP_VALUE_OFF = "false"; + + /** + * @since Geode 1.0 + */ + @ConfigAttribute(type = Boolean.class) + String DISTRIBUTED_TRANSACTIONS_NAME = DISTRIBUTED_TRANSACTIONS; + boolean DEFAULT_DISTRIBUTED_TRANSACTIONS = false; + + @ConfigAttributeGetter(name = DISTRIBUTED_TRANSACTIONS) + boolean getDistributedTransactions(); + + @ConfigAttributeSetter(name = DISTRIBUTED_TRANSACTIONS) + void setDistributedTransactions(boolean value); + + /** + * Returns the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. + * + * @since GemFire 5.7 + */ + @ConfigAttributeGetter(name = CONFLATE_EVENTS) + String getClientConflation(); + + /** + * Sets the value of the {@link ConfigurationProperties#CONFLATE_EVENTS} property. + * + * @since GemFire 5.7 + */ + @ConfigAttributeSetter(name = CONFLATE_EVENTS) + void setClientConflation(String clientConflation); + // ------------------------------------------------------------------------- + + /** + * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. + */ + @ConfigAttributeGetter(name = DURABLE_CLIENT_ID) + String getDurableClientId(); + + /** + * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property. + */ + @ConfigAttributeSetter(name = DURABLE_CLIENT_ID) + void setDurableClientId(String durableClientId); + + /** + * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_ID} property + */ + @ConfigAttribute(type = String.class) + String DURABLE_CLIENT_ID_NAME = DURABLE_CLIENT_ID; + + /** + * The default {@link ConfigurationProperties#DURABLE_CLIENT_ID}. + *

+ * Actual value of this constant is "". + */ + String DEFAULT_DURABLE_CLIENT_ID = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. + */ + @ConfigAttributeGetter(name = DURABLE_CLIENT_TIMEOUT) + int getDurableClientTimeout(); + + /** + * Sets the value of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property. + */ + @ConfigAttributeSetter(name = DURABLE_CLIENT_TIMEOUT) + void setDurableClientTimeout(int durableClientTimeout); + + /** + * The name of the {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} property + */ + @ConfigAttribute(type = Integer.class) + String DURABLE_CLIENT_TIMEOUT_NAME = DURABLE_CLIENT_TIMEOUT; + + /** + * The default {@link ConfigurationProperties#DURABLE_CLIENT_TIMEOUT} in seconds. + *

+ * Actual value of this constant is "300". + */ + int DEFAULT_DURABLE_CLIENT_TIMEOUT = 300; + + /** + * Returns user module name for client authentication initializer in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTH_INIT) + String getSecurityClientAuthInit(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTH_INIT) + void setSecurityClientAuthInit(String attValue); + + /** + * The name of user defined method name for + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_AUTH_INIT_NAME = SECURITY_CLIENT_AUTH_INIT; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTH_INIT} method name. + *

+ * Actual value of this is in format "jar file:module name". + */ + String DEFAULT_SECURITY_CLIENT_AUTH_INIT = ""; + + /** + * Returns user module name authenticating client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_AUTHENTICATOR) + String getSecurityClientAuthenticator(); + + /** + * Sets the user defined method name in + * {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_AUTHENTICATOR) + void setSecurityClientAuthenticator(String attValue); + + /** + * The name of factory method for {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_AUTHENTICATOR_NAME = SECURITY_CLIENT_AUTHENTICATOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_AUTHENTICATOR} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_AUTHENTICATOR = ""; + + /** + * Returns user defined class name authenticating client credentials in + * {@link ConfigurationProperties#SECURITY_MANAGER} + */ + @ConfigAttributeGetter(name = SECURITY_MANAGER) + String getSecurityManager(); + + /** + * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_MANAGER} property. + */ + @ConfigAttributeSetter(name = SECURITY_MANAGER) + void setSecurityManager(String attValue); + + /** + * The name of class for {@link ConfigurationProperties#SECURITY_MANAGER} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_MANAGER_NAME = SECURITY_MANAGER; + + /** + * The default {@link ConfigurationProperties#SECURITY_MANAGER} class name. + *

+ * Actual value of this is fully qualified "class name". + */ + String DEFAULT_SECURITY_MANAGER = ""; + + /** + * Returns user defined post processor name in + * {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} + */ + @ConfigAttributeGetter(name = SECURITY_POST_PROCESSOR) + String getPostProcessor(); + + /** + * Sets the user defined class name in {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_POST_PROCESSOR) + void setPostProcessor(String attValue); + + /** + * The name of class for {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_POST_PROCESSOR_NAME = SECURITY_POST_PROCESSOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_POST_PROCESSOR} class name. + *

+ * Actual value of this is fully qualified "class name". + */ + String DEFAULT_SECURITY_POST_PROCESSOR = ""; + + /** + * Returns name of algorithm to use for Diffie-Hellman key exchange + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_DHALGO) + String getSecurityClientDHAlgo(); + + /** + * Set the name of algorithm to use for Diffie-Hellman key exchange + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_DHALGO) + void setSecurityClientDHAlgo(String attValue); + + /** + * Returns name of algorithm to use for Diffie-Hellman key exchange + * "security-udp-dhalgo" + */ + @ConfigAttributeGetter(name = SECURITY_UDP_DHALGO) + String getSecurityUDPDHAlgo(); + + /** + * Set the name of algorithm to use for Diffie-Hellman key exchange + * "security-udp-dhalgo" property. + */ + @ConfigAttributeSetter(name = SECURITY_UDP_DHALGO) + void setSecurityUDPDHAlgo(String attValue); + + /** + * The name of the Diffie-Hellman symmetric algorithm + * {@link ConfigurationProperties#SECURITY_CLIENT_DHALGO} property. + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_DHALGO_NAME = SECURITY_CLIENT_DHALGO; + + /** + * The name of the Diffie-Hellman symmetric algorithm "security-client-dhalgo" property. + */ + @ConfigAttribute(type = String.class) + String SECURITY_UDP_DHALGO_NAME = SECURITY_UDP_DHALGO; + + /** + * The default Diffie-Hellman symmetric algorithm name. + *

+ * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", + * "DESede", "AES", "Blowfish". + */ + String DEFAULT_SECURITY_CLIENT_DHALGO = ""; + + /** + * The default Diffie-Hellman symmetric algorithm name. + *

+ * Actual value of this is one of the available symmetric algorithm names in JDK like "DES", + * "DESede", "AES", "Blowfish". + */ + String DEFAULT_SECURITY_UDP_DHALGO = ""; + + /** + * Returns user defined method name for peer authentication initializer in + * {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} + */ + @ConfigAttributeGetter(name = SECURITY_PEER_AUTH_INIT) + String getSecurityPeerAuthInit(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property. + */ + @ConfigAttributeSetter(name = SECURITY_PEER_AUTH_INIT) + void setSecurityPeerAuthInit(String attValue); + + /** + * The name of user module for {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} property + */ + @ConfigAttribute(type = String.class) + String SECURITY_PEER_AUTH_INIT_NAME = SECURITY_PEER_AUTH_INIT; + + /** + * The default {@link ConfigurationProperties#SECURITY_PEER_AUTH_INIT} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_PEER_AUTH_INIT = ""; + + /** + * Returns user defined method name authenticating peer's credentials in + * {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + */ + @ConfigAttributeGetter(name = SECURITY_PEER_AUTHENTICATOR) + String getSecurityPeerAuthenticator(); + + /** + * Sets the user module name in {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_PEER_AUTHENTICATOR) + void setSecurityPeerAuthenticator(String attValue); + + /** + * The name of user defined method for {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_PEER_AUTHENTICATOR_NAME = SECURITY_PEER_AUTHENTICATOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_PEER_AUTHENTICATOR} method. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_PEER_AUTHENTICATOR = ""; + + /** + * Returns user module name authorizing client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR) + String getSecurityClientAccessor(); + + /** + * Sets the user defined method name in {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + * property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR) + void setSecurityClientAccessor(String attValue); + + /** + * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_ACCESSOR_NAME = SECURITY_CLIENT_ACCESSOR; + + /** + * The default {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR} method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_ACCESSOR = ""; + + /** + * Returns user module name authorizing client credentials in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + */ + @ConfigAttributeGetter(name = SECURITY_CLIENT_ACCESSOR_PP) + String getSecurityClientAccessorPP(); + + /** + * Sets the user defined method name in + * {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} property. + */ + @ConfigAttributeSetter(name = SECURITY_CLIENT_ACCESSOR_PP) + void setSecurityClientAccessorPP(String attValue); + + /** + * The name of the factory method for {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + * property + */ + @ConfigAttribute(type = String.class) + String SECURITY_CLIENT_ACCESSOR_PP_NAME = SECURITY_CLIENT_ACCESSOR_PP; + + /** + * The default client post-operation {@link ConfigurationProperties#SECURITY_CLIENT_ACCESSOR_PP} + * method name. + *

+ * Actual value of this is fully qualified "method name". + */ + String DEFAULT_SECURITY_CLIENT_ACCESSOR_PP = ""; + + /** + * Get the current log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. + * + * @return the current security log-level + */ + @ConfigAttributeGetter(name = SECURITY_LOG_LEVEL) + int getSecurityLogLevel(); + + /** + * Set the log-level for {@link ConfigurationProperties#SECURITY_LOG_LEVEL}. + * + * @param level the new security log-level + */ + @ConfigAttributeSetter(name = SECURITY_LOG_LEVEL) + void setSecurityLogLevel(int level); + + /** + * The name of {@link ConfigurationProperties#SECURITY_LOG_LEVEL} property that sets the log-level + * for security logger obtained using {@link DistributedSystem#getSecurityLogWriter()} + */ + // type is String because the config file "config", "debug", "fine" etc, but the setter getter + // accepts int + @ConfigAttribute(type = String.class) + String SECURITY_LOG_LEVEL_NAME = SECURITY_LOG_LEVEL; + + /** + * Returns the value of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property + * + * @return null if logging information goes to standard out + */ + @ConfigAttributeGetter(name = SECURITY_LOG_FILE) + File getSecurityLogFile(); + + /** + * Sets the system's {@link ConfigurationProperties#SECURITY_LOG_FILE} containing security related + * messages. + *

+ * Non-absolute log files are relative to the system directory. + *

+ * The security log file can not be changed while the system is running. + * + * @throws IllegalArgumentException if the specified value is not acceptable. + * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. + * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when + * writing to the system's configuration file. + */ + @ConfigAttributeSetter(name = SECURITY_LOG_FILE) + void setSecurityLogFile(File value); + + /** + * The name of the {@link ConfigurationProperties#SECURITY_LOG_FILE} property. This property is + * the path of the file where security related messages are logged. + */ + @ConfigAttribute(type = File.class) + String SECURITY_LOG_FILE_NAME = SECURITY_LOG_FILE; + + /** + * The default {@link ConfigurationProperties#SECURITY_LOG_FILE}. + *

+ * * + *

+ * Actual value of this constant is "" which directs security log messages to the + * same place as the system log file. + */ + File DEFAULT_SECURITY_LOG_FILE = new File(""); + + /** + * Get timeout for peer membership check when security is enabled. + * + * @return Timeout in milliseconds. + */ + @ConfigAttributeGetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) + int getSecurityPeerMembershipTimeout(); + + /** + * Set timeout for peer membership check when security is enabled. The timeout must be less than + * peer handshake timeout. + * + * @param attValue + */ + @ConfigAttributeSetter(name = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT) + void setSecurityPeerMembershipTimeout(int attValue); + + /** + * The default peer membership check timeout is 1 second. + */ + int DEFAULT_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 1000; + + /** + * Max membership timeout must be less than max peer handshake timeout. Currently this is set to + * default handshake timeout of 60 seconds. + */ + int MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT = 60000; + + /** + * The name of the peer membership check timeout property + */ + @ConfigAttribute(type = Integer.class, min = 0, max = MAX_SECURITY_PEER_VERIFYMEMBER_TIMEOUT) + String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = SECURITY_PEER_VERIFY_MEMBER_TIMEOUT; + + /** + * Returns all properties starting with {@link ConfigurationProperties#SECURITY_PREFIX} + */ + Properties getSecurityProps(); + + /** + * Returns the value of security property {@link ConfigurationProperties#SECURITY_PREFIX} for an + * exact attribute name match. + */ + String getSecurity(String attName); + + /** + * Sets the value of the {@link ConfigurationProperties#SECURITY_PREFIX} property. + */ + void setSecurity(String attName, String attValue); + + String SECURITY_PREFIX_NAME = SECURITY_PREFIX; + + + /** + * The static String definition of the cluster ssl prefix "cluster-ssl" used in conjunction + * with other cluster-ssl-* properties property + *

+ * Description: The cluster-ssl property prefix + */ + @Deprecated + String CLUSTER_SSL_PREFIX = "cluster-ssl"; + + /** + * For the "custom-" prefixed properties + */ + String USERDEFINED_PREFIX_NAME = "custom-"; + + /** + * For ssl keystore and trust store properties + */ + String SSL_SYSTEM_PROPS_NAME = "javax.net.ssl"; + + String KEY_STORE_TYPE_NAME = ".keyStoreType"; + String KEY_STORE_NAME = ".keyStore"; + String KEY_STORE_PASSWORD_NAME = ".keyStorePassword"; + String TRUST_STORE_NAME = ".trustStore"; + String TRUST_STORE_PASSWORD_NAME = ".trustStorePassword"; + + /** + * Suffix for ssl keystore and trust store properties for JMX + */ + String JMX_SSL_PROPS_SUFFIX = "-jmx"; + + /** + * For security properties starting with sysprop in gfsecurity.properties file + */ + String SYS_PROP_NAME = "sysprop-"; + /** + * The property decides whether to remove unresponsive client from the server. + */ + @ConfigAttribute(type = Boolean.class) + String REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME = REMOVE_UNRESPONSIVE_CLIENT; + + /** + * The default value of remove unresponsive client is false. + */ + boolean DEFAULT_REMOVE_UNRESPONSIVE_CLIENT = false; + + /** + * Returns the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. + * + * @since GemFire 6.0 + */ + @ConfigAttributeGetter(name = REMOVE_UNRESPONSIVE_CLIENT) + boolean getRemoveUnresponsiveClient(); + + /** + * Sets the value of the {@link ConfigurationProperties#REMOVE_UNRESPONSIVE_CLIENT} property. + * + * @since GemFire 6.0 + */ + @ConfigAttributeSetter(name = REMOVE_UNRESPONSIVE_CLIENT) + void setRemoveUnresponsiveClient(boolean value); + + /** + * @since GemFire 6.3 + */ + @ConfigAttribute(type = Boolean.class) + String DELTA_PROPAGATION_PROP_NAME = DELTA_PROPAGATION; + + boolean DEFAULT_DELTA_PROPAGATION = true; + + /** + * Returns the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. + * + * @since GemFire 6.3 + */ + @ConfigAttributeGetter(name = DELTA_PROPAGATION) + boolean getDeltaPropagation(); + + /** + * Sets the value of the {@link ConfigurationProperties#DELTA_PROPAGATION} property. + * + * @since GemFire 6.3 + */ + @ConfigAttributeSetter(name = DELTA_PROPAGATION) + void setDeltaPropagation(boolean value); + + int MIN_DISTRIBUTED_SYSTEM_ID = -1; + int MAX_DISTRIBUTED_SYSTEM_ID = 255; + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = Integer.class) + String DISTRIBUTED_SYSTEM_ID_NAME = DISTRIBUTED_SYSTEM_ID; + int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1; + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeSetter(name = DISTRIBUTED_SYSTEM_ID) + void setDistributedSystemId(int distributedSystemId); + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeGetter(name = DISTRIBUTED_SYSTEM_ID) + int getDistributedSystemId(); + + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = String.class) + String REDUNDANCY_ZONE_NAME = REDUNDANCY_ZONE; + String DEFAULT_REDUNDANCY_ZONE = ""; + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeSetter(name = REDUNDANCY_ZONE) + void setRedundancyZone(String redundancyZone); + + /** + * @since GemFire 6.6 + */ + @ConfigAttributeGetter(name = REDUNDANCY_ZONE) + String getRedundancyZone(); + + /** + * @since GemFire 6.6.2 + */ + void setSSLProperty(String attName, String attValue); + + /** + * @since GemFire 6.6.2 + */ + Properties getSSLProperties(); + + Properties getClusterSSLProperties(); + + /** + * @since GemFire 8.0 + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + Properties getJmxSSLProperties(); + + /** + * @since GemFire 6.6 + */ + @ConfigAttribute(type = Boolean.class) + String ENFORCE_UNIQUE_HOST_NAME = ENFORCE_UNIQUE_HOST; + /** + * Using the system property to set the default here to retain backwards compatibility with + * customers that are already using this system property. + */ + boolean DEFAULT_ENFORCE_UNIQUE_HOST = + Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "EnforceUniqueHostStorageAllocation"); + + @ConfigAttributeSetter(name = ENFORCE_UNIQUE_HOST) + void setEnforceUniqueHost(boolean enforceUniqueHost); + + @ConfigAttributeGetter(name = ENFORCE_UNIQUE_HOST) + boolean getEnforceUniqueHost(); + + Properties getUserDefinedProps(); + + /** + * Returns the value of the {@link ConfigurationProperties#GROUPS} property + *

+ * The default value is: {@link #DEFAULT_GROUPS}. + * + * @return the value of the property + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = GROUPS) + String getGroups(); + + /** + * Sets the {@link ConfigurationProperties#GROUPS} property. + *

+ * The groups can not be changed while the system is running. + * + * @throws IllegalArgumentException if the specified value is not acceptable. + * @throws org.apache.geode.UnmodifiableException if this attribute can not be modified. + * @throws org.apache.geode.GemFireIOException if the set failure is caused by an error when + * writing to the system's configuration file. + * @since GemFire 7.0 + */ + @ConfigAttributeSetter(name = GROUPS) + void setGroups(String value); + + /** + * The name of the {@link ConfigurationProperties#GROUPS} property + * + * @since GemFire 7.0 + */ + @ConfigAttribute(type = String.class) + String GROUPS_NAME = GROUPS; + /** + * The default {@link ConfigurationProperties#GROUPS}. + *

+ * Actual value of this constant is "". + * + * @since GemFire 7.0 + */ + String DEFAULT_GROUPS = ""; + + /** + * Any cleanup required before closing the distributed system + */ + void close(); + + @ConfigAttributeSetter(name = REMOTE_LOCATORS) + void setRemoteLocators(String locators); + + @ConfigAttributeGetter(name = REMOTE_LOCATORS) + String getRemoteLocators(); + + /** + * The name of the {@link ConfigurationProperties#REMOTE_LOCATORS} property + */ + @ConfigAttribute(type = String.class) + String REMOTE_LOCATORS_NAME = REMOTE_LOCATORS; + /** + * The default value of the {@link ConfigurationProperties#REMOTE_LOCATORS} property + */ + String DEFAULT_REMOTE_LOCATORS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER) + boolean getJmxManager(); + + @ConfigAttributeSetter(name = JMX_MANAGER) + void setJmxManager(boolean value); + + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_NAME = JMX_MANAGER; + boolean DEFAULT_JMX_MANAGER = false; + + @ConfigAttributeGetter(name = JMX_MANAGER_START) + boolean getJmxManagerStart(); + + @ConfigAttributeSetter(name = JMX_MANAGER_START) + void setJmxManagerStart(boolean value); + + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_START_NAME = JMX_MANAGER_START; + boolean DEFAULT_JMX_MANAGER_START = false; + + @ConfigAttributeGetter(name = JMX_MANAGER_PORT) + int getJmxManagerPort(); + + @ConfigAttributeSetter(name = JMX_MANAGER_PORT) + void setJmxManagerPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String JMX_MANAGER_PORT_NAME = JMX_MANAGER_PORT; + + int DEFAULT_JMX_MANAGER_PORT = 1099; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_ENABLED) + boolean getJmxManagerSSLEnabled(); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_JMX_MANAGER_SSL_ENABLED = false; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_SSL_ENABLED_NAME = JMX_MANAGER_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_ENABLED) + void setJmxManagerSSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = OFF_HEAP_MEMORY_SIZE) + String getOffHeapMemorySize(); + + /** + * Sets the value of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = OFF_HEAP_MEMORY_SIZE) + void setOffHeapMemorySize(String value); + + /** + * The name of the {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String OFF_HEAP_MEMORY_SIZE_NAME = OFF_HEAP_MEMORY_SIZE; + /** + * The default {@link ConfigurationProperties#OFF_HEAP_MEMORY_SIZE} value of "". + * + * @since Geode 1.0 + */ + String DEFAULT_OFF_HEAP_MEMORY_SIZE = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_PROTOCOLS) + String getJmxManagerSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_PROTOCOLS) + void setJmxManagerSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_PROTOCOLS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_PROTOCOLS_NAME = JMX_MANAGER_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_CIPHERS) + String getJmxManagerSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_CIPHERS) + void setJmxManagerSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_CIPHERS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_CIPHERS_NAME = JMX_MANAGER_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) + boolean getJmxManagerSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION) + void setJmxManagerSSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION_NAME = JMX_MANAGER_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE) + String getJmxManagerSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE) + void setJmxManagerSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_NAME = JMX_MANAGER_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) + String getJmxManagerSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_TYPE) + void setJmxManagerSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_TYPE_NAME = JMX_MANAGER_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) + String getJmxManagerSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_KEYSTORE_PASSWORD) + void setJmxManagerSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_KEYSTORE_PASSWORD} + * propery + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_KEYSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE) + String getJmxManagerSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE) + void setJmxManagerSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_TRUSTSTORE_NAME = JMX_MANAGER_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) + String getJmxManagerSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD) + void setJmxManagerSSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD_NAME = JMX_MANAGER_SSL_TRUSTSTORE_PASSWORD; + + @ConfigAttributeGetter(name = JMX_MANAGER_BIND_ADDRESS) + String getJmxManagerBindAddress(); + + @ConfigAttributeSetter(name = JMX_MANAGER_BIND_ADDRESS) + void setJmxManagerBindAddress(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_BIND_ADDRESS_NAME = JMX_MANAGER_BIND_ADDRESS; + String DEFAULT_JMX_MANAGER_BIND_ADDRESS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) + String getJmxManagerHostnameForClients(); + + @ConfigAttributeSetter(name = JMX_MANAGER_HOSTNAME_FOR_CLIENTS) + void setJmxManagerHostnameForClients(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_HOSTNAME_FOR_CLIENTS_NAME = JMX_MANAGER_HOSTNAME_FOR_CLIENTS; + String DEFAULT_JMX_MANAGER_HOSTNAME_FOR_CLIENTS = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_PASSWORD_FILE) + String getJmxManagerPasswordFile(); + + @ConfigAttributeSetter(name = JMX_MANAGER_PASSWORD_FILE) + void setJmxManagerPasswordFile(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_PASSWORD_FILE_NAME = JMX_MANAGER_PASSWORD_FILE; + String DEFAULT_JMX_MANAGER_PASSWORD_FILE = ""; + + @ConfigAttributeGetter(name = JMX_MANAGER_ACCESS_FILE) + String getJmxManagerAccessFile(); + + @ConfigAttributeSetter(name = JMX_MANAGER_ACCESS_FILE) + void setJmxManagerAccessFile(String value); + + @ConfigAttribute(type = String.class) + String JMX_MANAGER_ACCESS_FILE_NAME = JMX_MANAGER_ACCESS_FILE; + String DEFAULT_JMX_MANAGER_ACCESS_FILE = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property + * + * @deprecated as of 8.0 use {@link #getHttpServicePort()} instead. + */ + @ConfigAttributeGetter(name = JMX_MANAGER_HTTP_PORT) + int getJmxManagerHttpPort(); + + /** + * Set the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for jmx-manager. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} for + * jmx-manager. + * + * @param value the port number for jmx-manager HTTP service + * + * @deprecated as of 8.0 use {@link #setHttpServicePort(int)} instead. + */ + @ConfigAttributeSetter(name = JMX_MANAGER_HTTP_PORT) + void setJmxManagerHttpPort(int value); + + /** + * The name of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + *

+ * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + * + * @deprecated as of 8.0 use {{@link #HTTP_SERVICE_PORT_NAME} instead. + */ + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String JMX_MANAGER_HTTP_PORT_NAME = JMX_MANAGER_HTTP_PORT; + + /** + * The default value of the {@link ConfigurationProperties#JMX_MANAGER_HTTP_PORT} property. + * Current value is a 7070 + * + * @deprecated as of 8.0 use {@link #DEFAULT_HTTP_SERVICE_PORT} instead. + */ + int DEFAULT_JMX_MANAGER_HTTP_PORT = 7070; + + @ConfigAttributeGetter(name = JMX_MANAGER_UPDATE_RATE) + int getJmxManagerUpdateRate(); + + @ConfigAttributeSetter(name = JMX_MANAGER_UPDATE_RATE) + void setJmxManagerUpdateRate(int value); + + int DEFAULT_JMX_MANAGER_UPDATE_RATE = 2000; + int MIN_JMX_MANAGER_UPDATE_RATE = 1000; + int MAX_JMX_MANAGER_UPDATE_RATE = 60000 * 5; + @ConfigAttribute(type = Integer.class, min = MIN_JMX_MANAGER_UPDATE_RATE, + max = MAX_JMX_MANAGER_UPDATE_RATE) + String JMX_MANAGER_UPDATE_RATE_NAME = JMX_MANAGER_UPDATE_RATE; + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PORT} property + * + * @return the port on which GemFireMemcachedServer should be started + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_PORT) + int getMemcachedPort(); + + @ConfigAttributeSetter(name = MEMCACHED_PORT) + void setMemcachedPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String MEMCACHED_PORT_NAME = MEMCACHED_PORT; + int DEFAULT_MEMCACHED_PORT = 0; + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_PROTOCOL} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_PROTOCOL} property + * + * @return the protocol for GemFireMemcachedServer + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_PROTOCOL) + String getMemcachedProtocol(); + + @ConfigAttributeSetter(name = MEMCACHED_PROTOCOL) + void setMemcachedProtocol(String protocol); + + @ConfigAttribute(type = String.class) + String MEMCACHED_PROTOCOL_NAME = MEMCACHED_PROTOCOL; + String DEFAULT_MEMCACHED_PROTOCOL = GemFireMemcachedServer.Protocol.ASCII.name(); + + /** + * Returns the value of the {@link ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#MEMCACHED_BIND_ADDRESS} property + * + * @return the bind address for GemFireMemcachedServer + * + * @since GemFire 7.0 + */ + @ConfigAttributeGetter(name = MEMCACHED_BIND_ADDRESS) + String getMemcachedBindAddress(); + + @ConfigAttributeSetter(name = MEMCACHED_BIND_ADDRESS) + void setMemcachedBindAddress(String bindAddress); + + @ConfigAttribute(type = String.class) + String MEMCACHED_BIND_ADDRESS_NAME = MEMCACHED_BIND_ADDRESS; + String DEFAULT_MEMCACHED_BIND_ADDRESS = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_PORT} property + * + * @return the port on which GeodeRedisServer should be started + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_PORT) + int getRedisPort(); + + @ConfigAttributeSetter(name = REDIS_PORT) + void setRedisPort(int value); + + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String REDIS_PORT_NAME = REDIS_PORT; + int DEFAULT_REDIS_PORT = 0; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_BIND_ADDRESS} property + * + * @return the bind address for GemFireRedisServer + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_BIND_ADDRESS) + String getRedisBindAddress(); + + @ConfigAttributeSetter(name = REDIS_BIND_ADDRESS) + void setRedisBindAddress(String bindAddress); + + @ConfigAttribute(type = String.class) + String REDIS_BIND_ADDRESS_NAME = REDIS_BIND_ADDRESS; + String DEFAULT_REDIS_BIND_ADDRESS = ""; + + /** + * Returns the value of the {@link ConfigurationProperties#REDIS_PASSWORD} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#REDIS_PASSWORD} property + * + * @return the authentication password for GemFireRedisServer + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = REDIS_PASSWORD) + String getRedisPassword(); + + @ConfigAttributeSetter(name = REDIS_PASSWORD) + void setRedisPassword(String password); + + @ConfigAttribute(type = String.class) + String REDIS_PASSWORD_NAME = REDIS_PASSWORD; + String DEFAULT_REDIS_PASSWORD = ""; + + // Added for the HTTP service + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} property + * + * @return the HTTP service port + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = HTTP_SERVICE_PORT) + int getHttpServicePort(); + + /** + * Set the {@link ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} for HTTP + * service. + * + * @param value the port number for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_PORT) + void setHttpServicePort(int value); + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property + *

+ * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_PORT} + * property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Integer.class, min = 0, max = 65535) + String HTTP_SERVICE_PORT_NAME = HTTP_SERVICE_PORT; + + /** + * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_PORT} property. Current + * value is a 7070 + * + * @since GemFire 8.0 + */ + int DEFAULT_HTTP_SERVICE_PORT = 7070; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + * + * @return the bind-address for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeGetter(name = HTTP_SERVICE_BIND_ADDRESS) + String getHttpServiceBindAddress(); + + /** + * Set the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} + * for HTTP service. + * + * @param value the bind-address for HTTP service + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_BIND_ADDRESS) + void setHttpServiceBindAddress(String value); + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_BIND_ADDRESS_NAME = HTTP_SERVICE_BIND_ADDRESS; + + /** + * The default value of the {@link ConfigurationProperties#HTTP_SERVICE_BIND_ADDRESS} property. + * Current value is an empty string "" + * + * @since GemFire 8.0 + */ + String DEFAULT_HTTP_SERVICE_BIND_ADDRESS = ""; + + // Added for HTTP Service SSL + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_ENABLED) + boolean getHttpServiceSSLEnabled(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_ENABLED) + void setHttpServiceSSLEnabled(boolean httpServiceSSLEnabled); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_HTTP_SERVICE_SSL_ENABLED = false; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_ENABLED} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String HTTP_SERVICE_SSL_ENABLED_NAME = HTTP_SERVICE_SSL_ENABLED; + + /** + * Returns the value of the + * {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) + boolean getHttpServiceSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION) + void setHttpServiceSSLRequireAuthentication(boolean httpServiceSSLRequireAuthentication); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION = false; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION_NAME = HTTP_SERVICE_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_PROTOCOLS) + String getHttpServiceSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLProtocols(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_PROTOCOLS) + void setHttpServiceSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_PROTOCOLS = "any"; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_PROTOCOLS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_PROTOCOLS_NAME = HTTP_SERVICE_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_CIPHERS) + String getHttpServiceSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_CIPHERS) + void setHttpServiceSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_CIPHERS = "any"; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_CIPHERS} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_CIPHERS_NAME = HTTP_SERVICE_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE) + String getHttpServiceSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE) + void setHttpServiceSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_NAME = HTTP_SERVICE_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) + String getHttpServiceSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD) + void setHttpServiceSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) + String getHttpServiceSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_KEYSTORE_TYPE) + void setHttpServiceSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_KEYSTORE_TYPE_NAME = HTTP_SERVICE_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) + String getHttpServiceSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE) + void setHttpServiceSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} property The name + * of the {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_TRUSTSTORE_NAME = HTTP_SERVICE_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) + String getHttpServiceSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD) + void setHttpServiceSSLTrustStorePassword(String trustStorePassword); + + /** + * The default {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} property + * The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD_NAME = HTTP_SERVICE_SSL_TRUSTSTORE_PASSWORD; + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getHttpServiceSSLProperties(); + + // Added for API REST + + /** + * Returns the value of the {@link ConfigurationProperties#START_DEV_REST_API} property + *

+ * Returns the value of the + * {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} property + * + * @return the value of the property + * + * @since GemFire 8.0 + */ + + @ConfigAttributeGetter(name = START_DEV_REST_API) + boolean getStartDevRestApi(); + + /** + * Set the {@link ConfigurationProperties#START_DEV_REST_API} for HTTP service. + *

+ * Set the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} for + * HTTP service. + * + * @param value for the property + * + * @since GemFire 8.0 + */ + @ConfigAttributeSetter(name = START_DEV_REST_API) + void setStartDevRestApi(boolean value); + + /** + * The name of the {@link ConfigurationProperties#START_DEV_REST_API} property + *

+ * The name of the {@link org.apache.geode.distributed.ConfigurationProperties#START_DEV_REST_API} + * property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Boolean.class) + String START_DEV_REST_API_NAME = START_DEV_REST_API; + + /** + * The default value of the {@link ConfigurationProperties#START_DEV_REST_API} property. Current + * value is "false" + * + * @since GemFire 8.0 + */ + boolean DEFAULT_START_DEV_REST_API = false; + + /** + * The name of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property + * + * @since GemFire 8.0 + */ + @ConfigAttribute(type = Boolean.class) + String DISABLE_AUTO_RECONNECT_NAME = DISABLE_AUTO_RECONNECT; + + /** + * The default value of the {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} property + */ + boolean DEFAULT_DISABLE_AUTO_RECONNECT = false; + + /** + * Gets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} + */ + @ConfigAttributeGetter(name = DISABLE_AUTO_RECONNECT) + boolean getDisableAutoReconnect(); + + /** + * Sets the value of {@link ConfigurationProperties#DISABLE_AUTO_RECONNECT} + * + * @param value the new setting + */ + @ConfigAttributeSetter(name = DISABLE_AUTO_RECONNECT) + void setDisableAutoReconnect(boolean value); + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getServerSSLProperties(); + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_ENABLED) + boolean getServerSSLEnabled(); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_SERVER_SSL_ENABLED = false; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String SERVER_SSL_ENABLED_NAME = SERVER_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLEnabled(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_ENABLED) + void setServerSSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_PROTOCOLS) + String getServerSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property. + */ + @ConfigAttributeSetter(name = SERVER_SSL_PROTOCOLS) + void setServerSSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + @Deprecated + String DEFAULT_SERVER_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_PROTOCOLS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_PROTOCOLS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_PROTOCOLS_NAME = SERVER_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_CIPHERS) + String getServerSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_CIPHERS) + void setServerSSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  + */ + @Deprecated + String DEFAULT_SERVER_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_CIPHERS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_CIPHERS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_CIPHERS_NAME = SERVER_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()}  + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) + boolean getServerSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLRequireAuthentication(boolean)}  + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_REQUIRE_AUTHENTICATION) + void setServerSSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_SERVER_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String SERVER_SSL_REQUIRE_AUTHENTICATION_NAME = SERVER_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE) + String getServerSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE) + void setServerSSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_NAME = SERVER_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_TYPE) + String getServerSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_TYPE) + void setServerSSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_TYPE_NAME = SERVER_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_KEYSTORE_PASSWORD) + String getServerSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_KEYSTORE_PASSWORD) + void setServerSSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_SERVER_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_KEYSTORE_PASSWORD_NAME = SERVER_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE) + String getServerSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setServerSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE) + void setServerSSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + String DEFAULT_SERVER_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_TRUSTSTORE_NAME = SERVER_SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) + String getServerSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = SERVER_SSL_TRUSTSTORE_PASSWORD) + void setServerSSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_SERVER_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#SERVER_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String SERVER_SSL_TRUSTSTORE_PASSWORD_NAME = SERVER_SSL_TRUSTSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_ENABLED) + boolean getGatewaySSLEnabled(); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} state. + *

+ * Actual value of this constant is false. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_ENABLED} + */ + @Deprecated + boolean DEFAULT_GATEWAY_SSL_ENABLED = false; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_ENABLED} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_ENABLED} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String GATEWAY_SSL_ENABLED_NAME = GATEWAY_SSL_ENABLED; + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_ENABLED} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLEnabled()} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_ENABLED) + void setGatewaySSLEnabled(boolean enabled); + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLProtocols()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_PROTOCOLS) + String getGatewaySSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_PROTOCOLS) + void setGatewaySSLProtocols(String protocols); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_PROTOCOLS} + */ + String DEFAULT_GATEWAY_SSL_PROTOCOLS = "any"; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_PROTOCOLS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_PROTOCOLS} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_PROTOCOLS_NAME = GATEWAY_SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLCiphers()}  + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_CIPHERS) + String getGatewaySSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLCiphers(String)}  + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_CIPHERS) + void setGatewaySSLCiphers(String ciphers); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} value. + *

+ * Actual value of this constant is any. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_CIPHERS}  + */ + String DEFAULT_GATEWAY_SSL_CIPHERS = "any"; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_CIPHERS} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_CIPHERS} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_CIPHERS}  + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_CIPHERS_NAME = GATEWAY_SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLRequireAuthentication()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) + boolean getGatewaySSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property. + * + * @deprecated Geode 1.0 use {@link #setGatewaySSLRequireAuthentication(boolean)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_REQUIRE_AUTHENTICATION) + void setGatewaySSLRequireAuthentication(boolean enabled); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} value. + *

+ * Actual value of this constant is true. + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + boolean DEFAULT_GATEWAY_SSL_REQUIRE_AUTHENTICATION = true; + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_REQUIRE_AUTHENTICATION} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_REQUIRE_AUTHENTICATION} + */ + @Deprecated + @ConfigAttribute(type = Boolean.class) + String GATEWAY_SSL_REQUIRE_AUTHENTICATION_NAME = GATEWAY_SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE) + String getGatewaySSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE) + void setGatewaySSLKeyStore(String keyStore); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_NAME = GATEWAY_SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStoreType()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_TYPE) + String getGatewaySSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStoreType(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_TYPE) + void setGatewaySSLKeyStoreType(String keyStoreType); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE_TYPE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} property The name of + * the {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_TYPE} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_TYPE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_TYPE_NAME = GATEWAY_SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLKeyStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) + String getGatewaySSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_KEYSTORE_PASSWORD) + void setGatewaySSLKeyStorePassword(String keyStorePassword); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_KEYSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} property The name + * of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_KEYSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_KEYSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_KEYSTORE_PASSWORD_NAME = GATEWAY_SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStore()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE) + String getGatewaySSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLTrustStore(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE) + void setGatewaySSLTrustStore(String trustStore); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_TRUSTSTORE = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property The name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE} property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_TRUSTSTORE_NAME = GATEWAY_SSL_TRUSTSTORE; - for (Method method : DistributionConfig.class.getDeclaredMethods()) { - if (method.isAnnotationPresent(ConfigAttributeGetter.class)) { - ConfigAttributeGetter getter = method.getAnnotation(ConfigAttributeGetter.class); - getters.put(getter.name(), method); - } else if (method.isAnnotationPresent(ConfigAttributeSetter.class)) { - ConfigAttributeSetter setter = method.getAnnotation(ConfigAttributeSetter.class); - setters.put(setter.name(), method); - } + /** + * Returns the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} + * property. + * + * @deprecated Geode 1.0 use {@link #getClusterSSLTrustStorePassword()} + */ + @Deprecated + @ConfigAttributeGetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) + String getGatewaySSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property. + * + * @deprecated Geode 1.0 use {@link #setClusterSSLKeyStorePassword(String)} + */ + @Deprecated + @ConfigAttributeSetter(name = GATEWAY_SSL_TRUSTSTORE_PASSWORD) + void setGatewaySSLTrustStorePassword(String trusStorePassword); + + /** + * The default {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} value. + *

+ * Actual value of this constant is "". + * + * @deprecated Geode 1.0 use {@link #DEFAULT_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + String DEFAULT_GATEWAY_SSL_TRUSTSTORE_PASSWORD = ""; + + /** + * The name of the {@link ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} property The + * name of the + * {@link org.apache.geode.distributed.ConfigurationProperties#GATEWAY_SSL_TRUSTSTORE_PASSWORD} + * property + * + * @deprecated Geode 1.0 use + * {@link org.apache.geode.distributed.ConfigurationProperties#CLUSTER_SSL_TRUSTSTORE_PASSWORD} + */ + @Deprecated + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_TRUSTSTORE_PASSWORD_NAME = GATEWAY_SSL_TRUSTSTORE_PASSWORD; + + /** + * @deprecated Geode 1.0 use {@link #getClusterSSLProperties()} + */ + @Deprecated + Properties getGatewaySSLProperties(); + + ConfigSource getConfigSource(String attName); + + /** + * The name of the {@link ConfigurationProperties#LOCK_MEMORY} property. Used to cause pages to be + * locked into memory, thereby preventing them from being swapped to disk. + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = Boolean.class) + String LOCK_MEMORY_NAME = LOCK_MEMORY; + boolean DEFAULT_LOCK_MEMORY = false; + + /** + * Gets the value of {@link ConfigurationProperties#LOCK_MEMORY} + *

+ * Gets the value of {@link org.apache.geode.distributed.ConfigurationProperties#LOCK_MEMORY} + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = LOCK_MEMORY) + boolean getLockMemory(); + + /** + * Set the value of {@link ConfigurationProperties#LOCK_MEMORY} + * + * @param value the new setting + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = LOCK_MEMORY) + void setLockMemory(boolean value); + + @ConfigAttribute(type = String.class) + String SECURITY_SHIRO_INIT_NAME = SECURITY_SHIRO_INIT; + + @ConfigAttributeSetter(name = SECURITY_SHIRO_INIT) + void setShiroInit(String value); + + @ConfigAttributeGetter(name = SECURITY_SHIRO_INIT) + String getShiroInit(); + + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_CLUSTER_ALIAS) + String getClusterSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_CLUSTER_ALIAS) + void setClusterSSLAlias(String alias); + + /** + * The Default Cluster SSL alias + * + * @since Geode 1.0 + */ + String DEFAULT_SSL_ALIAS = ""; + + /** + * The name of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String CLUSTER_SSL_ALIAS_NAME = SSL_CLUSTER_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_LOCATOR_ALIAS) + String getLocatorSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_LOCATOR_ALIAS) + void setLocatorSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_LOCATOR_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String LOCATOR_SSL_ALIAS_NAME = SSL_LOCATOR_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_GATEWAY_ALIAS) + String getGatewaySSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_GATEWAY_ALIAS) + void setGatewaySSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_GATEWAY_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String GATEWAY_SSL_ALIAS_NAME = SSL_GATEWAY_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CLUSTER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_WEB_ALIAS) + String getHTTPServiceSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_WEB_ALIAS) + void setHTTPServiceSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_WEB_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String HTTP_SERVICE_SSL_ALIAS_NAME = SSL_WEB_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_JMX_ALIAS) + String getJMXSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_JMX_ALIAS) + void setJMXSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_JMX_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String JMX_SSL_ALIAS_NAME = SSL_JMX_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_SERVER_ALIAS) + String getServerSSLAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_SERVER_ALIAS) + void setServerSSLAlias(String alias); + + /** + * The name of the {@link ConfigurationProperties#SSL_SERVER_ALIAS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = String.class) + String SERVER_SSL_ALIAS_NAME = SSL_SERVER_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeGetter(name = SSL_ENABLED_COMPONENTS) + SecurableCommunicationChannel[] getSecurableCommunicationChannels(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property. + * + * @since Geode 1.0 + */ + @ConfigAttributeSetter(name = SSL_ENABLED_COMPONENTS) + void setSecurableCommunicationChannels(SecurableCommunicationChannel[] sslEnabledComponents); + + /** + * The name of the {@link ConfigurationProperties#SSL_ENABLED_COMPONENTS} property + * + * @since Geode 1.0 + */ + @ConfigAttribute(type = SecurableCommunicationChannel[].class) + String SSL_ENABLED_COMPONENTS_NAME = SSL_ENABLED_COMPONENTS; + + /** + * The default ssl enabled components + * + * @since Geode 1.0 + */ + SecurableCommunicationChannel[] DEFAULT_SSL_ENABLED_COMPONENTS = + new SecurableCommunicationChannel[] {}; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. + */ + @ConfigAttributeGetter(name = SSL_PROTOCOLS) + String getSSLProtocols(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_PROTOCOLS} property. + */ + @ConfigAttributeSetter(name = SSL_PROTOCOLS) + void setSSLProtocols(String protocols); + + /** + * The name of the {@link ConfigurationProperties#SSL_PROTOCOLS} property + */ + @ConfigAttribute(type = String.class) + String SSL_PROTOCOLS_NAME = SSL_PROTOCOLS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. + */ + @ConfigAttributeGetter(name = SSL_CIPHERS) + String getSSLCiphers(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_CIPHERS} property. + */ + @ConfigAttributeSetter(name = SSL_CIPHERS) + void setSSLCiphers(String ciphers); + + /** + * The name of the {@link ConfigurationProperties#SSL_CIPHERS} property + */ + @ConfigAttribute(type = String.class) + String SSL_CIPHERS_NAME = SSL_CIPHERS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. + */ + @ConfigAttributeGetter(name = SSL_REQUIRE_AUTHENTICATION) + boolean getSSLRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property. + */ + @ConfigAttributeSetter(name = SSL_REQUIRE_AUTHENTICATION) + void setSSLRequireAuthentication(boolean enabled); + + /** + * The name of the {@link ConfigurationProperties#SSL_REQUIRE_AUTHENTICATION} property + */ + @ConfigAttribute(type = Boolean.class) + String SSL_REQUIRE_AUTHENTICATION_NAME = SSL_REQUIRE_AUTHENTICATION; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE) + String getSSLKeyStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE) + void setSSLKeyStore(String keyStore); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_NAME = SSL_KEYSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE_TYPE) + String getSSLKeyStoreType(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE_TYPE) + void setSSLKeyStoreType(String keyStoreType); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_TYPE} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_TYPE_NAME = SSL_KEYSTORE_TYPE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. + */ + @ConfigAttributeGetter(name = SSL_KEYSTORE_PASSWORD) + String getSSLKeyStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property. + */ + @ConfigAttributeSetter(name = SSL_KEYSTORE_PASSWORD) + void setSSLKeyStorePassword(String keyStorePassword); + + /** + * The name of the {@link ConfigurationProperties#SSL_KEYSTORE_PASSWORD} property + */ + @ConfigAttribute(type = String.class) + String SSL_KEYSTORE_PASSWORD_NAME = SSL_KEYSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. + */ + @ConfigAttributeGetter(name = SSL_TRUSTSTORE) + String getSSLTrustStore(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property. + */ + @ConfigAttributeSetter(name = SSL_TRUSTSTORE) + void setSSLTrustStore(String trustStore); + + /** + * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE} property + */ + @ConfigAttribute(type = String.class) + String SSL_TRUSTSTORE_NAME = SSL_TRUSTSTORE; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. + */ + @ConfigAttributeGetter(name = SSL_DEFAULT_ALIAS) + String getSSLDefaultAlias(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property. + */ + @ConfigAttributeSetter(name = SSL_DEFAULT_ALIAS) + void setSSLDefaultAlias(String sslDefaultAlias); + + /** + * The name of the {@link ConfigurationProperties#SSL_DEFAULT_ALIAS} property + */ + @ConfigAttribute(type = String.class) + String SSL_DEFAULT_ALIAS_NAME = SSL_DEFAULT_ALIAS; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. + */ + @ConfigAttributeGetter(name = SSL_TRUSTSTORE_PASSWORD) + String getSSLTrustStorePassword(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property. + */ + @ConfigAttributeSetter(name = SSL_TRUSTSTORE_PASSWORD) + void setSSLTrustStorePassword(String trustStorePassword); + + /** + * The name of the {@link ConfigurationProperties#SSL_TRUSTSTORE_PASSWORD} property + */ + @ConfigAttribute(type = String.class) + String SSL_TRUSTSTORE_PASSWORD_NAME = SSL_TRUSTSTORE_PASSWORD; + + /** + * Returns the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} + * property. + */ + @ConfigAttributeGetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) + boolean getSSLWebRequireAuthentication(); + + /** + * Sets the value of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} + * property. + */ + @ConfigAttributeSetter(name = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION) + void setSSLWebRequireAuthentication(boolean requiresAuthentication); + + /** + * The name of the {@link ConfigurationProperties#SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION} property + */ + @ConfigAttribute(type = Boolean.class) + String SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION_NAME = SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION; + + /** + * The default value for http service ssl mutual authentication + */ + boolean DEFAULT_SSL_WEB_SERVICE_REQUIRE_AUTHENTICATION = false; + + // *************** Initializers to gather all the annotations in this class + // ************************ + + Map attributes = new HashMap<>(); + Map setters = new HashMap<>(); + Map getters = new HashMap<>(); + String[] dcValidAttributeNames = init(); + + static String[] init() { + List atts = new ArrayList<>(); + for (Field field : DistributionConfig.class.getDeclaredFields()) { + if (field.isAnnotationPresent(ConfigAttribute.class)) { + try { + atts.add((String) field.get(null)); + attributes.put((String) field.get(null), field.getAnnotation(ConfigAttribute.class)); + } catch (IllegalAccessException e) { + e.printStackTrace(); } - Collections.sort(atts); - return atts.toArray(new String[atts.size()]); } + } + + for (Method method : DistributionConfig.class.getDeclaredMethods()) { + if (method.isAnnotationPresent(ConfigAttributeGetter.class)) { + ConfigAttributeGetter getter = method.getAnnotation(ConfigAttributeGetter.class); + getters.put(getter.name(), method); + } else if (method.isAnnotationPresent(ConfigAttributeSetter.class)) { + ConfigAttributeSetter setter = method.getAnnotation(ConfigAttributeSetter.class); + setters.put(setter.name(), method); + } + } + Collections.sort(atts); + return atts.toArray(new String[atts.size()]); + } } diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java index 8ca4842d30f3..82cf6ec22986 100644 --- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java +++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java @@ -122,7 +122,7 @@ * @since GemFire 3.0 */ public class InternalDistributedSystem extends DistributedSystem -implements OsStatisticsFactory, StatisticsManager { + implements OsStatisticsFactory, StatisticsManager { /** * True if the user is allowed lock when memory resources appear to be overcommitted. @@ -141,11 +141,11 @@ public class InternalDistributedSystem extends DistributedSystem public static final CreationStackGenerator DEFAULT_CREATION_STACK_GENERATOR = new CreationStackGenerator() { - @Override - public Throwable generateCreationStack(final DistributionConfig config) { - return null; - } - }; + @Override + public Throwable generateCreationStack(final DistributionConfig config) { + return null; + } + }; // the following is overridden from DistributedTestCase to fix #51058 public static final AtomicReference TEST_CREATION_STACK_GENERATOR = @@ -668,7 +668,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce } catch (Exception ex) { throw new GemFireSecurityException( LocalizedStrings.InternalDistributedSystem_PROBLEM_IN_INITIALIZING_KEYS_FOR_CLIENT_AUTHENTICATION - .toLocalizedString(), + .toLocalizedString(), ex); } @@ -691,7 +691,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce } else { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_MEMORY_OVERCOMMIT - .toLocalizedString(avail, size)); + .toLocalizedString(avail, size)); } } @@ -742,7 +742,7 @@ private void initialize(SecurityManager securityManager, PostProcessor postProce // but during startup we should instead throw a SystemConnectException throw new SystemConnectException( LocalizedStrings.InternalDistributedSystem_DISTRIBUTED_SYSTEM_HAS_DISCONNECTED - .toLocalizedString(), + .toLocalizedString(), e); } @@ -841,7 +841,7 @@ private void startInitLocator() throws InterruptedException { } catch (IOException e) { throw new GemFireIOException( LocalizedStrings.InternalDistributedSystem_PROBLEM_STARTING_A_LOCATOR_SERVICE - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -889,7 +889,7 @@ private void checkConnected() { if (!isConnected()) { throw new DistributedSystemDisconnectedException( LocalizedStrings.InternalDistributedSystem_THIS_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_HAS_BEEN_DISCONNECTED - .toLocalizedString(), + .toLocalizedString(), dm.getRootCause()); } } @@ -1296,7 +1296,7 @@ private void waitDisconnected() { } catch (InterruptedException e) { interrupted = true; getLogWriter().convertToLogWriterI18n() - .warning(LocalizedStrings.InternalDistributedSystem_DISCONNECT_WAIT_INTERRUPTED, e); + .warning(LocalizedStrings.InternalDistributedSystem_DISCONNECT_WAIT_INTERRUPTED, e); } finally { if (interrupted) { Thread.currentThread().interrupt(); @@ -2109,7 +2109,7 @@ private static void notifyConnectListeners(InternalDistributedSystem sys) { // is still usable: SystemFailure.checkFailure(); sys.getLogWriter().convertToLogWriterI18n() - .severe(LocalizedStrings.InternalDistributedSystem_CONNECTLISTENER_THREW, t); + .severe(LocalizedStrings.InternalDistributedSystem_CONNECTLISTENER_THREW, t); } } } @@ -2215,7 +2215,7 @@ public void addDisconnectListener(DisconnectListener listener) { this.listeners.remove(listener); // don't leave in the list! throw new DistributedSystemDisconnectedException( LocalizedStrings.InternalDistributedSystem_NO_LISTENERS_PERMITTED_AFTER_SHUTDOWN_0 - .toLocalizedString(reason), + .toLocalizedString(reason), dm.getRootCause()); } } @@ -2639,7 +2639,7 @@ private void reconnect(boolean forcedDisconnect, String reason) { } throw new CacheClosedException( LocalizedStrings.InternalDistributedSystem_SOME_REQUIRED_ROLES_MISSING - .toLocalizedString()); + .toLocalizedString()); } } @@ -2919,11 +2919,11 @@ public void validateSameProperties(Properties propsToCheck, boolean isConnected) if (this.creationStack == null) { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_A_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_ALREADY_EXISTS_IN_THIS_VM_IT_HAS_THE_FOLLOWING_CONFIGURATION_0 - .toLocalizedString(sb.toString())); + .toLocalizedString(sb.toString())); } else { throw new IllegalStateException( LocalizedStrings.InternalDistributedSystem_A_CONNECTION_TO_A_DISTRIBUTED_SYSTEM_ALREADY_EXISTS_IN_THIS_VM_IT_HAS_THE_FOLLOWING_CONFIGURATION_0 - .toLocalizedString(sb.toString()), + .toLocalizedString(sb.toString()), this.creationStack); } } diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java index e10f1fa5b671..d7445e5b926b 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java @@ -241,7 +241,7 @@ */ @SuppressWarnings("deprecation") public class GemFireCacheImpl implements InternalCache, InternalClientCache, HasCachePerfStats, -DistributionAdvisee, CacheTime { + DistributionAdvisee, CacheTime { private static final Logger logger = LogService.getLogger(); /** The default number of seconds to wait for a distributed lock */ @@ -750,7 +750,7 @@ public static Cache create(InternalDistributedSystem system, boolean existingOk, private static GemFireCacheImpl basicCreate(InternalDistributedSystem system, boolean existingOk, CacheConfig cacheConfig, PoolFactory pf, boolean isClient, boolean asyncEventListeners, TypeRegistry typeRegistry) throws CacheExistsException, TimeoutException, - CacheWriterException, GatewayException, RegionExistsException { + CacheWriterException, GatewayException, RegionExistsException { try { synchronized (GemFireCacheImpl.class) { GemFireCacheImpl instance = checkExistingCache(existingOk, cacheConfig); @@ -782,7 +782,7 @@ private static GemFireCacheImpl checkExistingCache(boolean existingOk, CacheConf // instance.creationStack argument is for debugging... throw new CacheExistsException(instance, LocalizedStrings.CacheFactory_0_AN_OPEN_CACHE_ALREADY_EXISTS - .toLocalizedString(instance), + .toLocalizedString(instance), instance.creationStack); } } @@ -831,7 +831,7 @@ private GemFireCacheImpl(boolean isClient, PoolFactory pf, InternalDistributedSy this.system.addResourceListener(this.resourceEventsListener); if (this.system.isLoner()) { this.system.getInternalLogWriter() - .info(LocalizedStrings.GemFireCacheImpl_RUNNING_IN_LOCAL_MODE); + .info(LocalizedStrings.GemFireCacheImpl_RUNNING_IN_LOCAL_MODE); } } else { logger.info("Running in client mode"); @@ -842,7 +842,7 @@ private GemFireCacheImpl(boolean isClient, PoolFactory pf, InternalDistributedSy if (this.dm.getDMType() == DistributionManager.ADMIN_ONLY_DM_TYPE) { throw new IllegalStateException( LocalizedStrings.GemFireCache_CANNOT_CREATE_A_CACHE_IN_AN_ADMINONLY_VM - .toLocalizedString()); + .toLocalizedString()); } this.rootRegions = new HashMap<>(); @@ -1016,28 +1016,28 @@ private ConfigurationResponse requestSharedConfiguration() { Properties clusterSecProperties = clusterConfig == null ? new Properties() : clusterConfig.getGemfireProperties(); - // If not using shared configuration, return null or throw an exception is locator is secured - if (!config.getUseSharedConfiguration()) { - if (clusterSecProperties.containsKey(ConfigurationProperties.SECURITY_MANAGER)) { - throw new GemFireConfigException( - LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION_2.toLocalizedString()); - } else { - logger.info(LocalizedMessage - .create(LocalizedStrings.GemFireCache_NOT_USING_SHARED_CONFIGURATION)); - return null; - } - } + // If not using shared configuration, return null or throw an exception is locator is secured + if (!config.getUseSharedConfiguration()) { + if (clusterSecProperties.containsKey(ConfigurationProperties.SECURITY_MANAGER)) { + throw new GemFireConfigException( + LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION_2.toLocalizedString()); + } else { + logger.info(LocalizedMessage + .create(LocalizedStrings.GemFireCache_NOT_USING_SHARED_CONFIGURATION)); + return null; + } + } - Properties serverSecProperties = config.getSecurityProps(); - // check for possible mis-configuration - if (isMisConfigured(clusterSecProperties, serverSecProperties, - ConfigurationProperties.SECURITY_MANAGER) - || isMisConfigured(clusterSecProperties, serverSecProperties, - ConfigurationProperties.SECURITY_POST_PROCESSOR)) { - throw new GemFireConfigException( - LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION.toLocalizedString()); - } - return response; + Properties serverSecProperties = config.getSecurityProps(); + // check for possible mis-configuration + if (isMisConfigured(clusterSecProperties, serverSecProperties, + ConfigurationProperties.SECURITY_MANAGER) + || isMisConfigured(clusterSecProperties, serverSecProperties, + ConfigurationProperties.SECURITY_POST_PROCESSOR)) { + throw new GemFireConfigException( + LocalizedStrings.GEMFIRE_CACHE_SECURITY_MISCONFIGURATION.toLocalizedString()); + } + return response; } catch (ClusterConfigurationNotAvailableException e) { throw new GemFireConfigException( @@ -1160,7 +1160,7 @@ private void initialize() { } catch (IOException | ClassNotFoundException e) { throw new GemFireConfigException( LocalizedStrings.GemFireCache_EXCEPTION_OCCURRED_WHILE_DEPLOYING_JARS_FROM_SHARED_CONDFIGURATION - .toLocalizedString(), + .toLocalizedString(), e); } @@ -1321,7 +1321,7 @@ public URL getCacheXmlURL() { } catch (MalformedURLException ex) { throw new CacheXmlException( LocalizedStrings.GemFireCache_COULD_NOT_CONVERT_XML_FILE_0_TO_AN_URL - .toLocalizedString(xmlFile), + .toLocalizedString(xmlFile), ex); } } @@ -1331,11 +1331,11 @@ public URL getCacheXmlURL() { if (!xmlFile.exists()) { throw new CacheXmlException( LocalizedStrings.GemFireCache_DECLARATIVE_CACHE_XML_FILERESOURCE_0_DOES_NOT_EXIST - .toLocalizedString(xmlFile)); + .toLocalizedString(xmlFile)); } else { throw new CacheXmlException( LocalizedStrings.GemFireCache_DECLARATIVE_XML_FILE_0_IS_NOT_A_FILE - .toLocalizedString(xmlFile)); + .toLocalizedString(xmlFile)); } } } @@ -1393,7 +1393,7 @@ private void initializeDeclarativeCache() } catch (IOException ex) { throw new CacheXmlException( LocalizedStrings.GemFireCache_WHILE_OPENING_CACHE_XML_0_THE_FOLLOWING_ERROR_OCCURRED_1 - .toLocalizedString(url.toString(), ex)); + .toLocalizedString(url.toString(), ex)); } catch (CacheXmlException ex) { CacheXmlException newEx = @@ -1740,7 +1740,7 @@ public void shutDownAll() { es.awaitTermination(Integer.MAX_VALUE, TimeUnit.SECONDS); } catch (InterruptedException ignore) { logger - .debug("Shutdown all interrupted while waiting for PRs to be shutdown gracefully."); + .debug("Shutdown all interrupted while waiting for PRs to be shutdown gracefully."); } } else { @@ -1815,7 +1815,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); + .waitForProfileStatus(PartitionedRegion.PRIMARY_BUCKETS_LOCKED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all bucketLock profiles received.", partitionedRegion.getName()); @@ -1830,7 +1830,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.DISK_STORE_FLUSHED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.DISK_STORE_FLUSHED); + .waitForProfileStatus(PartitionedRegion.DISK_STORE_FLUSHED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all flush profiles received.", partitionedRegion.getName()); @@ -1864,7 +1864,7 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { partitionedRegion.setShutDownAllStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); new UpdateAttributesProcessor(partitionedRegion).distribute(false); partitionedRegion.getRegionAdvisor() - .waitForProfileStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); + .waitForProfileStatus(PartitionedRegion.OFFLINE_EQUAL_PERSISTED); if (logger.isDebugEnabled()) { logger.debug("shutDownAll: PR {}: all offline_equal profiles received.", partitionedRegion.getName()); @@ -1882,13 +1882,13 @@ private void shutDownOnePRGracefully(PartitionedRegion partitionedRegion) { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } // synchronized @@ -2986,7 +2986,7 @@ public Region basicCreateRegion(String name, RegionAttributes @Override public Region createVMRegion(String name, RegionAttributes p_attrs, InternalRegionArguments internalRegionArgs) - throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { + throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { if (getMyId().getVmKind() == DistributionManager.LOCATOR_DM_TYPE) { if (!internalRegionArgs.isUsedForMetaRegion() @@ -3456,7 +3456,7 @@ public void setMessageSyncInterval(int seconds) { if (seconds < 0) { throw new IllegalArgumentException( LocalizedStrings.GemFireCache_THE_MESSAGESYNCINTERVAL_PROPERTY_FOR_CACHE_CANNOT_BE_NEGATIVE - .toLocalizedString()); + .toLocalizedString()); } HARegionQueue.setMessageSyncInterval(seconds); } @@ -3503,7 +3503,7 @@ public void regionReinitializing(String fullPath) { if (old != null) { throw new IllegalStateException( LocalizedStrings.GemFireCache_FOUND_AN_EXISTING_REINITALIZING_REGION_NAMED_0 - .toLocalizedString(fullPath)); + .toLocalizedString(fullPath)); } } @@ -3519,7 +3519,7 @@ public void regionReinitialized(Region region) { if (future == null) { throw new IllegalStateException( LocalizedStrings.GemFireCache_COULD_NOT_FIND_A_REINITIALIZING_REGION_NAMED_0 - .toLocalizedString(regionName)); + .toLocalizedString(regionName)); } future.set(region); unregisterReinitializingRegion(regionName); @@ -3794,7 +3794,7 @@ public void addGatewaySender(GatewaySender sender) { } else { throw new IllegalStateException( LocalizedStrings.GemFireCache_A_GATEWAYSENDER_WITH_ID_0_IS_ALREADY_DEFINED_IN_THIS_CACHE - .toLocalizedString(sender.getId())); + .toLocalizedString(sender.getId())); } } @@ -4448,32 +4448,32 @@ public QueryMonitor getQueryMonitor() { // ResourceManager and not overridden by system property. boolean needQueryMonitor = MAX_QUERY_EXECUTION_TIME > 0 || this.testMaxQueryExecutionTime > 0 || monitorRequired; - if (needQueryMonitor && this.queryMonitor == null) { - synchronized (this.queryMonitorLock) { - if (this.queryMonitor == null) { - int maxTime = MAX_QUERY_EXECUTION_TIME > this.testMaxQueryExecutionTime - ? MAX_QUERY_EXECUTION_TIME : this.testMaxQueryExecutionTime; - - if (monitorRequired && maxTime < 0) { - // this means that the resource manager is being used and we need to monitor query - // memory usage - // If no max execution time has been set, then we will default to five hours - maxTime = FIVE_HOURS; - } + if (needQueryMonitor && this.queryMonitor == null) { + synchronized (this.queryMonitorLock) { + if (this.queryMonitor == null) { + int maxTime = MAX_QUERY_EXECUTION_TIME > this.testMaxQueryExecutionTime + ? MAX_QUERY_EXECUTION_TIME : this.testMaxQueryExecutionTime; + + if (monitorRequired && maxTime < 0) { + // this means that the resource manager is being used and we need to monitor query + // memory usage + // If no max execution time has been set, then we will default to five hours + maxTime = FIVE_HOURS; + } - this.queryMonitor = new QueryMonitor(maxTime); - final LoggingThreadGroup group = - LoggingThreadGroup.createThreadGroup("QueryMonitor Thread Group", logger); - Thread qmThread = new Thread(group, this.queryMonitor, "QueryMonitor Thread"); - qmThread.setDaemon(true); - qmThread.start(); - if (logger.isDebugEnabled()) { - logger.debug("QueryMonitor thread started."); - } - } + this.queryMonitor = new QueryMonitor(maxTime); + final LoggingThreadGroup group = + LoggingThreadGroup.createThreadGroup("QueryMonitor Thread Group", logger); + Thread qmThread = new Thread(group, this.queryMonitor, "QueryMonitor Thread"); + qmThread.setDaemon(true); + qmThread.start(); + if (logger.isDebugEnabled()) { + logger.debug("QueryMonitor thread started."); } } - return this.queryMonitor; + } + } + return this.queryMonitor; } /** @@ -5105,18 +5105,18 @@ public void addDeclarableProperties(final Map mapOfNewDe BiPredicate isKeyIdentifiableAndSameIdPredicate = (Declarable oldKey, Declarable newKey) -> Identifiable.class.isInstance(newKey) - && ((Identifiable) oldKey).getId().equals(((Identifiable) newKey).getId()); - - Supplier isKeyClassSame = - () -> clazz.getName().equals(oldEntry.getKey().getClass().getName()); - Supplier isValueEqual = () -> newEntry.getValue().equals(oldEntry.getValue()); - Supplier isKeyIdentifiableAndSameId = - () -> isKeyIdentifiableAndSameIdPredicate.test(oldEntry.getKey(), newEntry.getKey()); - - if (isKeyClassSame.get() && (isValueEqual.get() || isKeyIdentifiableAndSameId.get())) { - matchingDeclarable = oldEntry.getKey(); - break; - } + && ((Identifiable) oldKey).getId().equals(((Identifiable) newKey).getId()); + + Supplier isKeyClassSame = + () -> clazz.getName().equals(oldEntry.getKey().getClass().getName()); + Supplier isValueEqual = () -> newEntry.getValue().equals(oldEntry.getValue()); + Supplier isKeyIdentifiableAndSameId = + () -> isKeyIdentifiableAndSameIdPredicate.test(oldEntry.getKey(), newEntry.getKey()); + + if (isKeyClassSame.get() && (isValueEqual.get() || isKeyIdentifiableAndSameId.get())) { + matchingDeclarable = oldEntry.getKey(); + break; + } } if (matchingDeclarable != null) { this.declarablePropertiesMap.remove(matchingDeclarable); diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java index 69b3c801ffe3..47859e805969 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java @@ -227,7 +227,7 @@ */ @SuppressWarnings("deprecation") public class LocalRegion extends AbstractRegion implements LoaderHelperFactory, -ResourceListener, DiskExceptionHandler, DiskRecoveryStore { + ResourceListener, DiskExceptionHandler, DiskRecoveryStore { // package-private to avoid synthetic accessor static final Logger logger = LogService.getLogger(); @@ -579,7 +579,7 @@ protected LocalRegion(String regionName, RegionAttributes attrs, LocalRegion par if (cache.getOffHeapStore() == null) { throw new IllegalStateException( LocalizedStrings.LocalRegion_THE_REGION_0_WAS_CONFIGURED_TO_USE_OFF_HEAP_MEMORY_BUT_OFF_HEAP_NOT_CONFIGURED - .toLocalizedString(myName)); + .toLocalizedString(myName)); } } @@ -635,25 +635,25 @@ protected LocalRegion(String regionName, RegionAttributes attrs, LocalRegion par internalRegionArgs.getCacheServiceProfiles() == null ? Collections.emptyMap() : Collections.unmodifiableMap(internalRegionArgs.getCacheServiceProfiles()); - if (!isUsedForMetaRegion && !isUsedForPartitionedRegionAdmin - && !isUsedForPartitionedRegionBucket && !isUsedForSerialGatewaySenderQueue - && !isUsedForParallelGatewaySenderQueue) { - this.filterProfile = new FilterProfile(this); - } + if (!isUsedForMetaRegion && !isUsedForPartitionedRegionAdmin + && !isUsedForPartitionedRegionBucket && !isUsedForSerialGatewaySenderQueue + && !isUsedForParallelGatewaySenderQueue) { + this.filterProfile = new FilterProfile(this); + } - // initialize client to server proxy - this.serverRegionProxy = this.getPoolName() != null ? new ServerRegionProxy(this) : null; - this.imageState = new UnsharedImageState(this.serverRegionProxy != null, - getDataPolicy().withReplication() || getDataPolicy().isPreloaded(), - getAttributes().getDataPolicy().withPersistence(), this.stopper); + // initialize client to server proxy + this.serverRegionProxy = this.getPoolName() != null ? new ServerRegionProxy(this) : null; + this.imageState = new UnsharedImageState(this.serverRegionProxy != null, + getDataPolicy().withReplication() || getDataPolicy().isPreloaded(), + getAttributes().getDataPolicy().withPersistence(), this.stopper); - createEventTracker(); + createEventTracker(); - // prevent internal regions from participating in a TX, bug 38709 - this.supportsTX = !isSecret() && !isUsedForPartitionedRegionAdmin() && !isUsedForMetaRegion() - || isMetaRegionWithTransactions(); + // prevent internal regions from participating in a TX, bug 38709 + this.supportsTX = !isSecret() && !isUsedForPartitionedRegionAdmin() && !isUsedForMetaRegion() + || isMetaRegionWithTransactions(); - this.testCallable = internalRegionArgs.getTestCallable(); + this.testCallable = internalRegionArgs.getTestCallable(); } private RegionMap createRegionMap(InternalRegionArguments internalRegionArgs) { @@ -860,7 +860,7 @@ public VersionSource getVersionMember() { // TODO: createSubregion method is too complex for IDE to analyze public Region createSubregion(String subregionName, RegionAttributes attrs, InternalRegionArguments internalRegionArgs) - throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { + throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { checkReadiness(); RegionAttributes regionAttributes = attrs; @@ -915,8 +915,8 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, newRegion = local ? new LocalRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs) - : new DistributedRegion(subregionName, regionAttributes, this, this.cache, - internalRegionArgs); + : new DistributedRegion(subregionName, regionAttributes, this, this.cache, + internalRegionArgs); } Object previousValue = this.subregions.putIfAbsent(subregionName, newRegion); @@ -956,7 +956,7 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, this.cache.setRegionByPath(newRegion.getFullPath(), newRegion); if (regionAttributes instanceof UserSpecifiedRegionAttributes) { internalRegionArgs - .setIndexes(((UserSpecifiedRegionAttributes) regionAttributes).getIndexes()); + .setIndexes(((UserSpecifiedRegionAttributes) regionAttributes).getIndexes()); } // releases initialization Latches @@ -975,8 +975,8 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, } else { newRegion.initialCriticalMembers( this.cache.getInternalResourceManager().getHeapMonitor().getState().isCritical() - || this.cache.getInternalResourceManager().getOffHeapMonitor().getState() - .isCritical(), + || this.cache.getInternalResourceManager().getOffHeapMonitor().getState() + .isCritical(), this.cache.getResourceAdvisor().adviseCritialMembers()); } @@ -994,10 +994,10 @@ public Region createSubregion(String subregionName, RegionAttributes attrs, throw e; } catch (RuntimeException validationException) { logger - .warn( - LocalizedMessage.create( - LocalizedStrings.LocalRegion_INITIALIZATION_FAILED_FOR_REGION_0, getFullPath()), - validationException); + .warn( + LocalizedMessage.create( + LocalizedStrings.LocalRegion_INITIALIZATION_FAILED_FOR_REGION_0, getFullPath()), + validationException); throw validationException; } finally { if (!success) { @@ -1053,8 +1053,8 @@ private void validatedCreate(EntryEventImpl event, long startPut) false, // ifOld null, // expectedOldValue true // requireOldValue TODO txMerge why is oldValue required for - // create? I think so that the EntryExistsException will have it. - )) { + // create? I think so that the EntryExistsException will have it. + )) { throw new EntryExistsException(event.getKey().toString(), event.getOldValue()); } else { if (!getDataView().isDeferredStats()) { @@ -1213,7 +1213,7 @@ public Object getDeserializedValue(RegionEntry regionEntry, final KeyInfo keyInf "getDeserializedValue for {} returning version: {} returnTombstones: {} value: {}", keyInfo.getKey(), regionEntry.getVersionStamp() == null ? "null" : regionEntry.getVersionStamp().asVersionTag(), - returnTombstones, value); + returnTombstones, value); } return value; } finally { @@ -1306,7 +1306,7 @@ public Object get(Object key, Object aCallbackArgument, boolean generateCallback public Object get(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, boolean preferCD, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return get(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, preferCD, requestingClient, clientEvent, returnTombstones, false, false); } @@ -1318,7 +1318,7 @@ public Object get(Object key, Object aCallbackArgument, boolean generateCallback public Object getRetained(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return getRetained(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, requestingClient, clientEvent, returnTombstones, false); } @@ -1333,7 +1333,7 @@ public Object getRetained(Object key, Object aCallbackArgument, boolean generate private Object getRetained(Object key, Object aCallbackArgument, boolean generateCallbacks, boolean disableCopyOnRead, ClientProxyMembershipID requestingClient, EntryEventImpl clientEvent, boolean returnTombstones, boolean opScopeIsLocal) - throws TimeoutException, CacheLoaderException { + throws TimeoutException, CacheLoaderException { return get(key, aCallbackArgument, generateCallbacks, disableCopyOnRead, true, requestingClient, clientEvent, returnTombstones, opScopeIsLocal, false /* see GEODE-1291 */); } @@ -1594,7 +1594,7 @@ Object validatedPut(EntryEventImpl event, long startPut) false, // ifOld null, // expectedOldValue false // requireOldValue - )) { + )) { if (!event.isOldValueOffHeap()) { // don't copy it to heap just to return from put. // TODO: come up with a better way to do this. @@ -1672,7 +1672,7 @@ private void extractDeltaIntoEvent(Object value, EntryEventImpl event) { } else if (this instanceof DistributedRegion && !((DistributedRegion) this).scope.isDistributedNoAck() && !((CacheDistributionAdvisee) this).getCacheDistributionAdvisor().adviseCacheOp() - .isEmpty()) { + .isEmpty()) { extractDelta = true; } if (!extractDelta && ClientHealthMonitor.getInstance() != null) { @@ -1692,7 +1692,7 @@ private void extractDeltaIntoEvent(Object value, EntryEventImpl event) { } catch (Exception e) { throw new DeltaSerializationException( LocalizedStrings.DistributionManager_CAUGHT_EXCEPTION_WHILE_SENDING_DELTA - .toLocalizedString(), + .toLocalizedString(), e); } event.setDeltaBytes(hdos.toByteArray()); @@ -2082,11 +2082,11 @@ public void writeToDisk() { if (dp.isEmpty()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_WRITE_A_REGION_WITH_DATAPOLICY_0_TO_DISK - .toLocalizedString(dp)); + .toLocalizedString(dp)); } else if (!dp.withPersistence() && !isOverflowEnabled()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_WRITE_A_REGION_THAT_IS_NOT_CONFIGURED_TO_ACCESS_DISKS - .toLocalizedString()); + .toLocalizedString()); } } else { this.diskRegion.asynchForceFlush(); @@ -2172,13 +2172,13 @@ public void localDestroy(Object key, Object aCallbackArgument) throws EntryNotFo // cache writer not called throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // no distributed lock throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } finally { event.release(); @@ -2196,13 +2196,13 @@ public void localDestroyRegion(Object aCallbackArgument) { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -2221,13 +2221,13 @@ public void close() { // not possible with local operation, CacheWriter not called throw new Error( LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -2288,7 +2288,7 @@ static LocalRegion getRegionFromPath(DistributedSystem system, String path) { */ protected void initialize(InputStream snapshotInputStream, InternalDistributedMember imageTarget, InternalRegionArguments internalRegionArgs) - throws TimeoutException, IOException, ClassNotFoundException { + throws TimeoutException, IOException, ClassNotFoundException { if (!isInternalRegion()) { // Subclasses may have already called this method, but this is // acceptable because addResourceListener won't add it twice @@ -2428,11 +2428,11 @@ void createOQLIndexes(InternalRegionArguments internalRegionArgs, boolean recove DefaultQueryService qs = (DefaultQueryService) getGemFireCache().getLocalQueryService(); String fromClause = icd.getIndexType() == IndexType.FUNCTIONAL || icd.getIndexType() == IndexType.HASH - ? icd.getIndexFromClause() : this.getFullPath(); - // load entries during initialization only for non overflow regions - indexes.add( - qs.createIndex(icd.getIndexName(), icd.getIndexType(), icd.getIndexExpression(), - fromClause, icd.getIndexImportString(), !isOverflowToDisk)); + ? icd.getIndexFromClause() : this.getFullPath(); + // load entries during initialization only for non overflow regions + indexes.add( + qs.createIndex(icd.getIndexName(), icd.getIndexType(), icd.getIndexExpression(), + fromClause, icd.getIndexImportString(), !isOverflowToDisk)); } } catch (Exception ex) { @@ -3096,7 +3096,7 @@ private void cacheWriteBeforeRegionClear(RegionEventImpl event) void cacheWriteBeforePut(EntryEventImpl event, Set netWriteRecipients, CacheWriter localWriter, boolean requireOldValue, Object expectedOldValue) - throws CacheWriterException, TimeoutException { + throws CacheWriterException, TimeoutException { Assert.assertTrue(netWriteRecipients == null); Operation operation = event.getOperation(); boolean isPutIfAbsentOrReplace = @@ -3133,7 +3133,7 @@ void validateKey(Object key) { if (!this.keyConstraint.isInstance(key)) throw new ClassCastException( LocalizedStrings.LocalRegion_KEY_0_DOES_NOT_SATISFY_KEYCONSTRAINT_1 - .toLocalizedString(key.getClass().getName(), this.keyConstraint.getName())); + .toLocalizedString(key.getClass().getName(), this.keyConstraint.getName())); } // We don't need to check that the key is Serializable. Instead, @@ -3190,7 +3190,7 @@ private void validateValue(Object value) { } throw new ClassCastException( LocalizedStrings.LocalRegion_VALUE_0_DOES_NOT_SATISFY_VALUECONSTRAINT_1 - .toLocalizedString(valueClassName, this.valueConstraint.getName())); + .toLocalizedString(valueClassName, this.valueConstraint.getName())); } } } @@ -3238,8 +3238,8 @@ private void scheduleTombstone(RegionEntry entry, VersionTag destroyedVersion, logger.trace(LogMarker.TOMBSTONE_COUNT, "{} tombstone for {} version={} count is {} entryMap size is {}", reschedule ? "rescheduling" : "scheduling", entry.getKey(), - entry.getVersionStamp().asVersionTag(), this.tombstoneCount.get(), - this.entries.size()/* , new Exception("stack trace") */); + entry.getVersionStamp().asVersionTag(), this.tombstoneCount.get(), + this.entries.size()/* , new Exception("stack trace") */); // this can be useful for debugging tombstone count problems if there aren't a lot of // concurrent threads // if (TombstoneService.DEBUG_TOMBSTONE_COUNT && this.entries instanceof AbstractRegionMap) { @@ -3379,7 +3379,7 @@ private void validateSubregionAttributes(RegionAttributes attrs) { if (this.scope == Scope.LOCAL && attrs.getScope() != Scope.LOCAL) { throw new IllegalStateException( LocalizedStrings.LocalRegion_A_REGION_WITH_SCOPELOCAL_CAN_ONLY_HAVE_SUBREGIONS_WITH_SCOPELOCAL - .toLocalizedString()); + .toLocalizedString()); } } @@ -3568,7 +3568,7 @@ public void saveSnapshot(OutputStream outputStream) throws IOException { if (isProxy()) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGIONS_WITH_DATAPOLICY_0_DO_NOT_SUPPORT_SAVESNAPSHOT - .toLocalizedString(getDataPolicy())); + .toLocalizedString(getDataPolicy())); } checkForNoAccess(); DataOutputStream out = new DataOutputStream(outputStream); @@ -3618,7 +3618,7 @@ public void loadSnapshot(InputStream inputStream) if (isProxy()) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGIONS_WITH_DATAPOLICY_0_DO_NOT_SUPPORT_LOADSNAPSHOT - .toLocalizedString(getDataPolicy())); + .toLocalizedString(getDataPolicy())); } if (inputStream == null) { throw new NullPointerException( @@ -3702,7 +3702,7 @@ private void processSingleInterest(Object key, int interestType, if (isDurable && !proxy.getPool().isDurableClient()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_DURABLE_FLAG_ONLY_APPLICABLE_FOR_DURABLE_CLIENTS - .toLocalizedString()); + .toLocalizedString()); } if (!proxy.getPool().getSubscriptionEnabled()) { String msg = "Interest registration requires a pool whose queue is enabled."; @@ -3713,7 +3713,7 @@ private void processSingleInterest(Object key, int interestType, && !getAttributes().getScope().isLocal()) { // fix for bug 37692 throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_INTEREST_REGISTRATION_NOT_SUPPORTED_ON_REPLICATED_REGIONS - .toLocalizedString()); + .toLocalizedString()); } if (key == null) { @@ -3974,7 +3974,7 @@ public Set getKeysWithInterest(int interestType, Object interestArg, boolean all if (!(interestArg instanceof String)) { throw new IllegalArgumentException( LocalizedStrings.AbstractRegion_REGULAR_EXPRESSION_ARGUMENT_WAS_NOT_A_STRING - .toLocalizedString()); + .toLocalizedString()); } Pattern keyPattern = Pattern.compile((String) interestArg); @@ -4012,12 +4012,12 @@ public Set getKeysWithInterest(int interestType, Object interestArg, boolean all } else if (interestType == InterestType.FILTER_CLASS) { throw new UnsupportedOperationException( LocalizedStrings.AbstractRegion_INTERESTTYPEFILTER_CLASS_NOT_YET_SUPPORTED - .toLocalizedString()); + .toLocalizedString()); } else if (interestType == InterestType.OQL_QUERY) { throw new UnsupportedOperationException( LocalizedStrings.AbstractRegion_INTERESTTYPEOQL_QUERY_NOT_YET_SUPPORTED - .toLocalizedString()); + .toLocalizedString()); } else { throw new IllegalArgumentException(LocalizedStrings.AbstractRegion_UNSUPPORTED_INTEREST_TYPE_0 @@ -4101,13 +4101,13 @@ protected void localDestroyNoCallbacks(Object key) { // cache writer not called throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (TimeoutException e) { // no distributed lock throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_LOCALDESTROY - .toLocalizedString(), + .toLocalizedString(), e); } catch (EntryNotFoundException ignore) { // not a problem @@ -4499,7 +4499,7 @@ private void recreate(InputStream inputStream, InternalDistributedMember imageTa // shouldn't happen since we're holding the destroy lock throw new InternalGemFireError( LocalizedStrings.LocalRegion_GOT_REGIONEXISTSEXCEPTION_IN_REINITIALIZE_WHEN_HOLDING_DESTROY_LOCK - .toLocalizedString(), + .toLocalizedString(), e); } finally { if (newRegion == null) { @@ -4518,7 +4518,7 @@ void loadSnapshotDuringInitialization(InputStream inputStream) if (snapshotVersion != SNAPSHOT_VERSION) { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_UNSUPPORTED_SNAPSHOT_VERSION_0_ONLY_VERSION_1_IS_SUPPORTED - .toLocalizedString(new Object[] {snapshotVersion, SNAPSHOT_VERSION})); + .toLocalizedString(new Object[] {snapshotVersion, SNAPSHOT_VERSION})); } for (;;) { Object key = DataSerializer.readObject(in); @@ -4538,7 +4538,7 @@ void loadSnapshotDuringInitialization(InputStream inputStream) } else { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_UNEXPECTED_SNAPSHOT_CODE_0_THIS_SNAPSHOT_WAS_PROBABLY_WRITTEN_BY_AN_EARLIER_INCOMPATIBLE_RELEASE - .toLocalizedString(aByte)); + .toLocalizedString(aByte)); } // If versioning is enabled, we will give the entry a "fake" version. @@ -4925,7 +4925,7 @@ && getDataPolicy().withReplication() && invokeCallbacks) { // catches case where being called by (distributed) invalidateRegion throw new IllegalStateException( LocalizedStrings.LocalRegion_CANNOT_DO_A_LOCAL_INVALIDATE_ON_A_REPLICATED_REGION - .toLocalizedString()); + .toLocalizedString()); } if (hasSeenEvent(event)) { @@ -5044,7 +5044,7 @@ void txApplyInvalidatePart2(RegionEntry regionEntry, Object key, boolean didDest */ protected boolean basicPut(EntryEventImpl event, boolean ifNew, boolean ifOld, Object expectedOldValue, boolean requireOldValue) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { return getDataView().putEntry(event, ifNew, ifOld, expectedOldValue, requireOldValue, 0L, false); } @@ -5096,7 +5096,7 @@ void txApplyPutPart2(RegionEntry regionEntry, Object key, long lastModified, boo try { this.indexManager.updateIndexes(regionEntry, isCreate ? IndexManager.ADD_ENTRY : IndexManager.UPDATE_ENTRY, - isCreate ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); + isCreate ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); } catch (QueryException e) { throw new IndexMaintenanceException(e); } @@ -5116,7 +5116,7 @@ void txApplyPutPart2(RegionEntry regionEntry, Object key, long lastModified, boo public boolean basicBridgeCreate(final Object key, final byte[] value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent, boolean throwEntryExists) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); Object theCallbackArg = callbackArg; @@ -5276,7 +5276,7 @@ private void concurrencyConfigurationCheck(VersionTag tag) { public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Object value, byte[] deltaBytes, boolean isObject, Object callbackArgument, boolean isCreate, boolean processedMarker, EntryEventImpl event, EventID eventID) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { if (isCacheContentProxy()) { return; @@ -5323,7 +5323,7 @@ public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Obje if (isInitialized()) { invokePutCallbacks( isCreate ? EnumListenerEvent.AFTER_CREATE : EnumListenerEvent.AFTER_UPDATE, event, true, - true); + true); } } } @@ -5334,7 +5334,7 @@ public void basicBridgeClientUpdate(DistributedMember serverId, Object key, Obje */ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, Object callbackArgument, boolean processedMarker, EventID eventID, VersionTag versionTag) - throws EntryNotFoundException { + throws EntryNotFoundException { if (!isCacheContentProxy()) { concurrencyConfigurationCheck(versionTag); @@ -5342,8 +5342,8 @@ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, // Create an event and put the entry @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.INVALIDATE, key, null /* newValue */, - callbackArgument /* callbackArg */, true /* originRemote */, serverId); + EntryEventImpl.create(this, Operation.INVALIDATE, key, null /* newValue */, + callbackArgument /* callbackArg */, true /* originRemote */, serverId); try { event.setVersionTag(versionTag); @@ -5383,7 +5383,7 @@ public void basicBridgeClientInvalidate(DistributedMember serverId, Object key, */ public void basicBridgeClientDestroy(DistributedMember serverId, Object key, Object callbackArgument, boolean processedMarker, EventID eventID, VersionTag versionTag) - throws EntryNotFoundException { + throws EntryNotFoundException { if (!isCacheContentProxy()) { concurrencyConfigurationCheck(versionTag); @@ -5391,8 +5391,8 @@ public void basicBridgeClientDestroy(DistributedMember serverId, Object key, // Create an event and destroy the entry @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.DESTROY, key, null /* newValue */, - callbackArgument /* callbackArg */, true /* originRemote */, serverId); + EntryEventImpl.create(this, Operation.DESTROY, key, null /* newValue */, + callbackArgument /* callbackArg */, true /* originRemote */, serverId); try { event.setFromServer(true); event.setVersionTag(versionTag); @@ -5453,7 +5453,7 @@ public void basicBridgeClientClear(Object callbackArgument, boolean processedMar public void basicBridgeDestroy(Object key, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { Object theCallbackArg = callbackArg; if (fromClient) { @@ -5491,7 +5491,7 @@ public void basicBridgeDestroy(Object key, Object callbackArg, ClientProxyMember // TODO: fromClient is always true public void basicBridgeInvalidate(Object key, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { Object theCallbackArg = callbackArg; if (fromClient) { @@ -5584,7 +5584,7 @@ void basicUpdateEntryVersion(EntryEventImpl event) throws EntryNotFoundException */ boolean basicUpdate(final EntryEventImpl event, final boolean ifNew, final boolean ifOld, final long lastModified, final boolean overwriteDestroyed) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { // check validity of key against keyConstraint if (this.keyConstraint != null) { @@ -5675,7 +5675,7 @@ private void checkIfAboveThreshold(final Object key) throws LowMemoryException { // #45603: trigger a background eviction since we're above the the critical // threshold InternalResourceManager.getInternalResourceManager(this.cache).getHeapMonitor() - .updateStateAndSendEvent(); + .updateStateAndSendEvent(); throw new LowMemoryException( LocalizedStrings.ResourceManager_LOW_MEMORY_IN_0_FOR_PUT_1_MEMBER_2.toLocalizedString( @@ -5741,7 +5741,7 @@ protected long basicPutPart2(EntryEventImpl event, RegionEntry entry, boolean is if (!entry.isInvalid()) { this.indexManager.updateIndexes(entry, isNewKey ? IndexManager.ADD_ENTRY : IndexManager.UPDATE_ENTRY, - isNewKey ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); + isNewKey ? IndexProtocol.OTHER_OP : IndexProtocol.AFTER_UPDATE_OP); } } catch (QueryException e) { throw new IndexMaintenanceException(e); @@ -6404,7 +6404,7 @@ protected void postCreateRegion() { rm.setEvictionHeapPercentage(evictionPercentage); if (logWriter.fineEnabled()) { logWriter - .fine("Enabled heap eviction at " + evictionPercentage + " percent for LRU region"); + .fine("Enabled heap eviction at " + evictionPercentage + " percent for LRU region"); } } @@ -6526,7 +6526,7 @@ public boolean isTX() { */ boolean mapDestroy(final EntryEventImpl event, final boolean cacheWrite, final boolean isEviction, Object expectedOldValue) - throws CacheWriterException, EntryNotFoundException, TimeoutException { + throws CacheWriterException, EntryNotFoundException, TimeoutException { final boolean inGII = lockGII(); try { // make sure unlockGII is called for bug 40001 @@ -6679,17 +6679,17 @@ boolean evictDestroy(LRUEntry entry) { } catch (CacheWriterException error) { throw new Error( LocalizedStrings.LocalRegion_CACHE_WRITER_SHOULD_NOT_HAVE_BEEN_CALLED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), error); } catch (TimeoutException anotherError) { throw new Error( LocalizedStrings.LocalRegion_NO_DISTRIBUTED_LOCK_SHOULD_HAVE_BEEN_ATTEMPTED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), anotherError); } catch (EntryNotFoundException yetAnotherError) { throw new Error( LocalizedStrings.LocalRegion_ENTRYNOTFOUNDEXCEPTION_SHOULD_BE_MASKED_FOR_EVICTDESTROY - .toLocalizedString(), + .toLocalizedString(), yetAnotherError); } finally { event.release(); @@ -7298,7 +7298,7 @@ private void detachPool() { PoolImpl pool = (PoolImpl) PoolManager.find(this.getPoolName()); if (poolName != null && pool != null) { serverRegionProxy - .detach(internalCache.keepDurableSubscriptionsAlive() || pool.getKeepAlive()); + .detach(internalCache.keepDurableSubscriptionsAlive() || pool.getKeepAlive()); } else { serverRegionProxy.detach(internalCache.keepDurableSubscriptionsAlive()); } @@ -7364,7 +7364,7 @@ void handleCacheClose(Operation operation) { if (!ids.isDisconnecting()) { throw new InternalGemFireError( LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_HERE - .toLocalizedString(), + .toLocalizedString(), e); } } @@ -7388,7 +7388,7 @@ public static void validateRegionName(String name, InternalRegionArguments inter if (name.contains(SEPARATOR)) { throw new IllegalArgumentException( LocalizedStrings.LocalRegion_NAME_CANNOT_CONTAIN_THE_SEPARATOR_0 - .toLocalizedString(SEPARATOR)); + .toLocalizedString(SEPARATOR)); } // Validate the name of the region only if it isn't an internal region @@ -7452,7 +7452,7 @@ private void checkRegionDestroyed(boolean checkCancel) { if (this.isDestroyedForParallelWAN) { throw new RegionDestroyedException( LocalizedStrings.LocalRegion_REGION_IS_BEING_DESTROYED_WAITING_FOR_PARALLEL_QUEUE_TO_DRAIN - .toLocalizedString(), + .toLocalizedString(), getFullPath()); } } @@ -7484,7 +7484,7 @@ protected void checkIfReplicatedAndLocalDestroy(EntryEventImpl event) { && !isUsedForSerialGatewaySenderQueue()) { throw new IllegalStateException( LocalizedStrings.LocalRegion_NOT_ALLOWED_TO_DO_A_LOCAL_DESTROY_ON_A_REPLICATED_REGION - .toLocalizedString()); + .toLocalizedString()); } } @@ -7982,7 +7982,7 @@ public CacheStatistics getStatistics() { if (!lr.statisticsEnabled) { throw new StatisticsDisabledException( LocalizedStrings.LocalRegion_STATISTICS_DISABLED_FOR_REGION_0 - .toLocalizedString(lr.getFullPath())); + .toLocalizedString(lr.getFullPath())); } return new CacheStatisticsImpl(getCheckedRegionEntry(), lr); } @@ -8447,7 +8447,7 @@ private void jtaEnlistmentFailureCleanup(TXStateInterface txState, Exception rea throw new FailedSynchronizationException( LocalizedStrings.LocalRegion_FAILED_ENLISTEMENT_WITH_TRANSACTION_0 - .toLocalizedString(jtaTransName), + .toLocalizedString(jtaTransName), reason); } @@ -8590,7 +8590,7 @@ public Iterator iterator() { public void remove() { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_THIS_ITERATOR_DOES_NOT_SUPPORT_MODIFICATION - .toLocalizedString()); + .toLocalizedString()); } @Override @@ -8800,7 +8800,7 @@ public CacheStatistics getStatistics() { if (!LocalRegion.this.statisticsEnabled) { throw new StatisticsDisabledException( LocalizedStrings.LocalRegion_STATISTICS_DISABLED_FOR_REGION_0 - .toLocalizedString(getFullPath())); + .toLocalizedString(getFullPath())); } return new CacheStatisticsImpl(this.basicGetEntry(), LocalRegion.this); } @@ -8921,7 +8921,7 @@ public boolean containsValue(final Object value) { if (value == null) { throw new NullPointerException( LocalizedStrings.LocalRegion_VALUE_FOR_CONTAINSVALUEVALUE_CANNOT_BE_NULL - .toLocalizedString()); + .toLocalizedString()); } checkReadiness(); checkForNoAccess(); @@ -8976,7 +8976,7 @@ public Object remove(Object key) { // TODO: fromClient is always true public void basicBridgeDestroyRegion(Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EventID eventId) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -8994,7 +8994,7 @@ public void basicBridgeDestroyRegion(Object callbackArg, final ClientProxyMember public void basicBridgeClear(Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EventID eventId) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -9174,7 +9174,7 @@ void clearRegionLocally(RegionEventImpl regionEvent, boolean cacheWrite, // TODO: never throw an annonymous class (and outer-class is not serializable) throw new CacheRuntimeException( LocalizedStrings.LocalRegion_EXCEPTION_OCCURRED_WHILE_RE_CREATING_INDEX_DATA_ON_CLEARED_REGION - .toLocalizedString(), + .toLocalizedString(), qe) { private static final long serialVersionUID = 0L; }; @@ -9207,7 +9207,7 @@ void basicLocalClear(RegionEventImpl rEvent) { public void handleInterestEvent(InterestRegistrationEvent event) { throw new UnsupportedOperationException( LocalizedStrings.LocalRegion_REGION_INTEREST_REGISTRATION_IS_ONLY_SUPPORTED_FOR_PARTITIONEDREGIONS - .toLocalizedString()); + .toLocalizedString()); } // TODO: refactor basicGetAll @@ -9390,7 +9390,7 @@ private void verifyRemoveAllKeys(Collection keys) { */ public VersionedObjectList basicBridgePutAll(Map map, Map retryVersions, ClientProxyMembershipID memberId, EventID eventId, boolean skipCallbacks, Object callbackArg) - throws TimeoutException, CacheWriterException { + throws TimeoutException, CacheWriterException { long startPut = CachePerfStats.getStatTime(); if (isGatewaySenderEnabled()) { @@ -9580,7 +9580,7 @@ public VersionedObjectList basicPutAll(final Map map, if (runtimeException == null) { runtimeException = new ServerOperationException( LocalizedStrings.Region_PutAll_Applied_PartialKeys_At_Server_0 - .toLocalizedString(getFullPath()), + .toLocalizedString(getFullPath()), e.getFailure()); } } @@ -9703,8 +9703,8 @@ public void run() { // postPutAll() to fill in the version tags. partialKeys.setSucceededKeysAndVersions(succeeded); logger - .info(LocalizedMessage.create(LocalizedStrings.Region_PutAll_Applied_PartialKeys_0_1, - new Object[] {getFullPath(), partialKeys})); + .info(LocalizedMessage.create(LocalizedStrings.Region_PutAll_Applied_PartialKeys_0_1, + new Object[] {getFullPath(), partialKeys})); if (isDebugEnabled) { logger.debug(partialKeys.detailString()); } @@ -9797,7 +9797,7 @@ VersionedObjectList basicRemoveAll(final Collection keys, if (runtimeException == null) { runtimeException = new ServerOperationException( LocalizedStrings.Region_RemoveAll_Applied_PartialKeys_At_Server_0 - .toLocalizedString(getFullPath()), + .toLocalizedString(getFullPath()), e.getFailure()); } } @@ -10079,7 +10079,7 @@ private void basicEntryPutAll(Object key, Object value, DistributedPutAllOperati @Released EntryEventImpl event = - EntryEventImpl.createPutAllEvent(putallOp, this, Operation.PUTALL_CREATE, key, value); + EntryEventImpl.createPutAllEvent(putallOp, this, Operation.PUTALL_CREATE, key, value); try { if (tagHolder != null) { @@ -10183,11 +10183,11 @@ public void postPutAllFireEvents(DistributedPutAllOperation putAllOp, : EnumListenerEvent.AFTER_UPDATE; invokePutCallbacks(op, event, !event.callbacksInvoked() && !event.isPossibleDuplicate(), this.isUsedForPartitionedRegionBucket - /* - * If this is replicated region, use "false". We must notify gateways inside RegionEntry - * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is - * bucket region, use "true", because the event order is guaranteed - */); + /* + * If this is replicated region, use "false". We must notify gateways inside RegionEntry + * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is + * bucket region, use "true", because the event order is guaranteed + */); } } } @@ -10216,11 +10216,11 @@ public void postRemoveAllFireEvents(DistributedRemoveAllOperation removeAllOp, invokeDestroyCallbacks(EnumListenerEvent.AFTER_DESTROY, event, !event.callbacksInvoked() && !event.isPossibleDuplicate(), this.isUsedForPartitionedRegionBucket - /* - * If this is replicated region, use "false". We must notify gateways inside RegionEntry - * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is - * bucket region, use "true", because the event order is guaranteed - */); + /* + * If this is replicated region, use "false". We must notify gateways inside RegionEntry + * lock, NOT here, to preserve the order of events sent by gateways for same key. If this is + * bucket region, use "true", because the event order is guaranteed + */); } } } @@ -10488,40 +10488,40 @@ public LoaderHelper createLoaderHelper(Object key, Object callbackArgument, /** visitor over the CacheProfiles to check if the region has a CacheLoader */ private static final DistributionAdvisor.ProfileVisitor netLoaderVisitor = new DistributionAdvisor.ProfileVisitor() { - @Override - public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, - int numProfiles, Void aggregate) { - assert profile instanceof CacheProfile; - final CacheProfile prof = (CacheProfile) profile; - - // if region in cache is not yet initialized, exclude - if (prof.regionInitialized) { // fix for bug 41102 - // cut the visit short if we find a CacheLoader - return !prof.hasCacheLoader; - } - // continue the visit - return true; - } - }; + @Override + public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, + int numProfiles, Void aggregate) { + assert profile instanceof CacheProfile; + final CacheProfile prof = (CacheProfile) profile; + + // if region in cache is not yet initialized, exclude + if (prof.regionInitialized) { // fix for bug 41102 + // cut the visit short if we find a CacheLoader + return !prof.hasCacheLoader; + } + // continue the visit + return true; + } + }; /** visitor over the CacheProfiles to check if the region has a CacheWriter */ private static final DistributionAdvisor.ProfileVisitor netWriterVisitor = new DistributionAdvisor.ProfileVisitor() { - @Override - public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, - int numProfiles, Void aggregate) { - assert profile instanceof CacheProfile; - final CacheProfile prof = (CacheProfile) profile; - - // if region in cache is in recovery - if (!prof.inRecovery) { - // cut the visit short if we find a CacheWriter - return !prof.hasCacheWriter; - } - // continue the visit - return true; - } - }; + @Override + public boolean visit(DistributionAdvisor advisor, Profile profile, int profileIndex, + int numProfiles, Void aggregate) { + assert profile instanceof CacheProfile; + final CacheProfile prof = (CacheProfile) profile; + + // if region in cache is in recovery + if (!prof.inRecovery) { + // cut the visit short if we find a CacheWriter + return !prof.hasCacheWriter; + } + // continue the visit + return true; + } + }; /** * Return true if some other member of the distributed system, not including self, has a @@ -10604,7 +10604,7 @@ protected HashMap getDestroyedSubregionSerialNumbers() { if (!this.isDestroyed) { throw new IllegalStateException( LocalizedStrings.LocalRegion_REGION_0_MUST_BE_DESTROYED_BEFORE_CALLING_GETDESTROYEDSUBREGIONSERIALNUMBERS - .toLocalizedString(getFullPath())); + .toLocalizedString(getFullPath())); } return this.destroyedSubregionSerialNumbers; } @@ -10640,7 +10640,7 @@ private void addSubregionSerialNumbers(Map map) { @Override public SelectResults query(String predicate) throws FunctionDomainException, - TypeMismatchException, NameResolutionException, QueryInvocationTargetException { + TypeMismatchException, NameResolutionException, QueryInvocationTargetException { if (predicate == null) { throw new IllegalArgumentException( @@ -10716,7 +10716,7 @@ public ResultCollector executeFunction(final DistributedRegionFunctionExecutor e Set members = getMemoryThresholdReachedMembers(); throw new LowMemoryException( LocalizedStrings.ResourceManager_LOW_MEMORY_FOR_0_FUNCEXEC_MEMBERS_1 - .toLocalizedString(function.getId(), members), + .toLocalizedString(function.getId(), members), members); } final LocalResultCollector resultCollector = @@ -10752,12 +10752,12 @@ protected void setMemoryThresholdFlag(MemoryEvent event) { if (event.isLocal()) { if (event.getState().isCritical() && !event.getPreviousState().isCritical() && (event.getType() == ResourceType.HEAP_MEMORY - || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { + || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { // start rejecting operations this.memoryThresholdReached.set(true); } else if (!event.getState().isCritical() && event.getPreviousState().isCritical() && (event.getType() == ResourceType.HEAP_MEMORY - || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { + || (event.getType() == ResourceType.OFFHEAP_MEMORY && getOffHeap()))) { this.memoryThresholdReached.set(false); } } @@ -11522,7 +11522,7 @@ private void checkIfConcurrentMapOpsAllowed() { // This check allows NORMAL with local scope to fix bug 44856 if (this.serverRegionProxy == null && (this.dataPolicy == DataPolicy.NORMAL && this.scope.isDistributed() - || this.dataPolicy == DataPolicy.EMPTY)) { + || this.dataPolicy == DataPolicy.EMPTY)) { // the functional spec says these data policies do not support concurrent map // operations throw new UnsupportedOperationException(); @@ -11635,7 +11635,7 @@ public boolean remove(Object key, Object value, Object callbackArg) { @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.REMOVE, key, null, callbackArg, false, getMyId()); + EntryEventImpl.create(this, Operation.REMOVE, key, null, callbackArg, false, getMyId()); try { if (generateEventID() && event.getEventId() == null) { @@ -11743,7 +11743,7 @@ private Object replaceWithCallbackArgument(Object key, Object value, Object call @Released EntryEventImpl event = - EntryEventImpl.create(this, Operation.REPLACE, key, value, callbackArg, false, getMyId()); + EntryEventImpl.create(this, Operation.REPLACE, key, value, callbackArg, false, getMyId()); try { if (generateEventID()) { @@ -11773,7 +11773,7 @@ private Object replaceWithCallbackArgument(Object key, Object value, Object call public Object basicBridgePutIfAbsent(final Object key, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11854,7 +11854,7 @@ public Version[] getSerializationVersions() { public boolean basicBridgeReplace(final Object key, Object expectedOldValue, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11914,7 +11914,7 @@ public boolean basicBridgeReplace(final Object key, Object expectedOldValue, Obj public Object basicBridgeReplace(final Object key, Object value, boolean isObject, Object callbackArg, final ClientProxyMembershipID client, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryExistsException, CacheWriterException { + throws TimeoutException, EntryExistsException, CacheWriterException { EventID eventId = clientEvent.getEventId(); long startPut = CachePerfStats.getStatTime(); @@ -11983,7 +11983,7 @@ public Object basicBridgeReplace(final Object key, Object value, boolean isObjec // TODO: fromClient is always true public void basicBridgeRemove(Object key, Object expectedOldValue, Object callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) - throws TimeoutException, EntryNotFoundException, CacheWriterException { + throws TimeoutException, EntryNotFoundException, CacheWriterException { if (fromClient) { // If this region is also wan-enabled, then wrap that callback arg in a @@ -12091,8 +12091,8 @@ boolean expireRegion(RegionExpiryTask regionExpiryTask, boolean distributed, boo // release the sync before doing the operation to prevent deadlock caused by r48875 Operation op = destroy ? distributed ? Operation.REGION_EXPIRE_DESTROY : Operation.REGION_EXPIRE_LOCAL_DESTROY - : distributed ? Operation.REGION_EXPIRE_INVALIDATE - : Operation.REGION_EXPIRE_LOCAL_INVALIDATE; + : distributed ? Operation.REGION_EXPIRE_INVALIDATE + : Operation.REGION_EXPIRE_LOCAL_INVALIDATE; RegionEventImpl event = new RegionEventImpl(this, op, null, false, getMyId(), generateEventID()); if (destroy) { diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java index 5b18250f461d..8c22059fe544 100644 --- a/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/InternalDistributedSystemJUnitTest.java @@ -766,7 +766,7 @@ public void testSSLEnabledComponentsWrongComponentName() { new DistributionConfigImpl(props, false); illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException - .expectMessage("There is no registered component for the name: testing"); + .expectMessage("There is no registered component for the name: testing"); } @@ -779,7 +779,7 @@ public void testSSLEnabledComponentsWithLegacyJMXSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -792,7 +792,7 @@ public void testSSLEnabledComponentsWithLegacyGatewaySSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -805,7 +805,7 @@ public void testSSLEnabledComponentsWithLegacyServerSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } @Test(expected = IllegalArgumentException.class) @@ -818,7 +818,7 @@ public void testSSLEnabledComponentsWithLegacyHTTPServiceSSLSettings() { illegalArgumentException.expect(IllegalArgumentException.class); illegalArgumentException.expectMessage( LocalizedStrings.AbstractDistributionConfig_SSL_ENABLED_COMPONENTS_SET_INVALID_DEPRECATED_SSL_SET - .getRawText()); + .getRawText()); } private Properties getCommonProperties() {