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 9FA21200C06 for ; Fri, 13 Jan 2017 00:36:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9E3C4160B4C; Thu, 12 Jan 2017 23:36:47 +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 E61AC160B40 for ; Fri, 13 Jan 2017 00:36:46 +0100 (CET) Received: (qmail 52858 invoked by uid 500); 12 Jan 2017 23:36:46 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 52846 invoked by uid 99); 12 Jan 2017 23:36:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2017 23:36:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6A63B1803A5 for ; Thu, 12 Jan 2017 23:36:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NbJIwsDLSvA3 for ; Thu, 12 Jan 2017 23:36:43 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7EE155F4AE for ; Thu, 12 Jan 2017 23:36:42 +0000 (UTC) Received: by mail-io0-f179.google.com with SMTP id j18so31378972ioe.2 for ; Thu, 12 Jan 2017 15:36:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XIjP7Zq2MXpzUO1qtFERl792Uked+Vx/2XxcqwLT1eA=; b=lOWJOnV5KthIzvxUReZmmiwWpzgqGxafadSAzfnK5kvTpUirkiNOqibeCh+ZcUU1td BEECxmRCv6jwELljTahAn7riDPiaEDLDDrJ2U2Qkv1G04kHzKk1IkKgCbtMMWtP1GA3D I/EF5eto2GxKoFEYiZ0DyDwf5WoHU7LhhT2NEREMGTTq7op0tlkTj/fL6ORYKHFq3YfQ k5Zob2UOc3NbL/7RsK16MljZOeF/kZ4nGmbCjPRkPwRYAphCXft+C4FVkY4Vs/DWRZy5 oVNN0KL5hawPNtjtpCl8CiQBFgzDTD5BpzZ8iiDY2fU/Drevn76x/Bm9FAuX2csRb8Tl UTRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XIjP7Zq2MXpzUO1qtFERl792Uked+Vx/2XxcqwLT1eA=; b=GK/Zjur6owGFpmfVqWUlIbYMwAKxnql8alBu0+fslezHkUvZlI3/h3gJ7I1sYCh3Hr f5vkTqP2g+ZR5Ug/iWEU+Tt8V1MGABxYWFmsbzThu5o9jX0xZtvn5hXn0iSsHl0JKv5B 3ujQdaMzFnkfChqEaCwUbNQOaKpM6/Um64da+idDGl6su2MEBTOxY7EObMvT3uQ4Jrto BOQd1wXbZAFKLu/bM/BClT06uDZ/fau0kH4nsjsI+FNWa1QVJpuUKoLnNhFsDobg5lxN IFIupHBsKVOpby8nDq8pUCZc6Avgw1EOjoPVkbNzkgiBFkV+VirqlhBI4tT/ZkvZblRl OV7Q== X-Gm-Message-State: AIkVDXJXtrU/qYo256cyFuZFvv3o6cHJE4RzjMSKFsJW1kZ3g7xXTdGAUkuEQFpROHlKSYBbdFwXLPhW90Im8A== X-Received: by 10.107.130.74 with SMTP id e71mr13936559iod.27.1484264198503; Thu, 12 Jan 2017 15:36:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.65.34 with HTTP; Thu, 12 Jan 2017 15:36:08 -0800 (PST) From: Valentin Kulichenko Date: Thu, 12 Jan 2017 15:36:08 -0800 Message-ID: Subject: Configuring Cassandra persistence from code To: Igor Rudyak , dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a113ed0da4e05d20545ee3050 archived-at: Thu, 12 Jan 2017 23:36:47 -0000 --001a113ed0da4e05d20545ee3050 Content-Type: text/plain; charset=UTF-8 Hi Igor, I just noticed that KeyValuePersistenceSettings class required to configure Cassandra store can be created only based on XML file of a special format. If so, this looks like a pretty serious limitation. First of all, when configuring such cache, user has to know both Spring configuration format and this specific format for persistence. In other words, persistence configuration seems to be weirdly separated from all other configurations in a separate file with a different format. But most importantly, what if user wants to create a cache dynamically and doesn't know configuration in advance? How are they supposed to create this special XML in this case? Is my understanding correct? If so, I think we should add standard getters and setters to KeyValuePersistenceSettings. This will make it compatible with Spring and will allow to create it dynamically in code. Agree? -Val --001a113ed0da4e05d20545ee3050--