Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to register() for globs or regex's #35

Open
eric opened this issue Jul 19, 2012 · 1 comment
Open

Provide a way to register() for globs or regex's #35

eric opened this issue Jul 19, 2012 · 1 comment

Comments

@eric
Copy link
Member

eric commented Jul 19, 2012

In trying to watch for changes to children of a znode, I found that it is difficult to keep track of which children have been register()'d for and which haven't.

It would be nice to be able to provide either a glob or a regex to register() that could be registered once and fire for all of the children.

@johnbellone
Copy link
Contributor

This seems like it would be expensive.

Would you not have to first perform a stat on the top-level of all the children and then only set the register on the znodes that matched the pattern? Just thinking out loud here. Unless you registered on the root node of something and then merely filtered out on the pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants