Examples of RemoteCacheManagerCallable


Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

      assertEquals(0, listeners.size());
   }

   public void testCustomTypeEvents() {
      final EventLogListener eventListener = new EventLogListener();
      withClientListener(eventListener, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            RemoteCache<CustomKey, String> cache = rcm.getCache();
            expectNoEvents(eventListener);
            CustomKey key = new CustomKey(1);
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

      final EventLogListener eventListener = new EventLogListener();
      RemoteCache<Integer, String> cache = remoteCacheManager.getCache();
      cache.put(1, "one");
      cache.put(2, "two");
      expectNoEvents(eventListener);
      withClientListener(eventListener, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            expectUnorderedEvents(eventListener, ClientEvent.Type.CLIENT_CACHE_ENTRY_CREATED, 1, 2);
         }
      });
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

   }

   public void testCustomEvents() {
      final CustomEventListener eventListener = new CustomEventListener();
      converterFactory.dynamic = false;
      withClientListener(eventListener, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            RemoteCache<Integer, String> cache = rcm.getCache();
            eventListener.expectNoEvents();
            cache.put(1, "one");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

   }

   public void testParameterBasedConversion() {
      final CustomEventListener eventListener = new CustomEventListener();
      converterFactory.dynamic = true;
      withClientListener(eventListener, null, new Object[]{2}, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            RemoteCache<Integer, String> cache = rcm.getCache();
            eventListener.expectNoEvents();
            cache.put(1, "one");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

   public void testConvertedEventsReplay() {
      final CustomEventListener eventListener = new CustomEventListener();
      converterFactory.dynamic = false;
      RemoteCache<Integer, String> cache = remoteCacheManager.getCache();
      cache.put(1, "one");
      withClientListener(eventListener, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            eventListener.expectSingleCustomEvent(1, "one");
         }
      });
      converterFactory.dynamic = true;
      cache.put(2, "two");
      withClientListener(eventListener, null, new Object[]{2}, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            eventListener.expectSingleCustomEvent(2, null);
         }
      });
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

      return server;
   }

   public void testEventForwarding() {
      final EventLogListener eventListener = new EventLogListener();
      withClientListener(eventListener, new RemoteCacheManagerCallable(client(0)) {
         @Override
         public void call() {
            RemoteCache<Integer, String> c3 = client(2).getCache();
            expectNoEvents(eventListener);
            c3.put(1, "one");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

      });
   }

   public void testFilteringInCluster() {
      final FilteredEventLogListener eventListener = new FilteredEventLogListener();
      withClientListener(eventListener, new RemoteCacheManagerCallable(client(0)) {
         @Override
         public void call() {
            RemoteCache<Integer, String> c3 = client(2).getCache();
            expectNoEvents(eventListener);
            c3.put(11, "oneone");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

      });
   }

   public void testConversionInCluster() {
      final CustomEventListener eventListener = new CustomEventListener();
      withClientListener(eventListener, new RemoteCacheManagerCallable(client(0)) {
         @Override
         public void call() {
            RemoteCache<Integer, String> c3 = client(2).getCache();
            eventListener.expectNoEvents();
            c3.put(111, "oneoneone");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

   }

   public void testFilteredEvents() {
      final FilteredEventLogListener eventListener = new FilteredEventLogListener();
      filterFactory.dynamic = false;
      withClientListener(eventListener, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            RemoteCache<Integer, String> cache = rcm.getCache();
            expectNoEvents(eventListener);
            cache.put(1, "one");
View Full Code Here

Examples of org.infinispan.client.hotrod.test.RemoteCacheManagerCallable

   }

   public void testParameterBasedFiltering() {
      final FilteredEventLogListener eventListener = new FilteredEventLogListener();
      filterFactory.dynamic = true;
      withClientListener(eventListener, new Object[]{3}, null, new RemoteCacheManagerCallable(remoteCacheManager) {
         @Override
         public void call() {
            RemoteCache<Integer, String> cache = rcm.getCache();
            expectNoEvents(eventListener);
            cache.put(1, "one");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.