You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Owen Nichols (JIRA)" <ji...@apache.org> on 2019/04/24 22:24:07 UTC

[jira] [Closed] (GEODE-6505) Use Enum instead of String for RegionConfig

     [ https://issues.apache.org/jira/browse/GEODE-6505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Owen Nichols closed GEODE-6505.
-------------------------------

> Use Enum instead of String for RegionConfig
> -------------------------------------------
>
>                 Key: GEODE-6505
>                 URL: https://issues.apache.org/jira/browse/GEODE-6505
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Peter Tran
>            Priority: Major
>             Fix For: 1.9.0
>
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> h1. Why
> For the java developer, especially for newbie of gemfire/geode, it is confusing to get exact type of region correct.
> *As Java developer*
> *I want* there to be a pre-defined region type, such as constant interface, enum or otherwise
> *So that* I can refer to it and pass it as a parameter in my code to get quick feedback if I misspell something.
> h2. Acceptance Criteria
> {code}
> Scenario: auto-complete like functionality
> Given I am creating a region via the RegionConfig class
> When I use the method .setType()
> Then there is a pre-defined region type for me to choose from with one of the following options (see setShortcutAttributes on RegionConfig.class)
> LOCAL,LOCAL_HEAP_LRU,LOCAL_OVERFLOW,LOCAL_PERSISTENT,LOCAL_PERSISTENT_OVERFLOW,PARTITION,PARTITION_HEAP_LRU,PARTITION_OVERFLOW,PARTITION_PERSISTENT,PARTITION_PERSISTENT_OVERFLOW,PARTITION_PROXY,PARTITION_PROXY_REDUNDANT,PARTITION_REDUNDANT,PARTITION_REDUNDANT_HEAP_LRU,PARTITION_REDUNDANT_OVERFLOW,PARTITION_REDUNDANT_PERSISTENT,PARTITION_REDUNDANT_PERSISTENT_OVERFLOW,REPLICATE,REPLICATE_HEAP_LRU,REPLICATE_OVERFLOW,REPLICATE_PERSISTENT,REPLICATE_PERSISTENT_OVERFLOW,REPLICATE_PROXY
>    AND an example usage is provided on the wiki{code}
> {code}
> Scenario: Wiki
> Given I am looking at our wiki page
> When I review the example code for create region
> Then I am able to see all of the possible region types and how to properly specify each.
> {code}



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