public void run() { // @todo davidw Remove reliance on shared memory for // configuration Properties props = new Properties(); // props.setProperty(DistributionConfig.ENABLE_SHARED_MEMORY_NAME, "true"); // File sysDir = // GemFireConnectionFactory.getInstance().getSystemDirectory(); // props.setProperty(DistributionConfig.SYSTEM_DIRECTORY_NAME, sysDir.getPath()); getSystem(props); } });
VM vm1 = host.getVM(1); createSystem(vm0); createSystem(vm1); DistributedTestCase.join(ai0, 30 * 1000, getLogWriter()); if (ai0.exceptionOccurred()) { fail("got exception", ai0.getException());
VM vm1 = host.getVM(1); createSystem(vm0); createSystem(vm1);
/** * Do we see all of the distribution managers in the distributed * system? */ public void testCountDMs() { Host host = Host.getHost(0); VM vm0 = host.getVM(0); VM vm1 = host.getVM(1); final int systemCount = 2; createSystem(vm0); vm0.invoke(new SerializableRunnable("Count DMs") { public void run() { DM dm = getSystem().getDistributionManager(); assertEquals(systemCount + 1, dm.getNormalDistributionManagerIds().size()); } }); createSystem(vm1); vm1.invoke(new SerializableRunnable("Count DMs Again") { public void run() { DM dm = getSystem().getDistributionManager(); assertEquals(systemCount + 2, dm.getNormalDistributionManagerIds().size()); } }); }
public void run() { getSystem().disconnect(); } });
VM vm1 = host.getVM(1); createSystem(vm0); createSystem(vm1);
public void run() { getSystem().disconnect(); } });
VM vm1 = host.getVM(1); createSystem(vm0); vm0.invoke(new SerializableRunnable("Install listener") { public void run() { createSystem(vm1);
public void run() { DM dm = getSystem().getDistributionManager(); assertEquals(systemCount + 2, dm.getNormalDistributionManagerIds().size()); } });
public void run() { DM dm = getSystem().getDistributionManager(); assertEquals(systemCount + 1, dm.getNormalDistributionManagerIds().size()); } });
public void run() { DM dm = getSystem().getDistributionManager(); assertEquals("For DM " + dm.getId(), 3, dm.getOtherNormalDistributionManagerIds().size()); FirstMessage message = new FirstMessage(); dm.putOutgoing(message); } });
public void run() { DM dm = getSystem().getDistributionManager(); listener = new TestMembershipListener(); dm.addMembershipListener(listener); } });
public void run() { // Send a request, wait for a response DM dm = getSystem().getDistributionManager(); int expected = dm.getOtherNormalDistributionManagerIds().size(); assertEquals("For DM " + dm.getId(), 3, expected); Response.totalResponses = 0; Request request = new Request(); ReplyProcessor21 processor = new ReplyProcessor21(getSystem(), dm.getOtherNormalDistributionManagerIds()); request.processorId = processor.getProcessorId(); dm.putOutgoing(request); try { processor.waitForReplies(); } catch (Exception ex) { fail("While waiting for replies", ex); } assertEquals(expected, Response.totalResponses); } });
public void run() { DM dm = getSystem().getDistributionManager(); OnlyGFDMReply message = new OnlyGFDMReply(); ReplyProcessor21 processor = new ReplyProcessor21(getSystem(), dm.getOtherNormalDistributionManagerIds()); message.processorId = processor.getProcessorId(); dm.putOutgoing(message); try { processor.waitForReplies(); } catch (Exception ex) { fail("While waiting for replies", ex); } } });