Return-Path: X-Original-To: apmail-geode-commits-archive@minotaur.apache.org Delivered-To: apmail-geode-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09BED18CF3 for ; Fri, 12 Feb 2016 02:39:53 +0000 (UTC) Received: (qmail 51084 invoked by uid 500); 12 Feb 2016 02:39:53 -0000 Delivered-To: apmail-geode-commits-archive@geode.apache.org Received: (qmail 51051 invoked by uid 500); 12 Feb 2016 02:39:52 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 51042 invoked by uid 99); 12 Feb 2016 02:39:52 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 02:39:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 374DCC03E9 for ; Fri, 12 Feb 2016 02:39:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.539 X-Spam-Level: X-Spam-Status: No, score=-3.539 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329, T_FILL_THIS_FORM_SHORT=0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cqpZJtD2zVhd for ; Fri, 12 Feb 2016 02:39:39 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 5D5A52097B for ; Fri, 12 Feb 2016 02:39:39 +0000 (UTC) Received: (qmail 50709 invoked by uid 99); 12 Feb 2016 02:39:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 02:39:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 20124E0E1F; Fri, 12 Feb 2016 02:39:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jinmeiliao@apache.org To: commits@geode.incubator.apache.org Date: Fri, 12 Feb 2016 02:39:40 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/5] incubator-geode git commit: GEODE-913: refactor AbstractDistributionConfig http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/70059905/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/DistributionConfig.java ---------------------------------------------------------------------- diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/DistributionConfig.java b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/DistributionConfig.java index f8ff21a..3af8c15 100644 --- a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/DistributionConfig.java +++ b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/DistributionConfig.java @@ -17,10 +17,6 @@ package com.gemstone.gemfire.distributed.internal; -import java.io.File; -import java.net.InetAddress; -import java.util.Properties; - import com.gemstone.gemfire.distributed.DistributedSystem; import com.gemstone.gemfire.internal.Config; import com.gemstone.gemfire.internal.ConfigSource; @@ -29,6 +25,12 @@ import com.gemstone.gemfire.internal.logging.LogConfig; import com.gemstone.gemfire.internal.tcp.Connection; import com.gemstone.gemfire.memcached.GemFireMemcachedServer; +import java.io.File; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.net.InetAddress; +import java.util.*; + /** * Provides accessor (and in some cases mutator) methods for the * various GemFire distribution configuration properties. The @@ -49,7 +51,6 @@ import com.gemstone.gemfire.memcached.GemFireMemcachedServer; */ public interface DistributionConfig extends Config, LogConfig { - //////////////////// Instance Methods //////////////////// /** @@ -62,7 +63,9 @@ public interface DistributionConfig extends Config, LogConfig { *

The default value is: {@link #DEFAULT_NAME}. * @return the system's name. */ + @ConfigAttributeGetter(name=NAME_NAME) public String getName(); + /** * Sets the member's name. *

The name can not be changed while the system is running. @@ -71,16 +74,15 @@ public interface DistributionConfig extends Config, LogConfig { * @throws com.gemstone.gemfire.GemFireIOException if the set failure is caused by an error * when writing to the system's configuration file. */ + @ConfigAttributeSetter(name=NAME_NAME) public void setName(String value); - /** - * Returns true if the value of the name attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isNameModifiable(); + /** The name of the "name" property */ + @ConfigAttribute(type=String.class) public static final String NAME_NAME = "name"; + + /** * The default system name. *

Actual value of this constant is "". @@ -92,22 +94,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#mcast-port">"mcast-port" * property */ + @ConfigAttributeGetter(name=MCAST_PORT_NAME) public int getMcastPort(); /** * Sets the value of the "mcast-port" * property */ + @ConfigAttributeSetter(name=MCAST_PORT_NAME) public void setMcastPort(int value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isMcastPortModifiable(); - /** The name of the "mcastPort" property */ - public static final String MCAST_PORT_NAME = "mcast-port"; /** The default value of the "mcastPort" property */ public static final int DEFAULT_MCAST_PORT = 0; @@ -122,27 +118,25 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MAX_MCAST_PORT = 65535; + /** The name of the "mcastPort" property */ + @ConfigAttribute(type=Integer.class, min=MIN_MCAST_PORT, max=MAX_MCAST_PORT) + public static final String MCAST_PORT_NAME = "mcast-port"; /** * Returns the value of the "tcp-port" * property */ + @ConfigAttributeGetter(name=TCP_PORT_NAME) public int getTcpPort(); /** * Sets the value of the "tcp-port" * property */ + @ConfigAttributeSetter(name=TCP_PORT_NAME) public void setTcpPort(int value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isTcpPortModifiable(); - /** The name of the "tcpPort" property */ - public static final String TCP_PORT_NAME = "tcp-port"; + /** The default value of the "tcpPort" property */ public static final int DEFAULT_TCP_PORT = 0; /** @@ -155,28 +149,28 @@ public interface DistributionConfig extends Config, LogConfig { *

Actual value of this constant is 65535. */ public static final int MAX_TCP_PORT = 65535; - + /** The name of the "tcpPort" property */ + @ConfigAttribute(type=Integer.class, min=MIN_TCP_PORT, max=MAX_TCP_PORT) + public static final String TCP_PORT_NAME = "tcp-port"; /** * Returns the value of the "mcast-address" * property */ + @ConfigAttributeGetter(name=MCAST_ADDRESS_NAME) public InetAddress getMcastAddress(); /** * Sets the value of the "mcast-address" * property */ + @ConfigAttributeSetter(name=MCAST_ADDRESS_NAME) public void setMcastAddress(InetAddress value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isMcastAddressModifiable(); + /** The name of the "mcastAddress" property */ + @ConfigAttribute(type=InetAddress.class) public static final String MCAST_ADDRESS_NAME = "mcast-address"; /** The default value of the "mcastAddress" property. @@ -189,22 +183,15 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#mcast-ttl">"mcast-ttl" * property */ + @ConfigAttributeGetter(name=MCAST_TTL_NAME) public int getMcastTtl(); /** * Sets the value of the "mcast-ttl" * property */ + @ConfigAttributeSetter(name=MCAST_TTL_NAME) public void setMcastTtl(int value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isMcastTtlModifiable(); - - /** The name of the "mcastTtl" property */ - public static final String MCAST_TTL_NAME = "mcast-ttl"; /** The default value of the "mcastTtl" property */ public static final int DEFAULT_MCAST_TTL = 32; @@ -218,32 +205,28 @@ public interface DistributionConfig extends Config, LogConfig { *

Actual value of this constant is 255. */ public static final int MAX_MCAST_TTL = 255; - - - public static final int MIN_DISTRIBUTED_SYSTEM_ID = -1; - - public static final int MAX_DISTRIBUTED_SYSTEM_ID = 255; + + /** The name of the "mcastTtl" property */ + @ConfigAttribute(type=Integer.class, min=MIN_MCAST_TTL, max=MAX_MCAST_TTL) + public static final String MCAST_TTL_NAME = "mcast-ttl"; /** * Returns the value of the "bind-address" * property */ + @ConfigAttributeGetter(name=BIND_ADDRESS_NAME) public String getBindAddress(); /** * Sets the value of the "bind-address" * property */ + @ConfigAttributeSetter(name=BIND_ADDRESS_NAME) public void setBindAddress(String value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isBindAddressModifiable(); /** The name of the "bindAddress" property */ + @ConfigAttribute(type=String.class) public static final String BIND_ADDRESS_NAME = "bind-address"; /** The default value of the "bindAddress" property. @@ -256,21 +239,18 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#server-bind-address">"server-bind-address" * property */ + @ConfigAttributeGetter(name=SERVER_BIND_ADDRESS_NAME) public String getServerBindAddress(); /** * Sets the value of the "server-bind-address" * property */ + @ConfigAttributeSetter(name=SERVER_BIND_ADDRESS_NAME) public void setServerBindAddress(String value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isServerBindAddressModifiable(); /** The name of the "serverBindAddress" property */ + @ConfigAttribute(type=String.class) public static final String SERVER_BIND_ADDRESS_NAME = "server-bind-address"; /** The default value of the "serverBindAddress" property. @@ -282,6 +262,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns the value of the "locators" property */ + @ConfigAttributeGetter(name=LOCATORS_NAME) public String getLocators(); /** * Sets the system's locator list. @@ -295,15 +276,11 @@ public interface DistributionConfig extends Config, LogConfig { * @throws com.gemstone.gemfire.GemFireIOException if the set failure is caused by an error * when writing to the system's configuration file. */ + @ConfigAttributeSetter(name=LOCATORS_NAME) public void setLocators(String value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isLocatorsModifiable(); /** The name of the "locators" property */ + @ConfigAttribute(type=String.class) public static final String LOCATORS_NAME = "locators"; /** The default value of the "locators" property */ @@ -313,17 +290,20 @@ public interface DistributionConfig extends Config, LogConfig { * Locator wait time - how long to wait for a locator to start before giving up & * throwing a GemFireConfigException */ + @ConfigAttribute(type=Integer.class) public static final String LOCATOR_WAIT_TIME_NAME = "locator-wait-time"; - public static final int DEFAULT_LOCATOR_WAIT_TIME = 0; + public static final int DEFAULT_LOCATOR_WAIT_TIME = 0; + @ConfigAttributeGetter(name=LOCATOR_WAIT_TIME_NAME) public int getLocatorWaitTime(); + @ConfigAttributeSetter(name=LOCATOR_WAIT_TIME_NAME) public void setLocatorWaitTime(int seconds); - public boolean isLocatorWaitTimeModifiable(); /** * returns the value of the "start-locator" * property */ + @ConfigAttributeGetter(name=START_LOCATOR_NAME) public String getStartLocator(); /** * Sets the start-locator property. This is a string in the form @@ -331,15 +311,13 @@ public interface DistributionConfig extends Config, LogConfig { * a locator prior to connecting * @param value must be of the form hostName[portNum] */ + @ConfigAttributeSetter(name=START_LOCATOR_NAME) public void setStartLocator(String value); - /** - * returns true if the value of the attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isStartLocatorModifiable(); + /** * The name of the "start-locator" property */ + @ConfigAttribute(type=String.class) public static final String START_LOCATOR_NAME = "start-locator"; /** * The default value of the "start-locator" property @@ -350,6 +328,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns the value of the "deploy-working-dir" property */ + @ConfigAttributeGetter(name=DEPLOY_WORKING_DIR) public File getDeployWorkingDir(); /** @@ -359,17 +338,13 @@ public interface DistributionConfig extends Config, LogConfig { * @throws com.gemstone.gemfire.GemFireIOException if the set failure is caused by an error * when writing to the system's configuration file. */ + @ConfigAttributeSetter(name=DEPLOY_WORKING_DIR) public void setDeployWorkingDir(File value); /** - * Returns true if the value of the deploy-working-dir attribute can - * currently be modified. Some attributes can not be modified while the system is running. - */ - public boolean isDeployWorkingDirModifiable(); - - /** * The name of the "deploy-working-dir" property. */ + @ConfigAttribute(type=File.class) public static final String DEPLOY_WORKING_DIR = "deploy-working-dir"; /** @@ -382,6 +357,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns the value of the "user-command-packages" property */ + @ConfigAttributeGetter(name=USER_COMMAND_PACKAGES) public String getUserCommandPackages(); /** @@ -391,17 +367,13 @@ public interface DistributionConfig extends Config, LogConfig { * @throws com.gemstone.gemfire.GemFireIOException if the set failure is caused by an error * when writing to the system's configuration file. */ + @ConfigAttributeSetter(name=USER_COMMAND_PACKAGES) public void setUserCommandPackages(String value); /** - * Returns true if the value of the user-command-packages attribute can - * currently be modified. Some attributes can not be modified while the system is running. - */ - public boolean isUserCommandPackagesModifiable(); - - /** * The name of the "user-command-packages" property. */ + @ConfigAttribute(type=String.class) public static final String USER_COMMAND_PACKAGES = "user-command-packages"; /** @@ -416,6 +388,7 @@ public interface DistributionConfig extends Config, LogConfig { * @return null if logging information goes to standard * out */ + @ConfigAttributeGetter(name=LOG_FILE_NAME) public File getLogFile(); /** * Sets the system's log file. @@ -426,14 +399,11 @@ public interface DistributionConfig extends Config, LogConfig { * @throws com.gemstone.gemfire.GemFireIOException if the set failure is caused by an error * when writing to the system's configuration file. */ + @ConfigAttributeSetter(name=LOG_FILE_NAME) public void setLogFile(File value); - /** - * Returns true if the value of the logFile attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isLogFileModifiable(); + /** The name of the "logFile" property */ + @ConfigAttribute(type=File.class) public static final String LOG_FILE_NAME = "log-file"; /** @@ -449,6 +419,7 @@ public interface DistributionConfig extends Config, LogConfig { * * @see com.gemstone.gemfire.internal.logging.LogWriterImpl */ + @ConfigAttributeGetter(name=LOG_LEVEL_NAME) public int getLogLevel(); /** * Sets the value of the Actual value of this constant is {@link InternalLogWriter#CONFIG_LEVEL}. */ @@ -484,23 +446,26 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MAX_LOG_LEVEL = InternalLogWriter.NONE_LEVEL; + /** The name of the "logLevel" property */ + // type is String because the config file contains "config", "debug", "fine" etc, not a code, but the setter/getter accepts int + @ConfigAttribute(type=String.class) + public static final String LOG_LEVEL_NAME = "log-level"; + /** * Returns the value of the "statistic-sampling-enabled" * property */ + @ConfigAttributeGetter(name=STATISTIC_SAMPLING_ENABLED_NAME) public boolean getStatisticSamplingEnabled(); /** * Sets StatisticSamplingEnabled */ + @ConfigAttributeSetter(name=STATISTIC_SAMPLING_ENABLED_NAME) public void setStatisticSamplingEnabled(boolean newValue); - /** - * Returns true if the value of the StatisticSamplingEnabled attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isStatisticSamplingEnabledModifiable(); + /** The name of the "statisticSamplingEnabled" property */ + @ConfigAttribute(type=Boolean.class) public static final String STATISTIC_SAMPLING_ENABLED_NAME = "statistic-sampling-enabled"; @@ -512,19 +477,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#statistic-sample-rate">"statistic-sample-rate" * property */ + @ConfigAttributeGetter(name=STATISTIC_SAMPLE_RATE_NAME) public int getStatisticSampleRate(); /** * Sets the value of the "statistic-sample-rate" * property */ + @ConfigAttributeSetter(name=STATISTIC_SAMPLE_RATE_NAME) public void setStatisticSampleRate(int value); - /** - * Returns true if the value of the statisticSampleRate attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isStatisticSampleRateModifiable(); + /** * The default statistic sample rate. *

Actual value of this constant is 1000 milliseconds. @@ -542,6 +504,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MAX_STATISTIC_SAMPLE_RATE = 60000; /** The name of the "statisticSampleRate" property */ + @ConfigAttribute(type=Integer.class, min=MIN_STATISTIC_SAMPLE_RATE, max=MAX_STATISTIC_SAMPLE_RATE) public static final String STATISTIC_SAMPLE_RATE_NAME = "statistic-sample-rate"; @@ -550,18 +513,16 @@ public interface DistributionConfig extends Config, LogConfig { * * @return null if no file was specified */ + @ConfigAttributeGetter(name=STATISTIC_ARCHIVE_FILE_NAME) public File getStatisticArchiveFile(); /** * Sets the value of the "statistic-archive-file" property. */ + @ConfigAttributeSetter(name=STATISTIC_ARCHIVE_FILE_NAME) public void setStatisticArchiveFile(File value); - /** - * Returns true if the value of the statisticArchiveFile attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isStatisticArchiveFileModifiable(); + /** The name of the "statisticArchiveFile" property */ + @ConfigAttribute(type=File.class) public static final String STATISTIC_ARCHIVE_FILE_NAME = "statistic-archive-file"; @@ -578,20 +539,18 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cache-xml-file">"cache-xml-file" * property */ + @ConfigAttributeGetter(name=CACHE_XML_FILE_NAME) public File getCacheXmlFile(); /** * Sets the value of the "cache-xml-file" * property */ + @ConfigAttributeSetter(name=CACHE_XML_FILE_NAME) public void setCacheXmlFile(File value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isCacheXmlFileModifiable(); + /** The name of the "cacheXmlFile" property */ + @ConfigAttribute(type=File.class) public static final String CACHE_XML_FILE_NAME = "cache-xml-file"; /** The default value of the "cacheXmlFile" property */ @@ -602,6 +561,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#ack-wait-threshold">"ack-wait-threshold" * property */ + @ConfigAttributeGetter(name=ACK_WAIT_THRESHOLD_NAME) public int getAckWaitThreshold(); /** @@ -610,15 +570,8 @@ public interface DistributionConfig extends Config, LogConfig { * property * Setting this value too low will cause spurious alerts. */ + @ConfigAttributeSetter(name=ACK_WAIT_THRESHOLD_NAME) public void setAckWaitThreshold(int newThreshold); - /** - * Returns true if the value of the AckWaitThreshold attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isAckWaitThresholdModifiable(); - /** The name of the "ackWaitThreshold" property */ - public static final String ACK_WAIT_THRESHOLD_NAME = "ack-wait-threshold"; /** * The default AckWaitThreshold. @@ -635,12 +588,17 @@ public interface DistributionConfig extends Config, LogConfig { *

Actual value of this constant is MAX_INT seconds. */ public static final int MAX_ACK_WAIT_THRESHOLD = Integer.MAX_VALUE; + /** The name of the "ackWaitThreshold" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ACK_WAIT_THRESHOLD) + public static final String ACK_WAIT_THRESHOLD_NAME = "ack-wait-threshold"; + /** * Returns the value of the "ack-severe-alert-threshold" * property */ + @ConfigAttributeGetter(name=ACK_SEVERE_ALERT_THRESHOLD_NAME) public int getAckSevereAlertThreshold(); /** @@ -649,15 +607,9 @@ public interface DistributionConfig extends Config, LogConfig { * property * Setting this value too low will cause spurious forced disconnects. */ + @ConfigAttributeSetter(name=ACK_SEVERE_ALERT_THRESHOLD_NAME) public void setAckSevereAlertThreshold(int newThreshold); - /** - * Returns true if the value of the ackSevereAlertThreshold attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isAckSevereAlertThresholdModifiable(); - /** The name of the "ackSevereAlertThreshold" property */ - public static final String ACK_SEVERE_ALERT_THRESHOLD_NAME = "ack-severe-alert-threshold"; + /** * The default ackSevereAlertThreshold. *

Actual value of this constant is 0 seconds, which @@ -675,26 +627,25 @@ public interface DistributionConfig extends Config, LogConfig { *

Actual value of this constant is MAX_INT seconds. */ public static final int MAX_ACK_SEVERE_ALERT_THRESHOLD = Integer.MAX_VALUE; - + /** The name of the "ackSevereAlertThreshold" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ACK_SEVERE_ALERT_THRESHOLD) + public static final String ACK_SEVERE_ALERT_THRESHOLD_NAME = "ack-severe-alert-threshold"; /** * Returns the value of the "archive-file-size-limit" * property */ + @ConfigAttributeGetter(name=ARCHIVE_FILE_SIZE_LIMIT_NAME) public int getArchiveFileSizeLimit(); /** * Sets the value of the "archive-file-size-limit" * property */ + @ConfigAttributeSetter(name=ARCHIVE_FILE_SIZE_LIMIT_NAME) public void setArchiveFileSizeLimit(int value); - /** - * Returns true if the value of the ArchiveFileSizeLimit attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isArchiveFileSizeLimitModifiable(); + /** * The default statistic archive file size limit. *

Actual value of this constant is 0 megabytes. @@ -712,6 +663,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MAX_ARCHIVE_FILE_SIZE_LIMIT = 1000000; /** The name of the "ArchiveFileSizeLimit" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ARCHIVE_FILE_SIZE_LIMIT, max=MAX_ARCHIVE_FILE_SIZE_LIMIT) public static final String ARCHIVE_FILE_SIZE_LIMIT_NAME = "archive-file-size-limit"; /** @@ -719,19 +671,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#archive-disk-space-limit">"archive-disk-space-limit" * property */ + @ConfigAttributeGetter(name=ARCHIVE_DISK_SPACE_LIMIT_NAME) public int getArchiveDiskSpaceLimit(); /** * Sets the value of the "archive-disk-space-limit" * property */ + @ConfigAttributeSetter(name=ARCHIVE_DISK_SPACE_LIMIT_NAME) public void setArchiveDiskSpaceLimit(int value); - /** - * Returns true if the value of the ArchiveDiskSpaceLimit attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isArchiveDiskSpaceLimitModifiable(); + /** * The default archive disk space limit. *

Actual value of this constant is 0 megabytes. @@ -749,6 +698,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MAX_ARCHIVE_DISK_SPACE_LIMIT = 1000000; /** The name of the "ArchiveDiskSpaceLimit" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ARCHIVE_DISK_SPACE_LIMIT, max=MAX_ARCHIVE_DISK_SPACE_LIMIT) public static final String ARCHIVE_DISK_SPACE_LIMIT_NAME = "archive-disk-space-limit"; /** @@ -756,19 +706,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#log-file-size-limit">"log-file-size-limit" * property */ + @ConfigAttributeGetter(name=LOG_FILE_SIZE_LIMIT_NAME) public int getLogFileSizeLimit(); /** * Sets the value of the "log-file-size-limit" * property */ + @ConfigAttributeSetter(name=LOG_FILE_SIZE_LIMIT_NAME) public void setLogFileSizeLimit(int value); - /** - * Returns true if the value of the LogFileSizeLimit attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isLogFileSizeLimitModifiable(); + /** * The default log file size limit. *

Actual value of this constant is 0 megabytes. @@ -786,6 +733,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MAX_LOG_FILE_SIZE_LIMIT = 1000000; /** The name of the "LogFileSizeLimit" property */ + @ConfigAttribute(type=Integer.class, min=MIN_LOG_FILE_SIZE_LIMIT, max=MAX_LOG_FILE_SIZE_LIMIT) public static final String LOG_FILE_SIZE_LIMIT_NAME = "log-file-size-limit"; @@ -794,19 +742,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#log-disk-space-limit">"log-disk-space-limit" * property */ + @ConfigAttributeGetter(name=LOG_DISK_SPACE_LIMIT_NAME) public int getLogDiskSpaceLimit(); /** * Sets the value of the "log-disk-space-limit" * property */ + @ConfigAttributeSetter(name=LOG_DISK_SPACE_LIMIT_NAME) public void setLogDiskSpaceLimit(int value); - /** - * Returns true if the value of the LogDiskSpaceLimit attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isLogDiskSpaceLimitModifiable(); + /** * The default log disk space limit. *

Actual value of this constant is 0 megabytes. @@ -824,6 +769,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MAX_LOG_DISK_SPACE_LIMIT = 1000000; /** The name of the "LogDiskSpaceLimit" property */ + @ConfigAttribute(type=Integer.class, min=MIN_LOG_DISK_SPACE_LIMIT, max=MAX_LOG_DISK_SPACE_LIMIT) public static final String LOG_DISK_SPACE_LIMIT_NAME = "log-disk-space-limit"; @@ -833,6 +779,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #getClusterSSLEnabled} instead. */ + @ConfigAttributeGetter(name=SSL_ENABLED_NAME) public boolean getSSLEnabled(); /** @@ -845,6 +792,7 @@ public interface DistributionConfig extends Config, LogConfig { /** The name of the "SSLEnabled" property * @deprecated as of 8.0 use {@link #CLUSTER_SSL_ENABLED_NAME} instead. */ + @ConfigAttribute(type=Boolean.class) public static final String SSL_ENABLED_NAME = "ssl-enabled"; @@ -854,6 +802,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #setClusterSSLEnabled} instead. */ + @ConfigAttributeSetter(name=SSL_ENABLED_NAME) public void setSSLEnabled( boolean enabled ); /** @@ -862,6 +811,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #getClusterSSLProtocols} instead. */ + @ConfigAttributeGetter(name=SSL_PROTOCOLS_NAME) public String getSSLProtocols( ); /** @@ -870,6 +820,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #setClusterSSLProtocols} instead. */ + @ConfigAttributeSetter(name=SSL_PROTOCOLS_NAME) public void setSSLProtocols( String protocols ); /** @@ -881,6 +832,7 @@ public interface DistributionConfig extends Config, LogConfig { /** The name of the "SSLProtocols" property * @deprecated as of 8.0 use {@link #CLUSTER_SSL_PROTOCOLS_NAME} instead. */ + @ConfigAttribute(type=String.class) public static final String SSL_PROTOCOLS_NAME = "ssl-protocols"; @@ -890,6 +842,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #getClusterSSLCiphers} instead. */ + @ConfigAttributeGetter(name=SSL_CIPHERS_NAME) public String getSSLCiphers( ); /** @@ -898,6 +851,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #setClusterSSLCiphers} instead. */ + @ConfigAttributeSetter(name=SSL_CIPHERS_NAME) public void setSSLCiphers( String ciphers ); /** @@ -909,6 +863,7 @@ public interface DistributionConfig extends Config, LogConfig { /** The name of the "SSLCiphers" property * @deprecated as of 8.0 use {@link #CLUSTER_SSL_CIPHERS_NAME} instead. */ + @ConfigAttribute(type=String.class) public static final String SSL_CIPHERS_NAME = "ssl-ciphers"; @@ -918,6 +873,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #getClusterSSLRequireAuthentication} instead. */ + @ConfigAttributeGetter(name=SSL_REQUIRE_AUTHENTICATION_NAME) public boolean getSSLRequireAuthentication( ); /** @@ -926,6 +882,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @deprecated as of 8.0 use {@link #setClusterSSLRequireAuthentication} instead. */ + @ConfigAttributeSetter(name=SSL_REQUIRE_AUTHENTICATION_NAME) public void setSSLRequireAuthentication( boolean enabled ); /** @@ -937,6 +894,7 @@ public interface DistributionConfig extends Config, LogConfig { /** The name of the "SSLRequireAuthentication" property * @deprecated as of 8.0 use {@link #CLUSTER_SSL_REQUIRE_AUTHENTICATION_NAME} instead. */ + @ConfigAttribute(type=Boolean.class) public static final String SSL_REQUIRE_AUTHENTICATION_NAME = "ssl-require-authentication"; @@ -945,6 +903,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-enabled">"cluster-ssl-enabled" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_ENABLED_NAME) public boolean getClusterSSLEnabled(); /** @@ -952,7 +911,8 @@ public interface DistributionConfig extends Config, LogConfig { *

Actual value of this constant is false. */ public static final boolean DEFAULT_CLUSTER_SSL_ENABLED = false; - /** The name of the "ClusterSSLEnabled" property */ + /** The name of the "ClusterSSLEnabled" property */ + @ConfigAttribute(type=Boolean.class) public static final String CLUSTER_SSL_ENABLED_NAME = "cluster-ssl-enabled"; @@ -961,6 +921,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-enabled">"cluster-ssl-enabled" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_ENABLED_NAME) public void setClusterSSLEnabled( boolean enabled ); /** @@ -968,6 +929,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-protocols">"cluster-ssl-protocols" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_PROTOCOLS_NAME) public String getClusterSSLProtocols( ); /** @@ -975,6 +937,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-protocols">"cluster-ssl-protocols" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_PROTOCOLS_NAME) public void setClusterSSLProtocols( String protocols ); /** @@ -983,6 +946,7 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final String DEFAULT_CLUSTER_SSL_PROTOCOLS = "any"; /** The name of the "ClusterSSLProtocols" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_PROTOCOLS_NAME = "cluster-ssl-protocols"; @@ -991,6 +955,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-ciphers">"cluster-ssl-ciphers" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_CIPHERS_NAME) public String getClusterSSLCiphers( ); /** @@ -998,6 +963,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-ciphers">"cluster-ssl-ciphers" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_CIPHERS_NAME) public void setClusterSSLCiphers( String ciphers ); /** @@ -1006,6 +972,7 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final String DEFAULT_CLUSTER_SSL_CIPHERS = "any"; /** The name of the "ClusterSSLCiphers" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_CIPHERS_NAME = "cluster-ssl-ciphers"; @@ -1014,6 +981,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-require-authentication">"cluster-ssl-require-authentication" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_REQUIRE_AUTHENTICATION_NAME) public boolean getClusterSSLRequireAuthentication( ); /** @@ -1021,6 +989,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-require-authentication">"cluster-ssl-require-authentication" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_REQUIRE_AUTHENTICATION_NAME) public void setClusterSSLRequireAuthentication( boolean enabled ); /** @@ -1029,6 +998,7 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final boolean DEFAULT_CLUSTER_SSL_REQUIRE_AUTHENTICATION = true; /** The name of the "ClusterSSLRequireAuthentication" property */ + @ConfigAttribute(type=Boolean.class) public static final String CLUSTER_SSL_REQUIRE_AUTHENTICATION_NAME = "cluster-ssl-require-authentication"; @@ -1038,6 +1008,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore">"cluster-ssl-keystore" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_KEYSTORE_NAME) public String getClusterSSLKeyStore( ); /** @@ -1045,6 +1016,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore">"cluster-ssl-keystore" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_KEYSTORE_NAME) public void setClusterSSLKeyStore( String keyStore); /** @@ -1054,6 +1026,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final String DEFAULT_CLUSTER_SSL_KEYSTORE = ""; /** The name of the "ClusterSSLKeyStore" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_KEYSTORE_NAME = "cluster-ssl-keystore"; /** @@ -1061,6 +1034,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore-type">"cluster-ssl-keystore-type" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_KEYSTORE_TYPE_NAME) public String getClusterSSLKeyStoreType( ); /** @@ -1068,6 +1042,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore-type">"cluster-ssl-keystore-type" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_KEYSTORE_TYPE_NAME) public void setClusterSSLKeyStoreType( String keyStoreType); /** @@ -1077,6 +1052,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final String DEFAULT_CLUSTER_SSL_KEYSTORE_TYPE = ""; /** The name of the "ClusterSSLKeyStoreType" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_KEYSTORE_TYPE_NAME = "cluster-ssl-keystore-type"; /** @@ -1084,6 +1060,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore-password">"cluster-ssl-keystore-password" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_KEYSTORE_PASSWORD_NAME) public String getClusterSSLKeyStorePassword( ); /** @@ -1091,6 +1068,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-keystore-password">"cluster-ssl-keystore-password" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_KEYSTORE_PASSWORD_NAME) public void setClusterSSLKeyStorePassword( String keyStorePassword); /** @@ -1100,6 +1078,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final String DEFAULT_CLUSTER_SSL_KEYSTORE_PASSWORD = ""; /** The name of the "ClusterSSLKeyStorePassword" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_KEYSTORE_PASSWORD_NAME = "cluster-ssl-keystore-password"; /** @@ -1107,6 +1086,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-truststore">"cluster-ssl-truststore" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_TRUSTSTORE_NAME) public String getClusterSSLTrustStore( ); /** @@ -1114,6 +1094,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-truststore">"cluster-ssl-truststore" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_TRUSTSTORE_NAME) public void setClusterSSLTrustStore( String trustStore); /** @@ -1123,6 +1104,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final String DEFAULT_CLUSTER_SSL_TRUSTSTORE = ""; /** The name of the "ClusterSSLTrustStore" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_TRUSTSTORE_NAME = "cluster-ssl-truststore"; /** @@ -1130,6 +1112,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-truststore-password">"cluster-ssl-truststore-password" * property. */ + @ConfigAttributeGetter(name=CLUSTER_SSL_TRUSTSTORE_PASSWORD_NAME) public String getClusterSSLTrustStorePassword( ); /** @@ -1137,6 +1120,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#cluster-ssl-truststore-password">"cluster-ssl-truststore-password" * property. */ + @ConfigAttributeSetter(name=CLUSTER_SSL_TRUSTSTORE_PASSWORD_NAME) public void setClusterSSLTrustStorePassword( String trusStorePassword); /** * The default cluster-ssl-truststore-password value. @@ -1145,6 +1129,7 @@ public interface DistributionConfig extends Config, LogConfig { public static final String DEFAULT_CLUSTER_SSL_TRUSTSTORE_PASSWORD = ""; /** The name of the "ClusterSSLKeyStorePassword" property */ + @ConfigAttribute(type=String.class) public static final String CLUSTER_SSL_TRUSTSTORE_PASSWORD_NAME = "cluster-ssl-truststore-password"; @@ -1213,22 +1198,17 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#socket-lease-time">"socket-lease-time" * property */ + @ConfigAttributeGetter(name=SOCKET_LEASE_TIME_NAME) public int getSocketLeaseTime(); /** * Sets the value of the "socket-lease-time" * property */ + @ConfigAttributeSetter(name=SOCKET_LEASE_TIME_NAME) public void setSocketLeaseTime(int value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isSocketLeaseTimeModifiable(); - /** The name of the "socketLeaseTime" property */ - public static final String SOCKET_LEASE_TIME_NAME = "socket-lease-time"; + /** The default value of the "socketLeaseTime" property */ public static final int DEFAULT_SOCKET_LEASE_TIME = 60000; @@ -1243,27 +1223,25 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MAX_SOCKET_LEASE_TIME = 600000; + /** The name of the "socketLeaseTime" property */ + @ConfigAttribute(type=Integer.class, min=MIN_SOCKET_LEASE_TIME, max=MAX_SOCKET_LEASE_TIME) + public static final String SOCKET_LEASE_TIME_NAME = "socket-lease-time"; + /** * Returns the value of the "socket-buffer-size" * property */ + @ConfigAttributeGetter(name=SOCKET_BUFFER_SIZE_NAME) public int getSocketBufferSize(); /** * Sets the value of the "socket-buffer-size" * property */ + @ConfigAttributeSetter(name=SOCKET_BUFFER_SIZE_NAME) public void setSocketBufferSize(int value); - /** - * Returns true if the value of the - * attribute can currently be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isSocketBufferSizeModifiable(); - /** The name of the "socketBufferSize" property */ - public static final String SOCKET_BUFFER_SIZE_NAME = "socket-buffer-size"; /** The default value of the "socketBufferSize" property */ public static final int DEFAULT_SOCKET_BUFFER_SIZE = 32768; @@ -1281,11 +1259,17 @@ public interface DistributionConfig extends Config, LogConfig { public static final boolean VALIDATE = Boolean.getBoolean("gemfire.validateMessageSize"); public static final int VALIDATE_CEILING = Integer.getInteger("gemfire.validateMessageSizeCeiling", 8 * 1024 * 1024).intValue(); + /** The name of the "socketBufferSize" property */ + @ConfigAttribute(type=Integer.class, min=MIN_SOCKET_BUFFER_SIZE, max=MAX_SOCKET_BUFFER_SIZE) + public static final String SOCKET_BUFFER_SIZE_NAME = "socket-buffer-size"; + + /** * Get the value of the * "mcast-send-buffer-size" * property */ + @ConfigAttributeGetter(name=MCAST_SEND_BUFFER_SIZE_NAME) public int getMcastSendBufferSize(); /** @@ -1293,18 +1277,9 @@ public interface DistributionConfig extends Config, LogConfig { * "mcast-send-buffer-size" * property */ + @ConfigAttributeSetter(name=MCAST_SEND_BUFFER_SIZE_NAME) public void setMcastSendBufferSize(int value); - /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isMcastSendBufferSizeModifiable(); - - /** - * The name of the corresponding property - */ - public static final String MCAST_SEND_BUFFER_SIZE_NAME = "mcast-send-buffer-size"; /** * The default value of the corresponding property @@ -1319,10 +1294,17 @@ public interface DistributionConfig extends Config, LogConfig { public static final int MIN_MCAST_SEND_BUFFER_SIZE = 2048; /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_MCAST_SEND_BUFFER_SIZE) + public static final String MCAST_SEND_BUFFER_SIZE_NAME = "mcast-send-buffer-size"; + + /** * Get the value of the * "mcast-recv-buffer-size" * property */ + @ConfigAttributeGetter(name=MCAST_RECV_BUFFER_SIZE_NAME) public int getMcastRecvBufferSize(); /** @@ -1330,18 +1312,9 @@ public interface DistributionConfig extends Config, LogConfig { * "mcast-recv-buffer-size" * property */ + @ConfigAttributeSetter(name=MCAST_RECV_BUFFER_SIZE_NAME) public void setMcastRecvBufferSize(int value); - /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isMcastRecvBufferSizeModifiable(); - - /** - * The name of the corresponding property - */ - public static final String MCAST_RECV_BUFFER_SIZE_NAME = "mcast-recv-buffer-size"; /** * The default value of the corresponding property @@ -1354,7 +1327,11 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MIN_MCAST_RECV_BUFFER_SIZE = 2048; - + /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_MCAST_RECV_BUFFER_SIZE) + public static final String MCAST_RECV_BUFFER_SIZE_NAME = "mcast-recv-buffer-size"; /** @@ -1362,6 +1339,7 @@ public interface DistributionConfig extends Config, LogConfig { * "mcast-flow-control" * property. */ + @ConfigAttributeGetter(name=MCAST_FLOW_CONTROL_NAME) public FlowControlParams getMcastFlowControl(); /** @@ -1369,17 +1347,13 @@ public interface DistributionConfig extends Config, LogConfig { * "mcast-flow-control" * property */ + @ConfigAttributeSetter(name=MCAST_FLOW_CONTROL_NAME) public void setMcastFlowControl(FlowControlParams values); /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isMcastFlowControlModifiable(); - - /** * The name of the corresponding property */ + @ConfigAttribute(type=FlowControlParams.class) public static final String MCAST_FLOW_CONTROL_NAME = "mcast-flow-control"; /** @@ -1423,6 +1397,7 @@ public interface DistributionConfig extends Config, LogConfig { * "udp-fragment-size" * property. */ + @ConfigAttributeGetter(name=UDP_FRAGMENT_SIZE_NAME) public int getUdpFragmentSize(); /** @@ -1430,20 +1405,10 @@ public interface DistributionConfig extends Config, LogConfig { * "udp-fragment-size" * property */ + @ConfigAttributeSetter(name=UDP_FRAGMENT_SIZE_NAME) public void setUdpFragmentSize(int value); /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isUdpFragmentSizeModifiable(); - - /** - * The name of the corresponding property - */ - public static final String UDP_FRAGMENT_SIZE_NAME = "udp-fragment-size"; - - /** * The default value of the corresponding property */ public static final int DEFAULT_UDP_FRAGMENT_SIZE = 60000; @@ -1456,7 +1421,11 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MAX_UDP_FRAGMENT_SIZE = 60000; - + /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_UDP_FRAGMENT_SIZE, max=MAX_UDP_FRAGMENT_SIZE) + public static final String UDP_FRAGMENT_SIZE_NAME = "udp-fragment-size"; @@ -1466,6 +1435,7 @@ public interface DistributionConfig extends Config, LogConfig { * "udp-send-buffer-size" * property */ + @ConfigAttributeGetter(name=UDP_SEND_BUFFER_SIZE_NAME) public int getUdpSendBufferSize(); /** @@ -1473,20 +1443,10 @@ public interface DistributionConfig extends Config, LogConfig { * "udp-send-buffer-size" * property */ + @ConfigAttributeSetter(name=UDP_SEND_BUFFER_SIZE_NAME) public void setUdpSendBufferSize(int value); /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isUdpSendBufferSizeModifiable(); - - /** - * The name of the corresponding property - */ - public static final String UDP_SEND_BUFFER_SIZE_NAME = "udp-send-buffer-size"; - - /** * The default value of the corresponding property */ public static final int DEFAULT_UDP_SEND_BUFFER_SIZE = 65535; @@ -1497,13 +1457,18 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final int MIN_UDP_SEND_BUFFER_SIZE = 2048; - + /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_UDP_SEND_BUFFER_SIZE) + public static final String UDP_SEND_BUFFER_SIZE_NAME = "udp-send-buffer-size"; /** * Get the value of the * "udp-recv-buffer-size" * property */ + @ConfigAttributeGetter(name=UDP_RECV_BUFFER_SIZE_NAME) public int getUdpRecvBufferSize(); /** @@ -1511,20 +1476,10 @@ public interface DistributionConfig extends Config, LogConfig { * "udp-recv-buffer-size" * property */ + @ConfigAttributeSetter(name=UDP_RECV_BUFFER_SIZE_NAME) public void setUdpRecvBufferSize(int value); /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isUdpRecvBufferSizeModifiable(); - - /** - * The name of the corresponding property - */ - public static final String UDP_RECV_BUFFER_SIZE_NAME = "udp-recv-buffer-size"; - - /** * The default value of the unicast receive buffer size property */ public static final int DEFAULT_UDP_RECV_BUFFER_SIZE = 1048576; @@ -1543,24 +1498,28 @@ public interface DistributionConfig extends Config, LogConfig { /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_UDP_RECV_BUFFER_SIZE) + public static final String UDP_RECV_BUFFER_SIZE_NAME = "udp-recv-buffer-size"; + + /** * Returns the value of the "disable-tcp" * property */ + @ConfigAttributeGetter(name=DISABLE_TCP_NAME) public boolean getDisableTcp(); /** * Sets the value of the "disable-tcp" * property. */ + @ConfigAttributeSetter(name=DISABLE_TCP_NAME) public void setDisableTcp(boolean newValue); - /** - * Returns true if the value of the DISABLE_TCP attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isDisableTcpModifiable(); + /** The name of the corresponding property */ + @ConfigAttribute(type=Boolean.class) public static final String DISABLE_TCP_NAME = "disable-tcp"; /** The default value of the corresponding property */ @@ -1570,6 +1529,7 @@ public interface DistributionConfig extends Config, LogConfig { /** * Turns on timing statistics for the distributed system */ + @ConfigAttributeSetter(name=ENABLE_TIME_STATISTICS_NAME) public void setEnableTimeStatistics(boolean newValue); /** @@ -1577,9 +1537,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#enable-time-statistics">enable-time-statistics * property */ + @ConfigAttributeGetter(name=ENABLE_TIME_STATISTICS_NAME) public boolean getEnableTimeStatistics(); /** the name of the corresponding property */ + @ConfigAttribute(type=Boolean.class) public static final String ENABLE_TIME_STATISTICS_NAME = "enable-time-statistics"; /** The default value of the corresponding property */ @@ -1590,7 +1552,7 @@ public interface DistributionConfig extends Config, LogConfig { * Sets the value for use-shared-configuration */ - + @ConfigAttributeSetter(name=USE_CLUSTER_CONFIGURATION_NAME) public void setUseSharedConfiguration(boolean newValue); /** @@ -1598,9 +1560,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#use-cluster-configuration">use-cluster-configuration * property */ + @ConfigAttributeGetter(name=USE_CLUSTER_CONFIGURATION_NAME) public boolean getUseSharedConfiguration(); /** the name of the corresponding property */ + @ConfigAttribute(type=Boolean.class) public static final String USE_CLUSTER_CONFIGURATION_NAME = "use-cluster-configuration"; /** The default value of the corresponding property */ @@ -1610,7 +1574,7 @@ public interface DistributionConfig extends Config, LogConfig { * Sets the value for enable-cluster-configuration */ - + @ConfigAttributeSetter(name=ENABLE_CLUSTER_CONFIGURATION_NAME) public void setEnableClusterConfiguration(boolean newValue); /** @@ -1618,13 +1582,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#enable-cluster-configuration">enable-cluster-configuration * property */ + @ConfigAttributeGetter(name=ENABLE_CLUSTER_CONFIGURATION_NAME) public boolean getEnableClusterConfiguration(); /** the name of the corresponding property */ + @ConfigAttribute(type=Boolean.class) public static final String ENABLE_CLUSTER_CONFIGURATION_NAME = "enable-cluster-configuration"; /** The default value of the corresponding property */ public static final boolean DEFAULT_ENABLE_CLUSTER_CONFIGURATION = true; - + + @ConfigAttribute(type=Boolean.class) public static final String LOAD_CLUSTER_CONFIG_FROM_DIR_NAME = "load-cluster-configuration-from-dir"; public static final boolean DEFAULT_LOAD_CLUSTER_CONFIG_FROM_DIR = false; @@ -1633,6 +1600,7 @@ public interface DistributionConfig extends Config, LogConfig { * cluster-configuration-dir * property */ + @ConfigAttributeGetter(name=LOAD_CLUSTER_CONFIG_FROM_DIR_NAME) public boolean getLoadClusterConfigFromDir(); /** @@ -1640,21 +1608,28 @@ public interface DistributionConfig extends Config, LogConfig { * cluster-configuration-dir * property */ + @ConfigAttributeSetter(name=LOAD_CLUSTER_CONFIG_FROM_DIR_NAME) public void setLoadClusterConfigFromDir(boolean newValue); - + + @ConfigAttribute(type=String.class) public static final String CLUSTER_CONFIGURATION_DIR = "cluster-configuration-dir"; public static final String DEFAULT_CLUSTER_CONFIGURATION_DIR = System.getProperty("user.dir"); - - public String getClusterConfigDir(); + + @ConfigAttributeGetter(name=CLUSTER_CONFIGURATION_DIR) + public String getClusterConfigDir(); + @ConfigAttributeSetter(name=CLUSTER_CONFIGURATION_DIR) public void setClusterConfigDir(final String clusterConfigDir); /** Turns on network partition detection */ + @ConfigAttributeSetter(name=ENABLE_NETWORK_PARTITION_DETECTION_NAME) public void setEnableNetworkPartitionDetection(boolean newValue); /** * Returns the value of the enable-network-partition-detection property */ + @ConfigAttributeGetter(name=ENABLE_NETWORK_PARTITION_DETECTION_NAME) public boolean getEnableNetworkPartitionDetection(); /** the name of the corresponding property */ + @ConfigAttribute(type=Boolean.class) public static final String ENABLE_NETWORK_PARTITION_DETECTION_NAME = "enable-network-partition-detection"; public static final boolean DEFAULT_ENABLE_NETWORK_PARTITION_DETECTION = false; @@ -1664,6 +1639,7 @@ public interface DistributionConfig extends Config, LogConfig { * "member-timeout" * property */ + @ConfigAttributeGetter(name=MEMBER_TIMEOUT_NAME) public int getMemberTimeout(); /** @@ -1671,20 +1647,10 @@ public interface DistributionConfig extends Config, LogConfig { * "member-timeout" * property */ + @ConfigAttributeSetter(name=MEMBER_TIMEOUT_NAME) public void setMemberTimeout(int value); /** - * Returns true if the corresponding property is currently modifiable. - * Some attributes can't be modified while a DistributedSystem is running. - */ - public boolean isMemberTimeoutModifiable(); - - /** - * The name of the corresponding property - */ - public static final String MEMBER_TIMEOUT_NAME = "member-timeout"; - - /** * The default value of the corresponding property */ public static final int DEFAULT_MEMBER_TIMEOUT = 5000; @@ -1694,14 +1660,21 @@ public interface DistributionConfig extends Config, LogConfig { /**The maximum member-timeout setting of 600000 millieseconds */ public static final int MAX_MEMBER_TIMEOUT = 600000; + /** + * The name of the corresponding property + */ + @ConfigAttribute(type=Integer.class, min=MIN_MEMBER_TIMEOUT, max=MAX_MEMBER_TIMEOUT) + public static final String MEMBER_TIMEOUT_NAME = "member-timeout"; - + @ConfigAttribute(type=int[].class) public static final String MEMBERSHIP_PORT_RANGE_NAME = "membership-port-range"; public static final int[] DEFAULT_MEMBERSHIP_PORT_RANGE = new int[]{1024,65535}; - + + @ConfigAttributeGetter(name=MEMBERSHIP_PORT_RANGE_NAME) public int[] getMembershipPortRange(); - + + @ConfigAttributeSetter(name=MEMBERSHIP_PORT_RANGE_NAME) public void setMembershipPortRange(int[] range); /** @@ -1709,20 +1682,18 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#conserve-sockets">"conserve-sockets" * property */ + @ConfigAttributeGetter(name=CONSERVE_SOCKETS_NAME) public boolean getConserveSockets(); /** * Sets the value of the "conserve-sockets" * property. */ + @ConfigAttributeSetter(name=CONSERVE_SOCKETS_NAME) public void setConserveSockets(boolean newValue); - /** - * Returns true if the value of the ConserveSockets attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - */ - public boolean isConserveSocketsModifiable(); + /** The name of the "conserveSockets" property */ + @ConfigAttribute(type=Boolean.class) public static final String CONSERVE_SOCKETS_NAME = "conserve-sockets"; /** The default value of the "conserveSockets" property */ @@ -1733,14 +1704,17 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#roles">"roles" * property */ + @ConfigAttributeGetter(name=ROLES_NAME) public String getRoles(); /** * Sets the value of the "roles" * property. */ + @ConfigAttributeSetter(name=ROLES_NAME) public void setRoles(String roles); /** The name of the "roles" property */ + @ConfigAttribute(type=String.class) public static final String ROLES_NAME = "roles"; /** The default value of the "roles" property */ public static final String DEFAULT_ROLES = ""; @@ -1748,6 +1722,7 @@ public interface DistributionConfig extends Config, LogConfig { /** * The name of the "max wait time for reconnect" property */ + @ConfigAttribute(type=Integer.class) public static final String MAX_WAIT_TIME_FOR_RECONNECT_NAME = "max-wait-time-reconnect"; /** @@ -1758,16 +1733,19 @@ public interface DistributionConfig extends Config, LogConfig { /** * Sets the max wait timeout, in milliseconds, for reconnect. * */ + @ConfigAttributeSetter(name=MAX_WAIT_TIME_FOR_RECONNECT_NAME) public void setMaxWaitTimeForReconnect( int timeOut); /** * Returns the max wait timeout, in milliseconds, for reconnect. * */ + @ConfigAttributeGetter(name=MAX_WAIT_TIME_FOR_RECONNECT_NAME) public int getMaxWaitTimeForReconnect(); /** * The name of the "max number of tries for reconnect" property. * */ + @ConfigAttribute(type=Integer.class) public static final String MAX_NUM_RECONNECT_TRIES = "max-num-reconnect-tries"; /** @@ -1778,11 +1756,13 @@ public interface DistributionConfig extends Config, LogConfig { /** * Sets the max number of tries for reconnect. * */ + @ConfigAttributeSetter(name=MAX_NUM_RECONNECT_TRIES) public void setMaxNumReconnectTries(int tries); /** * Returns the value for max number of tries for reconnect. * */ + @ConfigAttributeGetter(name=MAX_NUM_RECONNECT_TRIES) public int getMaxNumReconnectTries(); // ------------------- Asynchronous Messaging Properties ------------------- @@ -1792,22 +1772,16 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#async-distribution-timeout"> * "async-distribution-timeout" property. */ + @ConfigAttributeGetter(name=ASYNC_DISTRIBUTION_TIMEOUT_NAME) public int getAsyncDistributionTimeout(); /** * Sets the value of the * "async-distribution-timeout" property. */ + @ConfigAttributeSetter(name=ASYNC_DISTRIBUTION_TIMEOUT_NAME) public void setAsyncDistributionTimeout(int newValue); - /** - * Returns true if the value of the asyncDistributionTimeout attribute can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isAsyncDistributionTimeoutModifiable(); - /** The name of the "asyncDistributionTimeout" property */ - public static final String ASYNC_DISTRIBUTION_TIMEOUT_NAME = "async-distribution-timeout"; /** The default value of "asyncDistributionTimeout" is 0. */ public static final int DEFAULT_ASYNC_DISTRIBUTION_TIMEOUT = 0; /** The minimum value of "asyncDistributionTimeout" is 0. */ @@ -1815,55 +1789,48 @@ public interface DistributionConfig extends Config, LogConfig { /** The maximum value of "asyncDistributionTimeout" is 60000. */ public static final int MAX_ASYNC_DISTRIBUTION_TIMEOUT = 60000; + /** The name of the "asyncDistributionTimeout" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ASYNC_DISTRIBUTION_TIMEOUT, max=MAX_ASYNC_DISTRIBUTION_TIMEOUT) + public static final String ASYNC_DISTRIBUTION_TIMEOUT_NAME = "async-distribution-timeout"; /** * Returns the value of the * "async-queue-timeout" property. */ + @ConfigAttributeGetter(name=ASYNC_QUEUE_TIMEOUT_NAME) public int getAsyncQueueTimeout(); /** * Sets the value of the * "async-queue-timeout" property. */ + @ConfigAttributeSetter(name=ASYNC_QUEUE_TIMEOUT_NAME) public void setAsyncQueueTimeout(int newValue); - /** - * Returns true if the value of the asyncQueueTimeout attribute can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isAsyncQueueTimeoutModifiable(); - /** The name of the "asyncQueueTimeout" property */ - public static final String ASYNC_QUEUE_TIMEOUT_NAME = "async-queue-timeout"; /** The default value of "asyncQueueTimeout" is 60000. */ public static final int DEFAULT_ASYNC_QUEUE_TIMEOUT = 60000; /** The minimum value of "asyncQueueTimeout" is 0. */ public static final int MIN_ASYNC_QUEUE_TIMEOUT = 0; /** The maximum value of "asyncQueueTimeout" is 86400000. */ public static final int MAX_ASYNC_QUEUE_TIMEOUT = 86400000; - + /** The name of the "asyncQueueTimeout" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ASYNC_QUEUE_TIMEOUT, max=MAX_ASYNC_QUEUE_TIMEOUT) + public static final String ASYNC_QUEUE_TIMEOUT_NAME = "async-queue-timeout"; /** * Returns the value of the * "async-max-queue-size" property. */ + @ConfigAttributeGetter(name=ASYNC_MAX_QUEUE_SIZE_NAME) public int getAsyncMaxQueueSize(); /** * Sets the value of the * "async-max-queue-size" property. */ + @ConfigAttributeSetter(name=ASYNC_MAX_QUEUE_SIZE_NAME) public void setAsyncMaxQueueSize(int newValue); - /** - * Returns true if the value of the asyncMaxQueueSize attribute can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isAsyncMaxQueueSizeModifiable(); - /** The name of the "asyncMaxQueueSize" property */ - public static final String ASYNC_MAX_QUEUE_SIZE_NAME = "async-max-queue-size"; /** The default value of "asyncMaxQueueSize" is 8. */ public static final int DEFAULT_ASYNC_MAX_QUEUE_SIZE = 8; /** The minimum value of "asyncMaxQueueSize" is 0. */ @@ -1871,7 +1838,11 @@ public interface DistributionConfig extends Config, LogConfig { /** The maximum value of "asyncMaxQueueSize" is 1024. */ public static final int MAX_ASYNC_MAX_QUEUE_SIZE = 1024; + /** The name of the "asyncMaxQueueSize" property */ + @ConfigAttribute(type=Integer.class, min=MIN_ASYNC_MAX_QUEUE_SIZE, max=MAX_ASYNC_MAX_QUEUE_SIZE) + public static final String ASYNC_MAX_QUEUE_SIZE_NAME = "async-max-queue-size"; /** @since 5.7 */ + @ConfigAttribute(type=String.class) public static final String CLIENT_CONFLATION_PROP_NAME = "conflate-events"; /** @since 5.7 */ public static final String CLIENT_CONFLATION_PROP_VALUE_DEFAULT = "server"; @@ -1882,11 +1853,14 @@ public interface DistributionConfig extends Config, LogConfig { /** @since 9.0 */ + @ConfigAttribute(type=Boolean.class) public static final String DISTRIBUTED_TRANSACTIONS_NAME = "distributed-transactions"; public static final boolean DEFAULT_DISTRIBUTED_TRANSACTIONS = false; + @ConfigAttributeGetter(name=DISTRIBUTED_TRANSACTIONS_NAME) public boolean getDistributedTransactions(); + @ConfigAttributeSetter(name=DISTRIBUTED_TRANSACTIONS_NAME) public void setDistributedTransactions(boolean value); /** @@ -1895,6 +1869,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @since 5.7 */ + @ConfigAttributeGetter(name=CLIENT_CONFLATION_PROP_NAME) public String getClientConflation(); /** * Sets the value of the "durable-client-id" * property. */ + @ConfigAttributeGetter(name=DURABLE_CLIENT_ID_NAME) public String getDurableClientId(); /** @@ -1918,16 +1893,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#durable-client-id">"durable-client-id" * property. */ + @ConfigAttributeSetter(name=DURABLE_CLIENT_ID_NAME) public void setDurableClientId(String durableClientId); - /** - * Returns true if the value of the durableClientId attribute can currently - * be modified. Some attributes can not be modified while the system is - * running. - */ - public boolean isDurableClientIdModifiable(); - /** The name of the "durableClientId" property */ + @ConfigAttribute(type=String.class) public static final String DURABLE_CLIENT_ID_NAME = "durable-client-id"; /** @@ -1941,6 +1911,7 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#durable-client-timeout">"durable-client-timeout" * property. */ + @ConfigAttributeGetter(name=DURABLE_CLIENT_TIMEOUT_NAME) public int getDurableClientTimeout(); /** @@ -1948,16 +1919,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#durable-client-timeout">"durable-client-timeout" * property. */ + @ConfigAttributeSetter(name=DURABLE_CLIENT_TIMEOUT_NAME) public void setDurableClientTimeout(int durableClientTimeout); - /** - * Returns true if the value of the durableClientTimeout attribute can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isDurableClientTimeoutModifiable(); - /** The name of the "durableClientTimeout" property */ + @ConfigAttribute(type=Integer.class) public static final String DURABLE_CLIENT_TIMEOUT_NAME = "durable-client-timeout"; /** @@ -1970,6 +1936,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user module name for client authentication initializer in "security-client-auth-init" */ + @ConfigAttributeGetter(name=SECURITY_CLIENT_AUTH_INIT_NAME) public String getSecurityClientAuthInit(); /** @@ -1977,16 +1944,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-client-auth-init">"security-client-auth-init" * property. */ + @ConfigAttributeSetter(name=SECURITY_CLIENT_AUTH_INIT_NAME) public void setSecurityClientAuthInit(String attValue); - /** - * Returns true if the value of the authentication initializer method name can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityClientAuthInitModifiable(); - /** The name of user defined method name for "security-client-auth-init" property*/ + @ConfigAttribute(type=String.class) public static final String SECURITY_CLIENT_AUTH_INIT_NAME = "security-client-auth-init"; /** @@ -1999,6 +1961,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user module name authenticating client credentials in "security-client-authenticator" */ + @ConfigAttributeGetter(name=SECURITY_CLIENT_AUTHENTICATOR_NAME) public String getSecurityClientAuthenticator(); /** @@ -2006,16 +1969,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-client-authenticator">"security-client-authenticator" * property. */ + @ConfigAttributeSetter(name=SECURITY_CLIENT_AUTHENTICATOR_NAME) public void setSecurityClientAuthenticator(String attValue); - /** - * Returns true if the value of the authenticating method name can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityClientAuthenticatorModifiable(); - /** The name of factory method for "security-client-authenticator" property */ + @ConfigAttribute(type=String.class) public static final String SECURITY_CLIENT_AUTHENTICATOR_NAME = "security-client-authenticator"; /** @@ -2028,6 +1986,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns name of algorithm to use for Diffie-Hellman key exchange "security-client-dhalgo" */ + @ConfigAttributeGetter(name=SECURITY_CLIENT_DHALGO_NAME) public String getSecurityClientDHAlgo(); /** @@ -2035,18 +1994,14 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-client-dhalgo">"security-client-dhalgo" * property. */ + @ConfigAttributeSetter(name=SECURITY_CLIENT_DHALGO_NAME) public void setSecurityClientDHAlgo(String attValue); /** - * Returns true if the value of the Diffie-Hellman algorithm can currently be - * modified. Some attributes can not be modified while the system is running. - */ - public boolean isSecurityClientDHAlgoModifiable(); - - /** * The name of the Diffie-Hellman symmetric algorithm "security-client-dhalgo" * property. */ + @ConfigAttribute(type=String.class) public static final String SECURITY_CLIENT_DHALGO_NAME = "security-client-dhalgo"; /** @@ -2061,6 +2016,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user defined method name for peer authentication initializer in "security-peer-auth-init" */ + @ConfigAttributeGetter(name=SECURITY_PEER_AUTH_INIT_NAME) public String getSecurityPeerAuthInit(); /** @@ -2068,16 +2024,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-peer-auth-init">"security-peer-auth-init" * property. */ + @ConfigAttributeSetter(name=SECURITY_PEER_AUTH_INIT_NAME) public void setSecurityPeerAuthInit(String attValue); - /** - * Returns true if the value of the AuthInit method name can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityPeerAuthInitModifiable(); - /** The name of user module for "security-peer-auth-init" property*/ + @ConfigAttribute(type=String.class) public static final String SECURITY_PEER_AUTH_INIT_NAME = "security-peer-auth-init"; /** @@ -2090,6 +2041,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user defined method name authenticating peer's credentials in "security-peer-authenticator" */ + @ConfigAttributeGetter(name=SECURITY_PEER_AUTHENTICATOR_NAME) public String getSecurityPeerAuthenticator(); /** @@ -2097,16 +2049,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-peer-authenticator">"security-peer-authenticator" * property. */ + @ConfigAttributeSetter(name=SECURITY_PEER_AUTHENTICATOR_NAME) public void setSecurityPeerAuthenticator(String attValue); - /** - * Returns true if the value of the security module name can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityPeerAuthenticatorModifiable(); - /** The name of user defined method for "security-peer-authenticator" property*/ + @ConfigAttribute(type=String.class) public static final String SECURITY_PEER_AUTHENTICATOR_NAME = "security-peer-authenticator"; /** @@ -2119,6 +2066,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user module name authorizing client credentials in "security-client-accessor" */ + @ConfigAttributeGetter(name=SECURITY_CLIENT_ACCESSOR_NAME) public String getSecurityClientAccessor(); /** @@ -2126,9 +2074,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-client-accessor">"security-client-accessor" * property. */ + @ConfigAttributeSetter(name=SECURITY_CLIENT_ACCESSOR_NAME) public void setSecurityClientAccessor(String attValue); /** The name of the factory method for "security-client-accessor" property */ + @ConfigAttribute(type=String.class) public static final String SECURITY_CLIENT_ACCESSOR_NAME = "security-client-accessor"; /** @@ -2141,6 +2091,7 @@ public interface DistributionConfig extends Config, LogConfig { * Returns user module name authorizing client credentials in "security-client-accessor-pp" */ + @ConfigAttributeGetter(name=SECURITY_CLIENT_ACCESSOR_PP_NAME) public String getSecurityClientAccessorPP(); /** @@ -2148,9 +2099,11 @@ public interface DistributionConfig extends Config, LogConfig { * href="../DistributedSystem.html#security-client-accessor-pp">"security-client-accessor-pp" * property. */ + @ConfigAttributeSetter(name=SECURITY_CLIENT_ACCESSOR_PP_NAME) public void setSecurityClientAccessorPP(String attValue); /** The name of the factory method for "security-client-accessor-pp" property */ + @ConfigAttribute(type=String.class) public static final String SECURITY_CLIENT_ACCESSOR_PP_NAME = "security-client-accessor-pp"; /** @@ -2164,6 +2117,7 @@ public interface DistributionConfig extends Config, LogConfig { * * @return the current security log-level */ + @ConfigAttributeGetter(name=SECURITY_LOG_LEVEL_NAME) public int getSecurityLogLevel(); /** @@ -2172,19 +2126,16 @@ public interface DistributionConfig extends Config, LogConfig { * @param level * the new security log-level */ + @ConfigAttributeSetter(name=SECURITY_LOG_LEVEL_NAME) public void setSecurityLogLevel(int level); /** - * Returns true if the value of the logLevel attribute can currently be - * modified. Some attributes can not be modified while the system is running. - */ - public boolean isSecurityLogLevelModifiable(); - - /** * The name of "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) public static final String SECURITY_LOG_LEVEL_NAME = "security-log-level"; /** @@ -2192,6 +2143,7 @@ public interface DistributionConfig extends Config, LogConfig { * * @return null if logging information goes to standard out */ + @ConfigAttributeGetter(name=SECURITY_LOG_FILE_NAME) public File getSecurityLogFile(); /** @@ -2209,19 +2161,14 @@ public interface DistributionConfig extends Config, LogConfig { * if the set failure is caused by an error when writing to * the system's configuration file. */ + @ConfigAttributeSetter(name=SECURITY_LOG_FILE_NAME) public void setSecurityLogFile(File value); /** - * Returns true if the value of the security-log-file attribute - * can currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityLogFileModifiable(); - - /** * The name of the "security-log-file" property. This property is the path of * the file where security related messages are logged. */ + @ConfigAttribute(type=File.class) public static final String SECURITY_LOG_FILE_NAME = "security-log-file"; /** @@ -2238,6 +2185,7 @@ public interface DistributionConfig extends Config, LogConfig { * * @return Timeout in milliseconds. */ + @ConfigAttributeGetter(name=SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME) public int getSecurityPeerMembershipTimeout(); /** @@ -2245,17 +2193,9 @@ public interface DistributionConfig extends Config, LogConfig { * than peer handshake timeout. * @param attValue */ + @ConfigAttributeSetter(name=SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME) public void setSecurityPeerMembershipTimeout(int attValue); - /** - * Returns true if the value of the peer membership timeout attribute can currently be modified. - * Some attributes can not be modified while the system is running. - * @return true if timeout is modifiable. - */ - public boolean isSecurityPeerMembershipTimeoutModifiable(); - - /** The name of the peer membership check timeout property */ - public static final String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = "security-peer-verifymember-timeout"; /** * The default peer membership check timeout is 1 second. @@ -2268,6 +2208,9 @@ public interface DistributionConfig extends Config, LogConfig { */ public static final 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) + public static final String SECURITY_PEER_VERIFYMEMBER_TIMEOUT_NAME = "security-peer-verifymember-timeout"; /** * Returns all properties starting with "security-". @@ -2288,13 +2231,6 @@ public interface DistributionConfig extends Config, LogConfig { */ public void setSecurity(String attName, String attValue); - /** - * Returns true if the value of the security attributes can - * currently be modified. Some attributes can not be modified while the - * system is running. - */ - public boolean isSecurityModifiable(); - /** For the "security-" prefixed properties */ public static final String SECURITY_PREFIX_NAME = "security-"; @@ -2322,6 +2258,7 @@ public interface DistributionConfig extends Config, LogConfig { /** * The property decides whether to remove unresponsive client from the server. */ + @ConfigAttribute(type=Boolean.class) public static final String REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME = "remove-unresponsive-client"; /** @@ -2334,6 +2271,7 @@ public interface DistributionConfig extends Config, LogConfig { * property. * @since 6.0 */ + @ConfigAttributeGetter(name=REMOVE_UNRESPONSIVE_CLIENT_PROP_NAME) public boolean getRemoveUnresponsiveClient(); /** * Sets the value of the groups attribute can currently - * be modified. - * Some attributes can not be modified while the system is running. - * @since 7.0 - */ - public boolean isGroupsModifiable(); + /** The name of the "groups" property * @since 7.0 */ + @ConfigAttribute(type=String.class) public static final String GROUPS_NAME = "groups"; /** * The default groups. @@ -2461,40 +2406,53 @@ public interface DistributionConfig extends Config, LogConfig { /** Any cl