Ryan McMahon created GEODE-5117:
-----------------------------------

             Summary: Favor SetPropName() methods over Set(string, string) for 
system properties
                 Key: GEODE-5117
                 URL: https://issues.apache.org/jira/browse/GEODE-5117
             Project: Geode
          Issue Type: Improvement
          Components: native client
            Reporter: Ryan McMahon


Currently, system properties can be specified programmatically using the 
Set(key, value) method on the CacheFactory.  This leaves room for error because 
its possible to enter a key that doesn't exist or a key that has been 
deprecated.  Also, it is not consistent with our Region/Cache settings API 
which uses methods for each property e.g. SetRegionTimeToLive().

It would be better to have a method for each supported system property e.g. 
SetLogLevel() and SetCacheXml().  That way, deprecating system settings is 
enforced at compile time, and the system settings API is consistent with the 
Region/Cache settings API.  Also it is more self-documenting than the current 
API.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to