helix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayak Borkar <vinay...@gmail.com>
Subject Re: Sending a message to all participants
Date Tue, 08 Oct 2013 02:12:56 GMT
Hi Kishore,


I will try that. But since I am setting it to "" it should not matter, 
correct? That is the default value for resource and partition in Criteria.

Vinayak


On 10/7/13 7:04 PM, kishore g wrote:
> Hi Vinayak,
>
> Why is resource and partition empty string? if you want to send all live
> instances irrespective what resource/partition they do not set it.
>
> Criteria allParticipantsCriteria = new Criteria();
> allParticipantsCriteria.**setInstanceName("%");
> allParticipantsCriteria.**setRecipientInstanceType(**InstanceTyp
> e.PARTICIPANT);
>
> can you try this
>
> Thanks,
> Kishore G
>
>
> On Mon, Oct 7, 2013 at 6:58 PM, Vinayak Borkar <vinayakb@gmail.com> wrote:
>
>> Hi,
>>
>>
>> I need to send a message to all live instances in a Helix cluster. I set
>> the Criteria as follows:
>>
>> Criteria allParticipantsCriteria = new Criteria();
>> allParticipantsCriteria.**setInstanceName("%");
>> allParticipantsCriteria.**setRecipientInstanceType(**
>> InstanceType.PARTICIPANT);
>> allParticipantsCriteria.**setResource("");
>> allParticipantsCriteria.**setPartition("");
>>
>> However, the number of recipients turns out to be 0. I also tried changing
>> the datasource in the criteria to be IDEALSTATES using the code below:
>>
>> allParticipantsCriteria.**setDataSource(DataSource.**IDEALSTATES);
>>
>> But no joy.
>>
>> Please note that I connect to Helix using an administrator role. When
>> listing the live instances using the helix-admin client script I do see one
>> live instance.
>>
>> Any ideas on what could be going wrong?
>>
>> Thanks,
>> Vinayak
>>
>


Mime
View raw message