LocalMapStats Unsupported?

34 views
Skip to first unread message

James Cook

unread,
Sep 26, 2011, 1:53:56 PM9/26/11
to haze...@googlegroups.com
I'm connected to my cluster using the Java Client, and I get a list of my instances to iterate over. If the instance type is MAP, I cast the instance as an IMap and call getLocalMapStats(). This is when I discover that I actually have an instance of an MapClientProxy and this is an unsupported function.

What should I be doing instead? I'm just trying to discover some statistics about my running cluster (from Java) in the most lightweight manner possible.

Fuad Malikov

unread,
Sep 27, 2011, 4:14:06 AM9/27/11
to haze...@googlegroups.com
Hi James,

Well the localMapStats are the local stats of a cluster node. Thus they don't mean much when you call it from client (which members stat should it return?) and is not implemented for this reason.
However you can execute a distributed task on members, call localMapStats and return result. We used this approach to collect stats while showing on Monitoring Tool.

Fuad
http://twitter.com/fuadm




On Mon, Sep 26, 2011 at 8:53 PM, James Cook <jc...@tracermedia.com> wrote:
I'm connected to my cluster using the Java Client, and I get a list of my instances to iterate over. If the instance type is MAP, I cast the instance as an IMap and call getLocalMapStats(). This is when I discover that I actually have an instance of an MapClientProxy and this is an unsupported function.

What should I be doing instead? I'm just trying to discover some statistics about my running cluster (from Java) in the most lightweight manner possible.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/IX_N3usq2uoJ.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.

Reply all
Reply to author
Forward
0 new messages