Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79F19973B for ; Tue, 27 Mar 2012 18:56:43 +0000 (UTC) Received: (qmail 94068 invoked by uid 500); 27 Mar 2012 18:56:43 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 93928 invoked by uid 500); 27 Mar 2012 18:56:42 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 93914 invoked by uid 99); 27 Mar 2012 18:56:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 18:56:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prakashr.ietf@gmail.com designates 209.85.215.42 as permitted sender) Received: from [209.85.215.42] (HELO mail-lpp01m010-f42.google.com) (209.85.215.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 18:56:35 +0000 Received: by lahl5 with SMTP id l5so212400lah.15 for ; Tue, 27 Mar 2012 11:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AQW5JnAgHA4Oj7m2iJnXkFfEKooXQ2zL17AhZT0ynOc=; b=RuRnTZFX9sa2T/QMEOasyBnw4/GF5DZs1T09bgFwEmbzoTJJX9URl7iwGNR/0K6stG sIHWqYR23x0uezEnB64oS1uWKJ9lUY7YtJrL2K4MzpuXnpuUDHaR9cbCoTlbFk3wW+3O QvJbN83eZ/wQZRzrSE4bEFm4JkvQhzSli0hPtBrq8lH0sEUPtABWsv8zZzxV4PMR6pl+ 2EUJoOg71ccw2OgxDs/k2buIUXFTm/xWBK453dobo81PBFwsoTW7Bvhuncj1tJ2RV75x RBlyDBJsJa++QEFOTYOz6HIEUxtdEp/hWjRoPJuBRtFkWBdaMEFBzxz9bilq5JZko5AX JRRQ== MIME-Version: 1.0 Received: by 10.152.103.12 with SMTP id fs12mr19402225lab.47.1332874573595; Tue, 27 Mar 2012 11:56:13 -0700 (PDT) Received: by 10.112.144.133 with HTTP; Tue, 27 Mar 2012 11:56:13 -0700 (PDT) Date: Tue, 27 Mar 2012 11:56:13 -0700 Message-ID: Subject: Using zookeeper server as library From: Prakash To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=f46d0407129d7d425104bc3e0b05 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0407129d7d425104bc3e0b05 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I have a requirement, where my servers have to store a data structure similar to the zookepeer trees. Instead of writing it from scratch, i was wondering if i can just leverage the existing zookeeper code. The idea is to just link to the zookeeper.jar and use it locally via function calls. I dont need the client / server communication part. I dont need the replication part. I just need the code to create / delete nodes etc in memory. Persisting it in the log is a plus if can just leverage that too. The JMX stuff would be a bonus. Before i go try to do this, i wanted to know if you guys had any thoughts on this or if there any gotchas i need to look for. Thanks, -Prakash --f46d0407129d7d425104bc3e0b05--