Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 73639 invoked from network); 28 Oct 2010 23:43:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 23:43:21 -0000 Received: (qmail 23015 invoked by uid 500); 28 Oct 2010 23:43:21 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22971 invoked by uid 500); 28 Oct 2010 23:43:21 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 22964 invoked by uid 99); 28 Oct 2010 23:43:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 23:43:21 +0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RISK_FREE_NOSUB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 23:43:13 +0000 Received: by wwe15 with SMTP id 15so2622597wwe.1 for ; Thu, 28 Oct 2010 16:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=nZobAUlrkkcP162UPeysRBEYdxotenbKsxafbJlPKRs=; b=INx0nuCdmSxSveOw+Sao2rIvQQYi3/bYE0d/PBnpUBvCc4aRUXN+HYqx71CMszs8dP Q5cA62xgfv6wteDyLwindAI9OmtnHVyO0safzUay9CIoeyRUFFT+lnp1XMSEm3dODlvQ WzLV9mpOTKN5zMUiu9SJMahe0eLLMLzrK919I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=qTPf4zqPtYZqf6cJ4mFGHJe9I0z/Jd/lSQrdxj0UivJ2P4cddFFWZYDaIjVTBpJ5+M DpsKNQDCjivoW0gF4Gh7xbgJr0ZVlOgDHk569gfWGrz2WM3gDYElXOFwG3cH0OSMdyKX qW29d4H/6fWdjkfxCp2ZT+eH55rNQKROlXTJI= Received: by 10.216.242.78 with SMTP id h56mr5324798wer.47.1288309372082; Thu, 28 Oct 2010 16:42:52 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net [78.192.106.184]) by mx.google.com with ESMTPS id x15sm1129200weq.7.2010.10.28.16.42.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 16:42:51 -0700 (PDT) Message-ID: <4CCA0A79.9090601@gmail.com> Date: Fri, 29 Oct 2010 01:42:49 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Layout, heads up Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi ! So with your feedback, I was able to wire something more decent. Some few notes : - As Kiran suggested, we will use the AT OIDs to name indexes. There is no risk of collision, and as he has added some .txt file beside that helps the end user (or admin) to know what is the index associated with an OID, it's a no brainer : - The InstanceLayout class now contains the list of directories we can use, with the associated setter/getter. This class has been added into the DirectoryService class, and it's easy to use : directoryService.getInstanceLayout().getLogDirectory() fot instance, to get the LOG directory. Here are the available methods : getInstanceDirectory() getConfDirectory() getLogDirectory() getPartitionsDirectory() (replacing the getWorkingDirectory method) getRunDirectory() Some files are created automatically : - the lock file, which will be stored in getInstanceDirectory() - the cache will be stored in getRunDirectory() - the Journal will be stored in getLogDirectory() - the ChangeLog files, when on disk, will be stored in getLogDirectory() This is yet a proposal, but we can change those defaults. So far, I have the server starting and working, I still have to run tests to see what's could have gone wrong. Will do that tomorrow ! -- Regards, Cordialement, Emmanuel L�charny www.iktek.com