zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ZOOKEEPER-132) Create Enum to replace CreateFlag in ZooKepper.create method
Date Thu, 04 Sep 2008 03:25:44 GMT

     [ 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.

> 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

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

View raw message