Hi All,
Highly appreciate your contribution.
@ Sewwandi
We are working on stat publisher from MB to BAM/CEP .I think there is a
problem ,because if node restarts for some reason stats will publish with
new Node ID that might be a serious problem when someone analyze that
statistics. (same node publish stats with 2 node IDs).
Thanks,
On Sat, Sep 13, 2014 at 9:15 PM, Sewwandi Perera wrote:
> Hi Nipuna,
>
> What you should use here is "getNodeId()" method in
> org.wso2.andes.server.cluster.coordination.hazelcast.HazelcastAgent class.
>
> For more details: The ID returned by this method is created in the format
> "NODE/_". Here, the UUID is generated by Hazelcast and
> if the node restarts for some reason, as Hasitha mentioned, the Node ID
> will be changed.
>
> Thanks,
> Sewwandi
>
> On Sat, Sep 13, 2014 at 11:14 AM, Hasitha Hiranya
> wrote:
>
>> Hi,
>>
>> Looping in Sewwandi.
>> This id is unique. But if you restart same node this id is different.
>> Sewwandi, IMO we need to fix this in such a way that even after the
>> restart it gives same ID.
>>
>> Thanks
>>
>>
>> On Sat, Sep 13, 2014 at 10:35 AM, Asitha Nanayakkara
>> wrote:
>>
>>> Hi,
>>>
>>> You can use HazelcastAgent method getUniqueIdForTheNode() for this. It's
>>> in the latest code in git [1].
>>> @Sewwandi correct me if I'm wrong.
>>>
>>> [1]
>>> https://github.com/wso2-dev/andes/blob/master/modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/coordination/hazelcast/HazelcastAgent.java
>>>
>>> On Sat, Sep 13, 2014 at 9:23 AM, Nipuna Shanthidewa
>>> wrote:
>>>
>>>>
>>>> we want to uniquely identify current server node in MB among other
>>>> nodes we are going to use IP address and port number for that.Is there any
>>>> better option than this ?
>>>>
>>>> Thanks
>>>> --
>>>> Nipuna Shanthidewa
>>>>
>>>> Software Engineering Intern
>>>> WSO2 Inc.
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Asitha Nanayakkara*
>>> Software Engineer
>>> WSO2, Inc. http://wso2.com/
>>> Mob: + 94 77 85 30 682
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>
>>
>
>
> --
> Sewwandi Perera
> Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> mobile: +94-713765098
>
--
Nipuna Shanthidewa
Software Engineering Intern
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev