private void initAccessorAndDataStore(VM accessor, VM datastore1, VM datastore2, final int redundantCopies) { datastore2.invoke(new SerializableCallable() { public Object call() throws Exception { createRegion(false/*accessor*/, redundantCopies, null); return null; } }); initAccessorAndDataStore(accessor, datastore1, redundantCopies); }
private void initAccessorAndDataStoreWithInterestPolicy(VM accessor, VM datastore1, VM datastore2, final int redundantCopies) { datastore2.invoke(new SerializableCallable() { public Object call() throws Exception { createRegion(false/*accessor*/, redundantCopies, InterestPolicy.ALL); return null; } }); initAccessorAndDataStore(accessor, datastore1, redundantCopies); }
VM accessor = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(accessor, datastore, 0);
VM accessor = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(accessor, datastore, 0);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(datastore);
public void Bug44146_testRemoteTxCleanupOnCrash() { Host host = Host.getHost(0); VM accessor = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(accessor, datastore, 0); accessor.invoke(new SerializableCallable() { public Object call() throws Exception { Region cust = getCache().getRegion(CUSTOMER); TXManagerImpl mgr = getGemfireCache().getTxManager(); mgr.begin(); cust.put(new CustId(6), new Customer("customer6", "address6")); return null; } }); final InternalDistributedMember member = (InternalDistributedMember)accessor.invoke(new SerializableCallable() { public Object call() throws Exception { return getGemfireCache().getMyId(); } }); datastore.invoke(new SerializableCallable() { public Object call() throws Exception { TXManagerImpl mgr = getGemfireCache().getTxManager(); assertEquals(1, mgr.hostedTransactionsInProgressForTest()); mgr.memberDeparted(member, true); assertEquals(0, mgr.hostedTransactionsInProgressForTest()); return null; } }); }
VM accessor = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(accessor, datastore, 0);
VM datastore1 = host.getVM(1); VM datastore2 = host.getVM(2); initAccessorAndDataStore(accessor, datastore1, datastore2, 0);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(datastore);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(datastore);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(accessor);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(accessor);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(accessor);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(datastore);
VM client = host.getVM(2); initAccessorAndDataStore(accessor, datastore, 0); int port = startServer(datastore);
VM acc = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(acc, datastore, 0); VM accessor = getVMForTransactions(acc, datastore);
VM accessor = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(accessor, datastore, 0);
VM datastore2 = host.getVM(2); initAccessorAndDataStore(accessor, datastore1, datastore2, 0); final CustId custId = new CustId(19);
VM acc = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(acc, datastore, 0); VM accessor = getVMForTransactions(acc, datastore);
VM acc = host.getVM(0); VM datastore = host.getVM(1); initAccessorAndDataStore(acc, datastore, 0); VM accessor = getVMForTransactions(acc, datastore);