- * Note these tests need a live network interface running in multicast mode to work - *
- *
- * @author Abhishek Sanoujam
- */
-public class RMICacheReplicatorWithLargePayloadIT extends AbstractRMITest {
-
- private static final Logger LOG = Logger.getLogger(RMICacheReplicatorWithLargePayloadIT.class.getName());
-
- private static int MB = 1024 * 1024;
-
- /**
- * {@inheritDoc} Sets up two caches: cache1 is local. cache2 is to be receive updates
- *
- * @throws Exception
- */
- @Before
- public void setUp() throws Exception {
- failFastInsufficientMemory();
- assertThat(getActiveReplicationThreads(), IsEmptyCollection.
- * This test goes into an infinite loop if the chain of notifications is not somehow broken.
- */
- @Test
- public void testPutProgagatesFromAndToEveryCacheManagerAndCache() throws CacheException, InterruptedException {
- final List
- * An entity representing a cache resource from the management API.
- *
- *
- *
- * @author Abhishek Sanoujam
- *
- */
-public class ClusteredInstanceFactoryWrapper implements ClusteredInstanceFactory {
-
- private final TerracottaClient client;
- private final ClusteredInstanceFactory delegate;
-
- /**
- * Constructor accepting the TerracottaClient and the actual factory
- *
- * @param client
- * @param delegate
- */
- public ClusteredInstanceFactoryWrapper(TerracottaClient client, ClusteredInstanceFactory delegate) {
- this.client = client;
- this.delegate = delegate;
-
- }
-
- /**
- * Returns the actual underlying factory
- *
- * @return the actual underlying factory
- */
- protected ClusteredInstanceFactory getActualFactory() {
- return delegate;
- }
-
- /**
- * {@inheritDoc}
- */
- public CacheCluster getTopology() {
- return client.getCacheCluster();
- }
-
- // all methods below delegate to the real factory
-
- /**
- * {@inheritDoc}
- */
- public String getUUID() {
- return delegate.getUUID();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void enableNonStopForCurrentThread(boolean enable) {
- delegate.enableNonStopForCurrentThread(enable);
- }
-
- /**
- * {@inheritDoc}
- */
- public CacheEventListener createEventReplicator(Ehcache cache) {
- return delegate.createEventReplicator(cache);
- }
-
- /**
- * {@inheritDoc}
- */
- public Store createStore(Ehcache cache) {
- return delegate.createStore(cache);
- }
-
- /**
- * {@inheritDoc}
- */
- public TransactionIDFactory createTransactionIDFactory(String uuid, String cacheManagerName) {
- return delegate.createTransactionIDFactory(uuid, cacheManagerName);
- }
-
- /**
- * {@inheritDoc}
- */
- public WriteBehind createWriteBehind(Ehcache cache) {
- return delegate.createWriteBehind(cache);
- }
-
- /**
- * {@inheritDoc}
- */
- public SoftLockManager getOrCreateSoftLockManager(Ehcache cache) {
- return delegate.getOrCreateSoftLockManager(cache);
- }
-
- /**
- * {@inheritDoc}
- */
- public void shutdown() {
- delegate.shutdown();
- }
-
- @Override
- public TerracottaStore createNonStopStore(Callable>, ExpiringStatistic
>, ExpiringStatistic