public void run() { SystemManagementService service = (SystemManagementService) getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); assertNotNull(bean); try { String jsonString1 = null; byte[] bytes = bean.queryDataForCompressedResult(queriesForRR[2], null, 2); jsonString1 = BeanUtilFuncs.decompress(bytes); if (jsonString1.contains("result") && !jsonString1.contains("No Data Found")) { GfJsonObject gfJsonObj = new GfJsonObject(jsonString1); getLogWriter().info("testLimit" + queriesForRR[2] + " is = " + jsonString1); GfJsonArray arr = gfJsonObj.getJSONArray("result"); assertEquals(2, arr.size()); } else { fail("Query On Cluster should have result"); } } catch (GfJsonException e) { fail(e.getMessage()); } catch (IOException e) { fail(e.getMessage()); } catch (Exception e) { fail(e.getMessage()); } } });
return result.compressedBytes; } else { return BeanUtilFuncs.decompress(result.compressedBytes); decompressedStr = BeanUtilFuncs.decompress(it.next().compressedBytes); decompressedList.add(decompressedStr);
decompressedList.add(BeanUtilFuncs.decompress(result.compressedBytes)); return wrapResult(decompressedList.toString()); return BeanUtilFuncs.decompress(result.compressedBytes); decompressedStr = BeanUtilFuncs.decompress(it.next().compressedBytes); decompressedList.add(decompressedStr);
public void run() { Cache cache = getCache(); SystemManagementService service = (SystemManagementService) getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); assertNotNull(bean); try { byte[] bytes = bean.queryDataForCompressedResult(queriesForRR[0], member1.getId() + "," + member2.getId(), 2); String jsonString = BeanUtilFuncs.decompress(bytes); GfJsonObject gfJsonObj = new GfJsonObject(jsonString); getLogWriter().info("testMemberWise " + queriesForRR[2] + " is = " + jsonString); } catch (GfJsonException e) { fail(e.getMessage()); } catch (IOException e) { fail(e.getMessage()); } catch (Exception e) { fail(e.getMessage()); } } });