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; } });
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"); byte[] bytes = (byte[]) r.get(1); DataInputStream bis = new DataInputStream(new ByteArrayInputStream(bytes)); Object result = DataSerializer.readObject(bis); assertEquals(new SimpleClass(57, (byte) 3), result); return null; } };
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); try { r.get(4); } catch(Exception expected) { //The client may not have noticed the server go away and come //back. Let's trigger the exception so the client will retry. } PdxType1 results = (PdxType1) r.get(3); assertEquals(3, results.int1); 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"); 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 { Region r = getRootRegion("testSimplePdx"); r.put(3, new PdxType1(3)); r.get(3); return null; } });
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); r.put(1, new PdxType2(1,1)); r.get(1); 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 { 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; } });
public Object call() throws Exception { Region r = getRootRegion("testSimplePdx"); DefaultQuery.setPdxReadSerialized(true); final GemFireCacheImpl gfCache = GemFireCacheImpl.getInstance();
Region r = getRootRegion("region2"); assertEquals(new SimpleClass(57, (byte) 3), r.get(1));