[ 
https://issues.apache.org/jira/browse/GEODE-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989574#comment-15989574
 ] 

Darrel Schneider commented on GEODE-2845:
-----------------------------------------

Another option would be to add more "OnServer" methods to Region. We already 
have "keySet" and "keySetOnServer".
So for other methods that currently limit themselves to the local data we could 
add "OnServer" flavors. For example "sizeOnServer".
Given a proxy region named "r" I think doing this:
  r.sizeOnServer();
is easier than this:
  r.getServerView().size();
At least one advantage of having  "OnServer" variants of the methods is that 
when you are in your IDE and start typing "siz..." you will see two options. 
This might help you to stop and think about which size you want.


> Clients need Region to have views of local and server regions for consistency 
> checks
> ------------------------------------------------------------------------------------
>
>                 Key: GEODE-2845
>                 URL: https://issues.apache.org/jira/browse/GEODE-2845
>             Project: Geode
>          Issue Type: Improvement
>          Components: regions
>            Reporter: Fred Krone
>            Assignee: Darrel Schneider
>
> Example: 
> CacheStatistics ... Region.getLocalCacheStatistics()
> CacheStatistics ... Region.getServerCacheStatistics()
> Or Region.getLocalView() and Region.getServerView()
> For Caching_Proxy would have a local view   PROXY regions it would be null or 
> empty.  



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to