You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Sznajder ForMailingList <bs...@gmail.com> on 2013/10/16 12:40:59 UTC
Reading the current queue content
Hi
I am using the QUEUE recipe of Curator.
However, for some reason, I would need to know, what are the current
members of the queue at a given time.
I did not find in the API the way to do that.
Thanks!
Benjamin
Re: Reading the current queue content
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
getChildren returns the list of ZNodes. You must then call getData() for each node. But, the data format is private. Why do you need it? It seems strange to have Curator managing the queue and then for you to manage it as well.
-Jordan
On Oct 17, 2013, at 1:04 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> Thanks Jordan
>
> However, it returns me a list of String.
> How can I pass from this String to the Object I added to the queue?
>
> Benjamin
>
>
> On Thu, Oct 17, 2013 at 12:54 AM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
> Call getChildren() on the parent node.
>
> On Oct 16, 2013, at 3:40 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
>
> > Hi
> >
> > I am using the QUEUE recipe of Curator.
> >
> > However, for some reason, I would need to know, what are the current members of the queue at a given time.
> >
> > I did not find in the API the way to do that.
> >
> > Thanks!
> >
> > Benjamin
>
>
Re: Reading the current queue content
Posted by Sznajder ForMailingList <bs...@gmail.com>.
Thanks Jordan
However, it returns me a list of String.
How can I pass from this String to the Object I added to the queue?
Benjamin
On Thu, Oct 17, 2013 at 12:54 AM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:
> Call getChildren() on the parent node.
>
> On Oct 16, 2013, at 3:40 AM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
> > Hi
> >
> > I am using the QUEUE recipe of Curator.
> >
> > However, for some reason, I would need to know, what are the current
> members of the queue at a given time.
> >
> > I did not find in the API the way to do that.
> >
> > Thanks!
> >
> > Benjamin
>
>
Re: Reading the current queue content
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Call getChildren() on the parent node.
On Oct 16, 2013, at 3:40 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> Hi
>
> I am using the QUEUE recipe of Curator.
>
> However, for some reason, I would need to know, what are the current members of the queue at a given time.
>
> I did not find in the API the way to do that.
>
> Thanks!
>
> Benjamin