You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@helix.apache.org by Vinayak Borkar <vb...@yahoo.com> on 2013/04/11 00:43:07 UTC

Configuration Data change listeners

Hi,


I see that HelixManager provides a way to set and get config information 
related to Resources, Partitions and other things.

Is there a way that changes to this information can be tracked by using 
listeners?

Thanks,
Vinayak

Re: Configuration Data change listeners

Posted by Zhen Zhang <ne...@gmail.com>.
Thanks for pointing out that. The feature will be included in 0.6.1 release.

Thanks,
Jason


On Wed, Apr 10, 2013 at 5:25 PM, Vinayak Borkar <vb...@yahoo.com> wrote:

> It looks like this feature is not present in 0.6.0-incubating. Thanks for
> the pointer.
>
>
>
> On 4/10/13 5:02 PM, Zhen Zhang wrote:
>
>> yes.
>>
>> HelixManager#**addConfigChangeListener(**ScopedConfigChangeListener
>> listener,
>> ConfigScopeProperty scope) registers a config change listener for
>> different
>> scopes (i.e. CLUSTER, RESOURCE, PARTITION)
>>
>> TestListenerCallback#**testBasic() has examples for using it. For
>> example,
>> the following line registers a cluster scope config change listener:
>> manager.**addConfigChangeListener(**listener,
>> ConfigScopeProperty.CLUSTER);
>>
>> Thank,
>> Jason
>>
>>
>>
>> On Wed, Apr 10, 2013 at 3:43 PM, Vinayak Borkar <vb...@yahoo.com> wrote:
>>
>>  Hi,
>>>
>>>
>>> I see that HelixManager provides a way to set and get config information
>>> related to Resources, Partitions and other things.
>>>
>>> Is there a way that changes to this information can be tracked by using
>>> listeners?
>>>
>>> Thanks,
>>> Vinayak
>>>
>>>
>>
>

Re: Configuration Data change listeners

Posted by Vinayak Borkar <vb...@yahoo.com>.
It looks like this feature is not present in 0.6.0-incubating. Thanks 
for the pointer.


On 4/10/13 5:02 PM, Zhen Zhang wrote:
> yes.
>
> HelixManager#addConfigChangeListener(ScopedConfigChangeListener listener,
> ConfigScopeProperty scope) registers a config change listener for different
> scopes (i.e. CLUSTER, RESOURCE, PARTITION)
>
> TestListenerCallback#testBasic() has examples for using it. For example,
> the following line registers a cluster scope config change listener:
> manager.addConfigChangeListener(listener, ConfigScopeProperty.CLUSTER);
>
> Thank,
> Jason
>
>
>
> On Wed, Apr 10, 2013 at 3:43 PM, Vinayak Borkar <vb...@yahoo.com> wrote:
>
>> Hi,
>>
>>
>> I see that HelixManager provides a way to set and get config information
>> related to Resources, Partitions and other things.
>>
>> Is there a way that changes to this information can be tracked by using
>> listeners?
>>
>> Thanks,
>> Vinayak
>>
>


Re: Configuration Data change listeners

Posted by Zhen Zhang <ne...@gmail.com>.
yes.

HelixManager#addConfigChangeListener(ScopedConfigChangeListener listener,
ConfigScopeProperty scope) registers a config change listener for different
scopes (i.e. CLUSTER, RESOURCE, PARTITION)

TestListenerCallback#testBasic() has examples for using it. For example,
the following line registers a cluster scope config change listener:
manager.addConfigChangeListener(listener, ConfigScopeProperty.CLUSTER);

Thank,
Jason



On Wed, Apr 10, 2013 at 3:43 PM, Vinayak Borkar <vb...@yahoo.com> wrote:

> Hi,
>
>
> I see that HelixManager provides a way to set and get config information
> related to Resources, Partitions and other things.
>
> Is there a way that changes to this information can be tracked by using
> listeners?
>
> Thanks,
> Vinayak
>