hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r732826 - in /hadoop/zookeeper/trunk: CHANGES.txt src/java/main/org/apache/zookeeper/Watcher.java
Date Thu, 08 Jan 2009 21:21:08 GMT
Author: mahadev
Date: Thu Jan  8 13:21:07 2009
New Revision: 732826

URL: http://svn.apache.org/viewvc?rev=732826&view=rev
Log:
ZOOKEEPER-265. remove (deprecate) unused NoSyncConnected from KeeperState. (phunt via mahadev)

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/Watcher.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=732826&r1=732825&r2=732826&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Thu Jan  8 13:21:07 2009
@@ -62,7 +62,10 @@
 
   ZOOKEEPER-250. isvalidsnapshot should handle the case of 0 snapshot
   files better. (mahadev via phunt)
-  
+ 
+  ZOOKEEPER-265. remove (deprecate) unused NoSyncConnected from KeeperState.
+(phunt via mahadev)
+ 
 IMPROVEMENTS:
    
   ZOOKEEPER-64. Log system env information when initializing server and

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/Watcher.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/Watcher.java?rev=732826&r1=732825&r2=732826&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/Watcher.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/Watcher.java Thu Jan  8 13:21:07
2009
@@ -36,10 +36,28 @@
          * Enumeration of states the ZooKeeper may be at the event
          */
         public enum KeeperState {
+            /** Unused, this state is never generated by the server */
+            @Deprecated
             Unknown (-1),
+
+            /** The client is in the disconnected state - it is not connected
+             * to any server in the ensemble. */
             Disconnected (0),
+
+            /** Unused, this state is never generated by the server */
+            @Deprecated
             NoSyncConnected (1),
+
+            /** 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). */
             SyncConnected (3),
+
+            /** 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. */
             Expired (-112);
 
             private final int intValue;     // Integer representation of value



Mime
View raw message