Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 229274

Re: Get data from a one member of Partitioned Region from Client

$
0
0

That's pretty straight forward to do.

 

From the client, execute a function onRegion (without any filter keys so that it executes on every member hosting that region).

 

In your function do something like this:

 

public void execute(FunctionContext context) {

    RegionFunctionContext rfc = (RegionFunctionContext) context;

    Region r = rfc.getLocalDataSet();

    // count entries or whatever...

}

 

Unfortunately, from the client there is no easy way to retrieve all the connected members.


Viewing all articles
Browse latest Browse all 229274

Trending Articles