public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); return null; } };
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); return null; } };
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); try { r.put(1, new SimpleClass(57, (byte) 3)); fail("should have received an exception"); } catch(PdxInitializationException expected) { //do nothing } return null; } };
public Object call() throws Exception { Region r = getRootRegion("region1"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); return null; } });
private void defineAType() throws IOException { SimpleClass sc = new SimpleClass(1, (byte) 2); HeapDataOutputStream out = new HeapDataOutputStream(Version.CURRENT); DataSerializer.writeObject(sc, out); } private void defineATypeNoEnum() throws IOException {
private void defineATypeNoEnum() throws IOException { SimpleClass sc = new SimpleClass(1, (byte) 2, null); HeapDataOutputStream out = new HeapDataOutputStream(Version.CURRENT); DataSerializer.writeObject(sc, out); }
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); r.put(1, new SimpleClass(57, (byte) 3)); return null; } });
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); r.put(1, new SimpleClass(57, (byte) 3)); return null; } });
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); assertEquals(new SimpleClass2(57, (byte) 3), r.get(2)); return null; } };
public Object call() throws Exception { HeapDataOutputStream bytes = new HeapDataOutputStream(Version.CURRENT); Region r1 = getRootRegion("region1"); r1.put(1, new SimpleClass(57, (byte) 3)); Region r2 = getRootRegion("region2"); r2.put(1, new SimpleClass(57, (byte) 3)); return null; } });
public Object call() throws Exception { //Make sure the cache exists getCache(); DataSerializer.writeObject(new SimpleClass(value, (byte) value), new HeapDataOutputStream(Version.CURRENT)); return null; } };
public Object call() throws Exception { //Make sure the cache exists getCache(); DataSerializer.writeObject(new SimpleClass(value, (byte) value, enumVal), new HeapDataOutputStream(Version.CURRENT)); return null; } };
public Object call() throws Exception { Cache cache = getCache(); Region region1 = cache.getRegion("region"); region1.put(key, new SimpleClass(value, (byte) value)); return null; } };
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); //Ok, now the type registry should exist assertNotNull(getRootRegion(PeerTypeRegistration.REGION_NAME)); return null; } };
public Object call() throws Exception { //Ok, now the type registry should exist assertNotNull(getRootRegion(PeerTypeRegistration.REGION_NAME)); Region r = getRootRegion("testSimplePdx"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1)); return null; } });
public static void doPutsPDXSerializable(String regionName, int numPuts) { Region r = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(r); for (int i = 0; i < numPuts; i++) { r.put("Key_" + i, new SimpleClass(i, (byte)i)); } }
public Object call() throws Exception { //Check to make sure the type region is not yet created Region r = getRootRegion("testSimplePdx"); r.put(1, new SimpleClass(57, (byte) 3)); //Ok, now the type registry should exist assertNotNull(getRootRegion(PeerTypeRegistration.REGION_NAME)); return null; } });
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); r.put(1, new SimpleClass(57, (byte) 3)); r.put(2, new SimpleClass2(57, (byte) 3)); return null; } });
public Object call() throws Exception { //Check to make sure the type region is not yet created Region r = getRootRegion("testSimplePdx"); r.put(1, new SimpleClass(57, (byte) 3)); //Ok, now the type registry should exist assertNotNull(getRootRegion(PeerTypeRegistration.REGION_NAME)); return null; } });
public Object call() throws Exception { HeapDataOutputStream out = new HeapDataOutputStream(Version.CURRENT); DataSerializer.writeObject(new SimpleClass(57, (byte) 3), out); byte[] bytes = out.toByteArray(); Region r = getRootRegion("testSimplePdx"); r.put(1, bytes); return null; } });