Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C329BD749 for ; Fri, 9 Nov 2012 22:57:38 +0000 (UTC) Received: (qmail 47163 invoked by uid 500); 9 Nov 2012 22:57:38 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 47142 invoked by uid 500); 9 Nov 2012 22:57:38 -0000 Mailing-List: contact commits-help@helix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.incubator.apache.org Delivered-To: mailing list commits@helix.incubator.apache.org Received: (qmail 47134 invoked by uid 99); 9 Nov 2012 22:57:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 22:57:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 22:57:34 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8ED842388CB5; Fri, 9 Nov 2012 22:55:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1407678 [45/47] - in /incubator/helix/site-content: ./ apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/helix/ apidocs/reference/org/apache/helix/alerts/ apidocs/reference/org/apache/helix/controller/ apidocs/reference/org/a... Date: Fri, 09 Nov 2012 22:55:15 -0000 To: commits@helix.incubator.apache.org From: olamy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121109225550.8ED842388CB5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: incubator/helix/site-content/xref/org/apache/helix/tools/LocalZKServer.html URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/tools/LocalZKServer.html?rev=1407678&r1=1407677&r2=1407678&view=diff ============================================================================== --- incubator/helix/site-content/xref/org/apache/helix/tools/LocalZKServer.html (original) +++ incubator/helix/site-content/xref/org/apache/helix/tools/LocalZKServer.html Fri Nov 9 22:54:26 2012 @@ -36,57 +36,56 @@ 26 /** 27 * Provides ability to start zookeeper locally on a particular port 28 * -29 * @author kgopalak -30 * -31 */ -32 public class LocalZKServer -33 { -34 public void start(int port, String dataDir, String logDir) throws Exception -35 { -36 -37 IDefaultNameSpace defaultNameSpace = new IDefaultNameSpace() -38 { -39 -40 @Override -41 public void createDefaultNameSpace(ZkClient zkClient) -42 { -43 -44 } -45 }; -46 ZkServer server = new ZkServer(dataDir, logDir, defaultNameSpace, port); -47 server.start(); -48 Thread.currentThread().join(); -49 } -50 -51 public static void main(String[] args) throws Exception -52 { -53 int port = 2199; -54 String rootDir = System.getProperty("java.io.tmpdir") + "/zk-helix/" -55 + System.currentTimeMillis(); -56 String dataDir = rootDir + "/dataDir"; -57 String logDir = rootDir + "/logDir"; -58 -59 if (args.length > 0) -60 { -61 port = Integer.parseInt(args[0]); -62 } -63 if (args.length > 1) -64 { -65 dataDir = args[1]; -66 logDir = args[1]; -67 } -68 -69 if (args.length > 2) -70 { -71 logDir = args[2]; -72 } -73 System.out.println("Starting Zookeeper locally at port:" + port -74 + " dataDir:" + dataDir + " logDir:" + logDir); -75 LocalZKServer localZKServer = new LocalZKServer(); -76 -77 localZKServer.start(port, dataDir, logDir); -78 } -79 } +29 * +30 */ +31 public class LocalZKServer +32 { +33 public void start(int port, String dataDir, String logDir) throws Exception +34 { +35 +36 IDefaultNameSpace defaultNameSpace = new IDefaultNameSpace() +37 { +38 +39 @Override +40 public void createDefaultNameSpace(ZkClient zkClient) +41 { +42 +43 } +44 }; +45 ZkServer server = new ZkServer(dataDir, logDir, defaultNameSpace, port); +46 server.start(); +47 Thread.currentThread().join(); +48 } +49 +50 public static void main(String[] args) throws Exception +51 { +52 int port = 2199; +53 String rootDir = System.getProperty("java.io.tmpdir") + "/zk-helix/" +54 + System.currentTimeMillis(); +55 String dataDir = rootDir + "/dataDir"; +56 String logDir = rootDir + "/logDir"; +57 +58 if (args.length > 0) +59 { +60 port = Integer.parseInt(args[0]); +61 } +62 if (args.length > 1) +63 { +64 dataDir = args[1]; +65 logDir = args[1]; +66 } +67 +68 if (args.length > 2) +69 { +70 logDir = args[2]; +71 } +72 System.out.println("Starting Zookeeper locally at port:" + port +73 + " dataDir:" + dataDir + " logDir:" + logDir); +74 LocalZKServer localZKServer = new LocalZKServer(); +75 +76 localZKServer.start(port, dataDir, logDir); +77 } +78 }