Return-Path: X-Original-To: apmail-zookeeper-commits-archive@www.apache.org Delivered-To: apmail-zookeeper-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D448DDEC for ; Mon, 19 Nov 2012 00:38:34 +0000 (UTC) Received: (qmail 75925 invoked by uid 500); 19 Nov 2012 00:38:34 -0000 Delivered-To: apmail-zookeeper-commits-archive@zookeeper.apache.org Received: (qmail 75893 invoked by uid 500); 19 Nov 2012 00:38:34 -0000 Mailing-List: contact commits-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ Delivered-To: mailing list commits@zookeeper.apache.org Received: (qmail 75883 invoked by uid 99); 19 Nov 2012 00:38:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 00:38:34 +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; Mon, 19 Nov 2012 00:38:29 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id F002C2388C92 for ; Mon, 19 Nov 2012 00:37:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r838787 [27/42] - in /websites/staging/zookeeper/trunk/content: ./ bookkeeper/docs/trunk/ doc/r3.4.5/ doc/r3.4.5/api/ doc/r3.4.5/api/org/ doc/r3.4.5/api/org/apache/ doc/r3.4.5/api/org/apache/zookeeper/ doc/r3.4.5/api/org/apache/zookeeper/cl... Date: Mon, 19 Nov 2012 00:36:48 -0000 To: commits@zookeeper.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121119003711.F002C2388C92@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/QuorumPeerMain.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/QuorumPeerMain.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/QuorumPeerMain.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,305 @@ + + + + + + +QuorumPeerMain (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper.server.quorum +
+Class QuorumPeerMain

+
+java.lang.Object
+  extended by org.apache.zookeeper.server.quorum.QuorumPeerMain
+
+
+
+
public class QuorumPeerMain
extends Object
+ + +

+

Configuration file

+ + When the main() method of this class is used to start the program, the first + argument is used as a path to the config file, which will be used to obtain + configuration information. This file is a Properties file, so keys and + values are separated by equals (=) and the key/value pairs are separated + by new lines. The following is a general summary of keys used in the + configuration file. For full details on this see the documentation in + docs/index.html +
    +
  1. dataDir - The directory where the ZooKeeper data is stored.
  2. +
  3. dataLogDir - The directory where the ZooKeeper transaction log is stored.
  4. +
  5. clientPort - The port used to communicate with clients.
  6. +
  7. tickTime - The duration of a tick in milliseconds. This is the basic + unit of time in ZooKeeper.
  8. +
  9. initLimit - The maximum number of ticks that a follower will wait to + initially synchronize with a leader.
  10. +
  11. syncLimit - The maximum number of ticks that a follower will wait for a + message (including heartbeats) from the leader.
  12. +
  13. server.id - This is the host:port[:port] that the server with the + given id will use for the quorum protocol.
  14. +
+ In addition to the config file. There is a file in the data directory called + "myid" that contains the server id as an ASCII decimal value. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
QuorumPeerMain() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static voidmain(String[] args) + +
+          To start the replicated server specify the configuration file name on + the command line.
+ voidrunFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+QuorumPeerMain

+
+public QuorumPeerMain()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(String[] args)
+
+
To start the replicated server specify the configuration file name on + the command line. +

+

+
Parameters:
args - path to the configfile
+
+
+
+ +

+runFromConfig

+
+public void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
+                   throws IOException
+
+
+ +
Throws: +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/class-use/QuorumPeerMain.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/class-use/QuorumPeerMain.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/class-use/QuorumPeerMain.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.apache.zookeeper.server.quorum.QuorumPeerMain (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.apache.zookeeper.server.quorum.QuorumPeerMain

+
+No usage of org.apache.zookeeper.server.quorum.QuorumPeerMain +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-frame.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-frame.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-frame.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,32 @@ + + + + + + +org.apache.zookeeper.server.quorum (ZooKeeper 3.4.5 API) + + + + + + + + + + + +org.apache.zookeeper.server.quorum + + + + +
+Classes  + +
+QuorumPeerMain
+ + + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-summary.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-summary.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-summary.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,157 @@ + + + + + + +org.apache.zookeeper.server.quorum (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.apache.zookeeper.server.quorum +

+ + + + + + + + + +
+Class Summary
QuorumPeerMainConfiguration file
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-tree.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-tree.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-tree.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,153 @@ + + + + + + +org.apache.zookeeper.server.quorum Class Hierarchy (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.apache.zookeeper.server.quorum +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-use.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-use.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/quorum/package-use.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.apache.zookeeper.server.quorum (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.apache.zookeeper.server.quorum

+
+No usage of org.apache.zookeeper.server.quorum +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/UpgradeMain.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/UpgradeMain.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/UpgradeMain.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,297 @@ + + + + + + +UpgradeMain (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper.server.upgrade +
+Class UpgradeMain

+
+java.lang.Object
+  extended by org.apache.zookeeper.server.upgrade.UpgradeMain
+
+
+
+
public class UpgradeMain
extends Object
+ + +

+This class upgrades the older database + to a new database for the zookeeper + servers. + The way to run it is + java -class path zookeeper.jar Upgrade dataDir snapShotDir + or using zookeeper scripts with zkServer -upgrade dataDir snapShotDir + it creates a backup in the dataDir/.bkup and snapShotDir/.bkup which + can be retrieved back to the snapShotDir and dataDir +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
UpgradeMain(File dataDir, + File snapShotDir) + +
+          upgrade class that takes the two file + directories.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static voidmain(String[] argv) + +
+           
+ voidrunUpgrade() + +
+          run the upgrade
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UpgradeMain

+
+public UpgradeMain(File dataDir,
+                   File snapShotDir)
+
+
upgrade class that takes the two file + directories. +

+

+
Parameters:
dataDir - the directory that contains the + transaction logs
snapShotDir - the directory that contains + the snapshots
+
+ + + + + + + + +
+Method Detail
+ +

+runUpgrade

+
+public void runUpgrade()
+                throws IOException
+
+
run the upgrade +

+

+ +
Throws: +
IOException
+
+
+
+ +

+main

+
+public static void main(String[] argv)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/class-use/UpgradeMain.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/class-use/UpgradeMain.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/class-use/UpgradeMain.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.apache.zookeeper.server.upgrade.UpgradeMain (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.apache.zookeeper.server.upgrade.UpgradeMain

+
+No usage of org.apache.zookeeper.server.upgrade.UpgradeMain +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-frame.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-frame.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-frame.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,32 @@ + + + + + + +org.apache.zookeeper.server.upgrade (ZooKeeper 3.4.5 API) + + + + + + + + + + + +org.apache.zookeeper.server.upgrade + + + + +
+Classes  + +
+UpgradeMain
+ + + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-summary.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-summary.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-summary.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,159 @@ + + + + + + +org.apache.zookeeper.server.upgrade (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.apache.zookeeper.server.upgrade +

+ + + + + + + + + +
+Class Summary
UpgradeMainThis class upgrades the older database + to a new database for the zookeeper + servers.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-tree.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-tree.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-tree.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,153 @@ + + + + + + +org.apache.zookeeper.server.upgrade Class Hierarchy (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.apache.zookeeper.server.upgrade +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-use.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-use.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/org/apache/zookeeper/server/upgrade/package-use.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.apache.zookeeper.server.upgrade (ZooKeeper 3.4.5 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.apache.zookeeper.server.upgrade

+
+No usage of org.apache.zookeeper.server.upgrade +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/overview-frame.html ============================================================================== --- websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/overview-frame.html (added) +++ websites/staging/zookeeper/trunk/content/doc/r3.4.5/api/overview-frame.html Mon Nov 19 00:36:21 2012 @@ -0,0 +1,52 @@ + + + + + + +Overview List (ZooKeeper 3.4.5 API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+org.apache.zookeeper +
+org.apache.zookeeper.client +
+org.apache.zookeeper.data +
+org.apache.zookeeper.server +
+org.apache.zookeeper.server.quorum +
+org.apache.zookeeper.server.upgrade +
+

+ +

+  + +