[ https://issues.apache.org/jira/browse/ZOOKEEPER-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated ZOOKEEPER-78: ----------------------------------- Attachment: ZOOKEEPER-78.patch a new patch. I have changed the directory structure in this the code now is in {{root}}/src/recipes/lock/src/java/org/apache/zookepeer/recipes/lock/ also the tests are in {{root}}/src/recipes/lock/test/org/apache/zookeeper/recipes/lock/ the new directory structure allows us to have both the java and c implemention in the same parent directory strucure. src/recipes/lock/ also - - added a new interface Locklistener - removed runnable to be a locklistener interface whose methods lockAcqured and lockReleased are called on a lock acquired and relase of a lock - refactored some code - deleted not required public methods. - added build files for the recipes directory - changed the tests to work with new api's i am implementing the recipes in c. Will have an updated patch up soon. comments are welcome. > added a high level protocol/feature - for easy Leader Election or exclusive > Write Lock creation > ----------------------------------------------------------------------------------------------- > > Key: ZOOKEEPER-78 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-78 > Project: Zookeeper > Issue Type: New Feature > Components: java client > Affects Versions: 3.0.0 > Reporter: james strachan > Assignee: james strachan > Fix For: 3.2.0 > > Attachments: patch_with_including_Benjamin's_fix.patch, > using_zookeeper_facade.patch, ZOOKEEPER-78.patch, ZOOKEEPER-78.patch, > ZOOKEEPER-78.patch > > > Here's a patch which adds a little WriteLock helper class for performing > leader elections or creating exclusive locks in some directory znode. Note > its an early cut; am sure we can improve it over time. The aim is to avoid > folks having to use the low level ZK stuff but provide a simpler high level > abstraction. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.