private void initOtherId() { VM vm = getOtherVm(); vm.invoke( new CacheSerializableRunnable("Connect") { public void run2() throws CacheException { getCache(); } }); this.otherId = (DistributedMember) vm.invoke(ProxyDUnitTest.class, "getVMDistributedMember"); }
/** * This function creates multiple partition regions in 4 VMs. The range is specified with * parameters startIndexForRegion, endIndexForRegion */ private void createMultiplePartitionRegion( VM vm0, VM vm1, VM vm2, VM vm3, int startIndexForRegion, int endIndexForRegion) { // int AsyncInvocationArrSize = 8; // AsyncInvocation[] async = new AsyncInvocation[AsyncInvocationArrSize]; vm0.invoke( createMultiplePartitionRegion( prPrefix, startIndexForRegion, endIndexForRegion, redundancy, localMaxMemory)); vm1.invoke( createMultiplePartitionRegion( prPrefix, startIndexForRegion, endIndexForRegion, redundancy, localMaxMemory)); vm2.invoke( createMultiplePartitionRegion( prPrefix, startIndexForRegion, endIndexForRegion, redundancy, localMaxMemory)); vm3.invoke( createMultiplePartitionRegion( prPrefix, startIndexForRegion, endIndexForRegion, redundancy, localMaxMemory)); }
private void doCreateOtherVm() { VM vm = getOtherVm(); vm.invoke( new CacheSerializableRunnable("create root") { public void run2() throws CacheException { AttributesFactory af = new AttributesFactory(); af.setDataPolicy(DataPolicy.REPLICATE); af.setScope(Scope.DISTRIBUTED_ACK); createRootRegion("ProxyDUnitTest", af.create()); } }); }
public static void testTransactionTimeOut() { Host host = Host.getHost(0); VM vm0 = host.getVM(0); vm0.invoke(ExceptionsDUnitTest.class, "runTest3"); }
public static void testBlockingTimeOut() { Host host = Host.getHost(0); VM vm0 = host.getVM(0); vm0.invoke(ExceptionsDUnitTest.class, "runTest1"); }
public void tearDown2() throws NamingException, SQLException { Host host = Host.getHost(0); VM vm0 = host.getVM(0); vm0.invoke(ExceptionsDUnitTest.class, "closeCache"); }
public void setUp() throws Exception { super.setUp(); Host host = Host.getHost(0); VM vm0 = host.getVM(0); vm0.invoke(ExceptionsDUnitTest.class, "init"); }