Ejemplo n.º 1
0
 @Test
 public void testMapStoreWriteBatchSize() {
   String xml =
       "<hazelcast xmlns=\"http://www.hazelcast.com/schema/config\">\n"
           + "<map name=\"mymap\">"
           + "<map-store >"
           + "<write-batch-size>23</write-batch-size>"
           + "</map-store>"
           + "</map>"
           + "</hazelcast>";
   final Config config = buildConfig(xml);
   System.out.println("config = " + config);
   final MapStoreConfig mapStoreConfig = config.getMapConfig("mymap").getMapStoreConfig();
   assertEquals(23, mapStoreConfig.getWriteBatchSize());
 }
Ejemplo n.º 2
0
 @Test
 public void testMapStoreWriteBatchSize() {
   String xml =
       HAZELCAST_START_TAG
           + "<map name=\"mymap\">"
           + "<map-store >"
           + "<write-batch-size>23</write-batch-size>"
           + "</map-store>"
           + "</map>"
           + "</hazelcast>";
   final Config config = buildConfig(xml);
   System.out.println("config = " + config);
   final MapStoreConfig mapStoreConfig = config.getMapConfig("mymap").getMapStoreConfig();
   assertEquals(23, mapStoreConfig.getWriteBatchSize());
 }