private static long startDeserialization() { long result = 0; DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { result = stats.startDeserialization(); } return result; }
private static void endSerialization(long start, int bytes) { DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { stats.endSerialization(start, bytes); } }
private static void endDeserialization(long start, int bytes) { DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { stats.endDeserialization(start, bytes); } }
private static long startSerialization() { long result = 0; DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { result = stats.startSerialization(); } return result; }
private static long startSerialization() { long result = 0; DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { result = stats.startSerialization(); } return result; }
private static void endSerialization(long start, int bytes) { DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { stats.endSerialization(start, bytes); } }
private static long startDeserialization() { long result = 0; DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { result = stats.startDeserialization(); } return result; }
private static void endDeserialization(long start, int bytes) { DMStats stats = InternalDistributedSystem.getDMStats(); if (stats != null) { stats.endDeserialization(start, bytes); } }
public void run() { final DMStats stats = getSystem().getDMStats(); assertEquals(2, stats.getInitialImageMessagesInFlight()); } });
public void run() { final DMStats stats = getSystem().getDMStats(); waitForCriterion(new WaitCriterion() { public boolean done() { return stats.getInitialImageMessagesInFlight() == 0; } public String description() { return "Timeout waiting for all initial image messages to be processed: " + stats.getInitialImageMessagesInFlight(); } }, MAX_WAIT, 100, true); } });
public static DMStats getDMStats(GemFireCacheImpl gfc) { if (gfc != null) { return gfc.getDistributionManager().getStats(); } else { DMStats result = InternalDistributedSystem.getDMStats(); if (result == null) { result = new LonerDistributionManager.DummyDMStats(); } return result; } }
public Object call() { GemFireCacheImpl cache = (GemFireCacheImpl) getCache(); return cache.getDistributedSystem().getDMStats().getReceivedMessages(); } })).intValue();
public static DMStats getDMStats(GemFireCacheImpl gfc) { if (gfc != null) { return gfc.getDistributionManager().getStats(); } else { DMStats result = InternalDistributedSystem.getDMStats(); if (result == null) { result = new LonerDistributionManager.DummyDMStats(); } return result; } }