Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9BCA200CAE for ; Wed, 21 Jun 2017 19:05:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8097160BD5; Wed, 21 Jun 2017 17:05:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ED37D160BD0 for ; Wed, 21 Jun 2017 19:05:08 +0200 (CEST) Received: (qmail 40377 invoked by uid 500); 21 Jun 2017 17:05:08 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 40309 invoked by uid 99); 21 Jun 2017 17:05:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2017 17:05:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6BF09CEF87 for ; Wed, 21 Jun 2017 17:05:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DZNUpcMQejMA for ; Wed, 21 Jun 2017 17:05:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 91AF45FB17 for ; Wed, 21 Jun 2017 17:05:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2F313E0D1B for ; Wed, 21 Jun 2017 17:05:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AE7B221941 for ; Wed, 21 Jun 2017 17:05:01 +0000 (UTC) Date: Wed, 21 Jun 2017 17:05:01 +0000 (UTC) From: "Fred Krone (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GEODE-215) Provide ability to create regions from client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Jun 2017 17:05:09 -0000 [ https://issues.apache.org/jira/browse/GEODE-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fred Krone updated GEODE-215: ----------------------------- Labels: storage_1 (was: ) > Provide ability to create regions from client > --------------------------------------------- > > Key: GEODE-215 > URL: https://issues.apache.org/jira/browse/GEODE-215 > Project: Geode > Issue Type: Improvement > Components: docs, regions > Reporter: Swapnil Bawaskar > Labels: storage_1 > > Currently regions on the server are created through gfsh or by declaring them in cache.xml. The API to create regions on client, creates regions only on the client which then connects to an existing region on the server with the same name. > h4. New API > The improvement proposed here is to provide an API from the client to create regions on the server. > The current client API to create regions is: > {code} > clientCache.createClientRegionFactory(ClientRegionShortcut).create(); > {code} > For applications that embed GemFire servers, there is already an API to create regions on the servers: > {code} > cache.createRegionFactory(RegionShortcut).create(); > {code} > The clients should support this API so that it can create regions on the server. Since this method returns a Region, we should create a ClientRegionShortcut.PROXY region on the client. If a different region type is desired on the client, users can first use createClientRegionFactory() to create the region on the client followed by using createRegionFactory() to create the region on the server. > h4. Destroy Region > For destroying a region, we already have two APIs on the region destroyRegion() and localDestroyRegion(). > The clients could use destroyRegion() to destroy the region on the server and use localDestroyRegion() to destroy the region locally. > Currently, destroyRegion() is not distributed to others if the scope of the region is LOCAL (which is the case of client regions). > Although the proposal here will break backwards compatibility, I feel we should make this change to make the API more intuitive. -- This message was sent by Atlassian JIRA (v6.4.14#64029)