[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakob Homan updated ZOOKEEPER-132:
----------------------------------

    Attachment: ZOOKEEPER-132.patch

OK, per Ben's request the patch now:
   * Creates an Enum CreateMode that handles all of the possible znode creation 
combinations
   * The enum can be converted to/from an int flag for sending over the wire 
without changing the jute protocol.
   * The enum provides type-safety and clarity for users, and convenience 
methods for once it gets to the server
   * Unit tests for new enum
   * All the other stuff from above.

Again, if this approach looks good, I'll use it for the other constants that 
need replacing.
-jg


> Create Enum to replace CreateFlag in ZooKepper.create method
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-132
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-132
>             Project: Zookeeper
>          Issue Type: Sub-task
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-132.patch, ZOOKEEPER-132.patch
>
>
> Replace the current named constant integer in the craete method with a 
> typesafe enum value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to