@Override protected void createCacheManagers() throws Throwable { final ConfigurationBuilder c = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true); c .clustering().hash().numOwners(3) .transaction().lockingMode(LockingMode.PESSIMISTIC); createCluster(c, 3); waitForClusterToForm(); }
@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder config = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true); config.clustering().hash().numOwners(1).transaction().transactionManagerLookup(new EmbeddedTransactionManagerLookup()); createCluster(config, 2); waitForClusterToForm(); }
@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder dcc = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true); dcc.clustering().hash().numOwners(1).transaction().lockingMode(LockingMode.PESSIMISTIC); amend(dcc); createCluster(dcc, 2); waitForClusterToForm(); }
@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder dcc = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true); dcc.clustering().hash().numOwners(1).transaction().lockingMode(LockingMode.OPTIMISTIC); createCluster(dcc, 3); waitForClusterToForm(); advancedCache(2).addInterceptor(new RollbackBeforePrepareTest.FailPrepareInterceptor(), 1); }
@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder config = getDefaultClusteredCacheConfig(cacheMode, true); config .locking().lockAcquisitionTimeout(LOCK_TIMEOUT) .clustering().remoteTimeout(REPL_TIMEOUT) .clustering().hash().numOwners(numOwners) .transaction().transactionManagerLookup(new EmbeddedTransactionManagerLookup()) .transaction().completedTxTimeout(3600000); createCluster(config, 3); waitForClusterToForm(); failPrepareInterceptor = new FailPrepareInterceptor(); advancedCache(2).addInterceptor(failPrepareInterceptor, 1); }