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 D8DCB100A0 for ; Wed, 18 Dec 2013 19:33:00 +0000 (UTC) Received: (qmail 66761 invoked by uid 500); 18 Dec 2013 19:33:00 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 66706 invoked by uid 500); 18 Dec 2013 19:32:59 -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 66698 invoked by uid 99); 18 Dec 2013 19:32:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Dec 2013 19:32:59 +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 (nike.apache.org: domain of marshall.mcmullen@gmail.com designates 209.85.128.44 as permitted sender) Received: from [209.85.128.44] (HELO mail-qe0-f44.google.com) (209.85.128.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Dec 2013 19:32:52 +0000 Received: by mail-qe0-f44.google.com with SMTP id nd7so99726qeb.31 for ; Wed, 18 Dec 2013 11:32:32 -0800 (PST) X-Received: by 10.224.167.15 with SMTP id o15mr56556930qay.96.1387395151935; Wed, 18 Dec 2013 11:32:31 -0800 (PST) Received: from mail-qc0-x231.google.com (mail-qc0-x231.google.com [2607:f8b0:400d:c01::231]) by mx.google.com with ESMTPSA id n14sm2721128qav.8.2013.12.18.11.32.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 11:32:30 -0800 (PST) Received: by mail-qc0-f177.google.com with SMTP id m20so94362qcx.8 for ; Wed, 18 Dec 2013 11:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SIONCYQYTHKx08+OAKOyVSO4aWU9Y26QmyfQgpG9er8=; b=0IYa32+q/ZsH71Dot4P+oavECozfqB6WVQGFcQBS1NdW/EPlnpIu7yXWxQyYz6tYa1 rwKu9q9SlTWGS1ZlTFzW5R4A5zTSxPxQW9a3WLxLljWbj7Q8B6s3Pchbowq6w467hi3K z3HlN6NFFjf4TpetocxfwtyfkIWShpyH/nowltUDTJ2if/uWEN2kMndgLjDI2S3MSIiy HmrxyFC2w/i424IeezdmOaxytcr+gU85n5WVzzfWK+q9FCASddskcgTgSUkEf6rDey5/ I8uAY1+a458fNxvfrPDBxBBewQvxU3WjL7ralUnEWou8TqfccpEN+M2TZxLel3+XkbSE WH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=SIONCYQYTHKx08+OAKOyVSO4aWU9Y26QmyfQgpG9er8=; b=bwAzAXUCVYhKUiqhwkTL37bcrD7wUZd+G3a2ZMQtFlskaToPzfcxGX0YReNYtvIYsG LoZ0P+8+rAqUxqUpCK0uLOr2bvCKOvuabBs7cO9pnPSNjtGJkf8uPKTx69jkL0IwFTxD S7LtbQ4o1a59kg77AvcfgUYvTD8bepnBiTdsEYTHeapdqVvG3Z9JTzLL4XV16Ic3Hy2g 59+FdGWctqBMCaSGV64pfcRz0nUYNhI2iJqmNlldVyhMW+gdNlVOqA4yUwl6meJ63WmR CuOJ3GqWto/G6/gXH+wAaQ/KyBzv8S/8t+g66wi2VY4mRUt1f/eJ0aD0q+t3fad721yb eVtw== X-Gm-Message-State: ALoCoQkfhjd6OEw41Nr43P5jACOwI0O5r13K44DnCtKHeaST50Z6hXzVj3FVh+lf0SzRBVCSuuEI MIME-Version: 1.0 X-Received: by 10.229.24.4 with SMTP id t4mr18421064qcb.13.1387395149837; Wed, 18 Dec 2013 11:32:29 -0800 (PST) Received: by 10.96.136.4 with HTTP; Wed, 18 Dec 2013 11:32:29 -0800 (PST) X-Originating-IP: [4.34.40.242] In-Reply-To: References: Date: Wed, 18 Dec 2013 12:32:29 -0700 Message-ID: Subject: Re: Server addresses in a cluster From: Marshall McMullen To: UserZooKeeper Content-Type: multipart/alternative; boundary=001a1133c12e11ea3804edd41b34 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133c12e11ea3804edd41b34 Content-Type: text/plain; charset=ISO-8859-1 I wrongly assumed there was a corresponding Java API for this but perhaps not. Worst case you can just "get /zookeeper/config". Here's the draft documentation: https://docs.google.com/a/zentire.com/document/d/1AF8pIfQbN5cKxe0c4cQ4_DW6ZjBJqSkyANcTGUwkzjc/edit On Wed, Dec 18, 2013 at 7:57 AM, Siman, Aleksandr wrote: > I am interested in Java API so I have looked into sources of ` > org.apache.zookeeper` v3.4.5 and have not found any `GetConfig`. > What I have found is only ` > javax.security.auth.login.Configuration.getConfiguration() `. > > -----Original Message----- > From: Marshall McMullen [mailto:marshall.mcmullen@gmail.com] > Sent: Wednesday, December 18, 2013 4:32 PM > To: UserZooKeeper > Subject: Re: Server addresses in a cluster > > There is a programmatic API to get the dynamic config: > > C: zoo_getconfig > Java: GetConfig > > > On Wed, Dec 18, 2013 at 7:04 AM, Siman, Aleksandr > wrote: > > > Hello! > > > > How to get list of server addresses in a cluster in runtime, the one > > that can be found in config file, like: > > server.1=localhost:2888:3888 > > server.2=localhost:2889:3889 > > server.3=localhost:2890:3890 > > > > Thank you! > > > > > > ________________________________ > > > > This e-mail and any attachment(s) are intended only for the > > recipient(s) named above and others who have been specifically > > authorized to receive them. They may contain confidential information. > > If you are not the intended recipient, please do not read this email or > its attachment(s). > > Furthermore, you are hereby notified that any dissemination, > > distribution or copying of this e-mail and any attachment(s) is > > strictly prohibited. If you have received this e-mail in error, please > > immediately notify the sender by replying to this e-mail and then > > delete this e-mail and any > > attachment(s) or copies thereof from your system. Thank you. > > > > ________________________________ > > This e-mail and any attachment(s) are intended only for the recipient(s) > named above and others who have been specifically authorized to receive > them. They may contain confidential information. If you are not the > intended recipient, please do not read this email or its attachment(s). > Furthermore, you are hereby notified that any dissemination, distribution > or copying of this e-mail and any attachment(s) is strictly prohibited. If > you have received this e-mail in error, please immediately notify the > sender by replying to this e-mail and then delete this e-mail and any > attachment(s) or copies thereof from your system. Thank you. > --001a1133c12e11ea3804edd41b34--