public static Object[] putAll(){
  try {
    Region region=cache.getRegion(Region.SEPARATOR + REGION_NAME);
    assertNotNull(region);
    Map map=new LinkedHashMap();
    map.put(PUTALL_KEY1,"value1");
    map.put(PUTALL_KEY2,"value1");
    map.put(PUTALL_KEY3,"value1");
    map.put(PUTALL_KEY4,"value1");
    map.put(PUTALL_KEY5,"value1");
    region.putAll(map);
    Thread.sleep(5000);
    EventID[] evids=new EventID[5];
    evids[0]=putAlleventId1;
    evids[1]=putAlleventId2;
    evids[2]=putAlleventId3;
    evids[3]=putAlleventId4;
    evids[4]=putAlleventId5;
    assertNotNull(evids[0]);
    assertNotNull(evids[1]);
    assertNotNull(evids[2]);
    assertNotNull(evids[3]);
    assertNotNull(evids[4]);
    return evids;
  }
 catch (  Exception e) {
    fail("put failed due to ",e);
  }
  return null;
}

public static Object [ ] putAll ( ) { try { Region region = cache . getRegion ( Region . SEPARATOR + REGION_NAME ) ; assertNotNull ( region ) ; Map map = new LinkedHashMap ( ) ; map . put ( PUTALL_KEY1 , "value1" ) ; map . put ( PUTALL_KEY2 , "value1" ) ; map . put ( PUTALL_KEY3 , "value1" ) ; map . put ( PUTALL_KEY4 , "value1" ) ; map . put ( PUTALL_KEY5 , "value1" ) ; region . putAll ( map ) ; Thread . sleep ( 5000 ) ; EventID [ ] evids = new EventID [ 5 ] ; evids [ 0 ] = putAlleventId1 ; evids [ 1 ] = putAlleventId2 ; evids [ 2 ] = putAlleventId3 ; evids [ 3 ] = putAlleventId4 ; evids [ 4 ] = putAlleventId5 ; assertNotNull ( evids [ 0 ] ) ; assertNotNull ( evids [ 1 ] ) ; assertNotNull ( evids [ 2 ] ) ; assertNotNull ( evids [ 3 ] ) ; assertNotNull ( evids [ 4 ] ) ; return evids ; } catch ( Exception e ) { fail ( "put failed due to " , e ) ; } return null ; }
does an update and return the eventid generated . eventid is caught in the listener and stored in a static variable
