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

Fred Krone updated GEODE-2721:
------------------------------
    Description: 
Client's should be enabled to create server-side regions.  Currently, regions 
must be created either via gfsh or cache.xml, then you must PROXY into these 
existing regions.  We're assuming here that the developer knows about the 
existing region already, or can create it via gfsh or cache.xml.  If the Region 
does exist, fine.  But if it doesn't it seems redundant to ask a developer to 
go create it elsewhere-- why not just create/get a new one it programmatically 
at that point?  

ACCEPTANCE:
Server side region created from client.

Current way (gets a handle to a client):
ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 
10334).create();
Region clientRegion = 
cache.createClientRegionFactory(ClientRegionShortcut.PROXY).create("region1");

New way (creating the server side region programmatically):
ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 
10334).create();
Region region = cache.createRegion("region1");







  was:
This is an overarching story for new client API work.  

AC: can create, edit and delete a server-side region from the client.
AC: can easy perform CRUD operations on entries on a region.
AC: can get collection from a server side region (getKeys(), etc))


> Create on-server regions from the client
> ----------------------------------------
>
>                 Key: GEODE-2721
>                 URL: https://issues.apache.org/jira/browse/GEODE-2721
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Fred Krone
>
> Client's should be enabled to create server-side regions.  Currently, regions 
> must be created either via gfsh or cache.xml, then you must PROXY into these 
> existing regions.  We're assuming here that the developer knows about the 
> existing region already, or can create it via gfsh or cache.xml.  If the 
> Region does exist, fine.  But if it doesn't it seems redundant to ask a 
> developer to go create it elsewhere-- why not just create/get a new one it 
> programmatically at that point?  
> ACCEPTANCE:
> Server side region created from client.
> Current way (gets a handle to a client):
> ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 
> 10334).create();
> Region clientRegion = 
> cache.createClientRegionFactory(ClientRegionShortcut.PROXY).create("region1");
> New way (creating the server side region programmatically):
> ClientCache cache = new ClientCacheFactory().addPoolLocator("localhost", 
> 10334).create();
> Region region = cache.createRegion("region1");



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

Reply via email to