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 2B4629FDF for ; Tue, 14 Feb 2012 04:04:41 +0000 (UTC) Received: (qmail 47711 invoked by uid 500); 14 Feb 2012 04:04:39 -0000 Delivered-To: apmail-zookeeper-commits-archive@zookeeper.apache.org Received: (qmail 47570 invoked by uid 500); 14 Feb 2012 04:04:32 -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 44495 invoked by uid 99); 14 Feb 2012 04:03:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 04:03:07 +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; Tue, 14 Feb 2012 04:02:46 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 222AA2388C27 for ; Tue, 14 Feb 2012 04:01:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1243778 [13/43] - in /zookeeper/site/trunk: content/ content/doc/r3.4.3/ content/doc/r3.4.3/api/ content/doc/r3.4.3/api/org/ content/doc/r3.4.3/api/org/apache/ content/doc/r3.4.3/api/org/apache/zookeeper/ content/doc/r3.4.3/api/org/apache/... Date: Tue, 14 Feb 2012 04:01:38 -0000 To: commits@zookeeper.apache.org From: mahadev@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120214040152.222AA2388C27@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.EventType.html URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.EventType.html?rev=1243778&view=auto ============================================================================== --- zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.EventType.html (added) +++ zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.EventType.html Tue Feb 14 04:01:25 2012 @@ -0,0 +1,415 @@ + + + + + + +Watcher.Event.EventType (ZooKeeper 3.4.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper +
+Enum Watcher.Event.EventType

+
+java.lang.Object
+  extended by java.lang.Enum<Watcher.Event.EventType>
+      extended by org.apache.zookeeper.Watcher.Event.EventType
+
+
+
All Implemented Interfaces:
Serializable, Comparable<Watcher.Event.EventType>
+
+
+
Enclosing interface:
Watcher.Event
+
+
+
+
public static enum Watcher.Event.EventType
extends Enum<Watcher.Event.EventType>
+ + +

+Enumeration of types of events that may occur on the ZooKeeper +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
NodeChildrenChanged + +
+           
NodeCreated + +
+           
NodeDataChanged + +
+           
NodeDeleted + +
+           
None + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Watcher.Event.EventTypefromInt(int intValue) + +
+           
+ intgetIntValue() + +
+           
+static Watcher.Event.EventTypevalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static Watcher.Event.EventType[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+None

+
+public static final Watcher.Event.EventType None
+
+
+
+
+
+ +

+NodeCreated

+
+public static final Watcher.Event.EventType NodeCreated
+
+
+
+
+
+ +

+NodeDeleted

+
+public static final Watcher.Event.EventType NodeDeleted
+
+
+
+
+
+ +

+NodeDataChanged

+
+public static final Watcher.Event.EventType NodeDataChanged
+
+
+
+
+
+ +

+NodeChildrenChanged

+
+public static final Watcher.Event.EventType NodeChildrenChanged
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static Watcher.Event.EventType[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (Watcher.Event.EventType c : Watcher.Event.EventType.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static Watcher.Event.EventType valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+getIntValue

+
+public int getIntValue()
+
+
+
+
+
+
+ +

+fromInt

+
+public static Watcher.Event.EventType fromInt(int intValue)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.KeeperState.html URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.KeeperState.html?rev=1243778&view=auto ============================================================================== --- zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.KeeperState.html (added) +++ zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.KeeperState.html Tue Feb 14 04:01:25 2012 @@ -0,0 +1,500 @@ + + + + + + +Watcher.Event.KeeperState (ZooKeeper 3.4.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper +
+Enum Watcher.Event.KeeperState

+
+java.lang.Object
+  extended by java.lang.Enum<Watcher.Event.KeeperState>
+      extended by org.apache.zookeeper.Watcher.Event.KeeperState
+
+
+
All Implemented Interfaces:
Serializable, Comparable<Watcher.Event.KeeperState>
+
+
+
Enclosing interface:
Watcher.Event
+
+
+
+
public static enum Watcher.Event.KeeperState
extends Enum<Watcher.Event.KeeperState>
+ + +

+Enumeration of states the ZooKeeper may be at the event +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
AuthFailed + +
+          Auth failed state
ConnectedReadOnly + +
+          The client is connected to a read-only server, that is the + server which is not currently connected to the majority.
Disconnected + +
+          The client is in the disconnected state - it is not connected + to any server in the ensemble.
Expired + +
+          The serving cluster has expired this session.
NoSyncConnected + +
+          Deprecated. 
SaslAuthenticated + +
+          SaslAuthenticated: used to notify clients that they are SASL-authenticated, + so that they can perform Zookeeper actions with their SASL-authorized permissions.
SyncConnected + +
+          The client is in the connected state - it is connected + to a server in the ensemble (one of the servers specified + in the host connection parameter during ZooKeeper client + creation).
Unknown + +
+          Deprecated. 
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Watcher.Event.KeeperStatefromInt(int intValue) + +
+           
+ intgetIntValue() + +
+           
+static Watcher.Event.KeeperStatevalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static Watcher.Event.KeeperState[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+Unknown

+
+@Deprecated
+public static final Watcher.Event.KeeperState Unknown
+
+
Deprecated. 
Unused, this state is never generated by the server +

+

+
+
+
+ +

+Disconnected

+
+public static final Watcher.Event.KeeperState Disconnected
+
+
The client is in the disconnected state - it is not connected + to any server in the ensemble. +

+

+
+
+
+ +

+NoSyncConnected

+
+@Deprecated
+public static final Watcher.Event.KeeperState NoSyncConnected
+
+
Deprecated. 
Unused, this state is never generated by the server +

+

+
+
+
+ +

+SyncConnected

+
+public static final Watcher.Event.KeeperState SyncConnected
+
+
The client is in the connected state - it is connected + to a server in the ensemble (one of the servers specified + in the host connection parameter during ZooKeeper client + creation). +

+

+
+
+
+ +

+AuthFailed

+
+public static final Watcher.Event.KeeperState AuthFailed
+
+
Auth failed state +

+

+
+
+
+ +

+ConnectedReadOnly

+
+public static final Watcher.Event.KeeperState ConnectedReadOnly
+
+
The client is connected to a read-only server, that is the + server which is not currently connected to the majority. + The only operations allowed after receiving this state is + read operations. + This state is generated for read-only clients only since + read/write clients aren't allowed to connect to r/o servers. +

+

+
+
+
+ +

+SaslAuthenticated

+
+public static final Watcher.Event.KeeperState SaslAuthenticated
+
+
SaslAuthenticated: used to notify clients that they are SASL-authenticated, + so that they can perform Zookeeper actions with their SASL-authorized permissions. +

+

+
+
+
+ +

+Expired

+
+public static final Watcher.Event.KeeperState Expired
+
+
The serving cluster has expired this session. The ZooKeeper + client connection (the session) is no longer valid. You must + create a new client connection (instantiate a new ZooKeeper + instance) if you with to access the ensemble. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static Watcher.Event.KeeperState[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (Watcher.Event.KeeperState c : Watcher.Event.KeeperState.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static Watcher.Event.KeeperState valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+getIntValue

+
+public int getIntValue()
+
+
+
+
+
+
+ +

+fromInt

+
+public static Watcher.Event.KeeperState fromInt(int intValue)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.html URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.html?rev=1243778&view=auto ============================================================================== --- zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.html (added) +++ zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.Event.html Tue Feb 14 04:01:25 2012 @@ -0,0 +1,200 @@ + + + + + + +Watcher.Event (ZooKeeper 3.4.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper +
+Interface Watcher.Event

+
+
Enclosing interface:
Watcher
+
+
+
+
public static interface Watcher.Event
+ + +

+This interface defines the possible states an Event may represent +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classWatcher.Event.EventType + +
+          Enumeration of types of events that may occur on the ZooKeeper
+static classWatcher.Event.KeeperState + +
+          Enumeration of states the ZooKeeper may be at the event
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.html URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.html?rev=1243778&view=auto ============================================================================== --- zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.html (added) +++ zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/Watcher.html Tue Feb 14 04:01:25 2012 @@ -0,0 +1,231 @@ + + + + + + +Watcher (ZooKeeper 3.4.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper +
+Interface Watcher

+
+
+
public interface Watcher
+ + +

+This interface specifies the public interface an event handler class must + implement. A ZooKeeper client will get various events from the ZooKeepr + server it connects to. An application using such a client handles these + events by registering a callback object with the client. The callback object + is expected to be an instance of a class that implements Watcher interface. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static interfaceWatcher.Event + +
+          This interface defines the possible states an Event may represent
+  + + + + + + + + + + + +
+Method Summary
+ voidprocess(WatchedEvent event) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+process

+
+void process(WatchedEvent event)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + + Added: zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/ZooDefs.Ids.html URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/ZooDefs.Ids.html?rev=1243778&view=auto ============================================================================== --- zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/ZooDefs.Ids.html (added) +++ zookeeper/site/trunk/content/doc/r3.4.3/api/org/apache/zookeeper/ZooDefs.Ids.html Tue Feb 14 04:01:25 2012 @@ -0,0 +1,290 @@ + + + + + + +ZooDefs.Ids (ZooKeeper 3.4.3 API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.zookeeper +
+Interface ZooDefs.Ids

+
+
Enclosing class:
ZooDefs
+
+
+
+
public static interface ZooDefs.Ids
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static IdANYONE_ID_UNSAFE + +
+          This Id represents anyone.
+static IdAUTH_IDS + +
+          This Id is only usable to set ACLs.
+static ArrayList<ACL>CREATOR_ALL_ACL + +
+          This ACL gives the creators authentication id's all permissions.
+static ArrayList<ACL>OPEN_ACL_UNSAFE + +
+          This is a completely open ACL .
+static ArrayList<ACL>READ_ACL_UNSAFE + +
+          This ACL gives the world the ability to read.
+  +

+ + + + + + + + +
+Field Detail
+ +

+ANYONE_ID_UNSAFE

+
+static final Id ANYONE_ID_UNSAFE
+
+
This Id represents anyone. +

+

+
+
+
+ +

+AUTH_IDS

+
+static final Id AUTH_IDS
+
+
This Id is only usable to set ACLs. It will get substituted with the + Id's the client authenticated with. +

+

+
+
+
+ +

+OPEN_ACL_UNSAFE

+
+static final ArrayList<ACL> OPEN_ACL_UNSAFE
+
+
This is a completely open ACL . +

+

+
+
+
+ +

+CREATOR_ALL_ACL

+
+static final ArrayList<ACL> CREATOR_ALL_ACL
+
+
This ACL gives the creators authentication id's all permissions. +

+

+
+
+
+ +

+READ_ACL_UNSAFE

+
+static final ArrayList<ACL> READ_ACL_UNSAFE
+
+
This ACL gives the world the ability to read. +

+

+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2012 The Apache Software Foundation + +