Quantcast
Channel: VMware Communities : Unanswered Discussions - vFabric GemFire [ARCHIVED]
Viewing all articles
Browse latest Browse all 532

PartitionAttributes Colocation queries

$
0
0

Hi,

I have created two regions:


PartitionResolver resolver = new TradesPartitionResolver();

PartitionAttributes attrs = new PartitionAttributesFactory().
setPartitionResolver(resolver).create();

Region Trades = new RegionFactory().setPartitionAttributes(attrs).create("Trades");
Trades.put("foo", "bar"); 

attrs = new PartitionAttributesFactory().setPartitionResolver(resolver)
.setColocatedWith(Trades.getFullPath()).create();

Region colocated_trade_history = new RegionFactory()
        .setPartitionAttributes(attrs).create("colocated_trade_history");
 colocated_trade_history.put("foo", "bar");


 

On one server (Server 1)I have entered data in both the regions(Trade and colocated_trade_history). On the other server names Server 2(on the same LAN), through Xml file i have started the cacheserver.

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cache PUBLIC
    "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.5//EN"
   
<cache>
     <cache-server port="10334" />
<region name="colocated_trade_history" refid="PARTITION" />
</cache>

 

 

Now the problem I am facing is:

1. How should I make the processing of colocated_trade_history region in Server 2.

2. Will there be any logs on the server 2 on the dos prompt of cacheserver reflecting that the processing is done here.



Viewing all articles
Browse latest Browse all 532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>