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 CB113200AEE for ; Tue, 3 May 2016 17:34:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CA9831609F6; Tue, 3 May 2016 17:34:14 +0200 (CEST) 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 18CAF1609A9 for ; Tue, 3 May 2016 17:34:13 +0200 (CEST) Received: (qmail 29914 invoked by uid 500); 3 May 2016 15:34:13 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 29874 invoked by uid 99); 3 May 2016 15:34:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 15:34:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0E5362C14F4 for ; Tue, 3 May 2016 15:34:13 +0000 (UTC) Date: Tue, 3 May 2016 15:34:13 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-322) Schema support - path validation and documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 May 2016 15:34:15 -0000 [ https://issues.apache.org/jira/browse/CURATOR-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15268903#comment-15268903 ] ASF GitHub Bot commented on CURATOR-322: ---------------------------------------- Github user Randgalt commented on a diff in the pull request: https://github.com/apache/curator/pull/147#discussion_r61902266 --- Diff: curator-framework/src/main/java/org/apache/curator/framework/api/ErrorListenerReconfigBuilderMain.java --- @@ -1,3 +1,21 @@ +/** --- End diff -- This is not actually part of this PR. I guess the license was missing on this file. Might as well just leave it here. > Schema support - path validation and documentation > -------------------------------------------------- > > Key: CURATOR-322 > URL: https://issues.apache.org/jira/browse/CURATOR-322 > Project: Apache Curator > Issue Type: New Feature > Components: Framework > Affects Versions: 3.1.0 > Reporter: Jordan Zimmerman > Assignee: Jordan Zimmerman > Fix For: TBD > > > ZooKeeper applications are heavily dependent on correct usage of paths, watchers, ZNode data, etc. Currently, there is no mechanism for validating and documenting this. It would be nice to have some kind of schema system that allows for this. > This issue provides several items of functionality: a) ZNode path documentation; b) ZNode path validation; c) keyed reference to ZNode paths. Both items are defined in a new class, Schema. A Curator Schema specifies a ZNode path (or regex pattern), documentation for that path, and the operations that are allowed on that path. Additionally, a set of Schema objects are collected into a SchemaSet object that allows any Schema (and thereby its path) to be retrieved via a symbolic name. This should make path management in ZK applications easier. Lastly, a utility is provided to load SchemaSets from a file/stream in JSON format. -- This message was sent by Atlassian JIRA (v6.3.4#6332)