Examples of resetStatistics()


Examples of org.infinispan.eviction.PassivationManager.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            PassivationManager manager = cache.getAdvancedCache().getComponentRegistry().getComponent(PassivationManager.class);
            if (manager != null) {
               manager.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.interceptors.ActivationInterceptor.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                    .getInterceptorChain(), ActivationInterceptor.class);
            if (interceptor != null) {
                interceptor.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.interceptors.CacheLoaderInterceptor.resetStatistics()

      }

      private void resetStats(Ownership ownership) {
         InterceptorChain chain = extractComponent(cache(ownership), InterceptorChain.class);
         CacheLoaderInterceptor interceptor = (CacheLoaderInterceptor) chain.getInterceptorsWhichExtend(CacheLoaderInterceptor.class).get(0);
         interceptor.resetStatistics();
      }
   }

}
View Full Code Here

Examples of org.infinispan.interceptors.CacheMgmtInterceptor.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            CacheMgmtInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                    .getInterceptorChain(), CacheMgmtInterceptor.class);
            if (interceptor != null) {
                interceptor.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.interceptors.CacheWriterInterceptor.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                    .getInterceptorChain(), CacheWriterInterceptor.class);
            if (interceptor != null) {
                interceptor.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.interceptors.InvalidationInterceptor.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            InvalidationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                    .getInterceptorChain(), InvalidationInterceptor.class);
            if (interceptor != null) {
                interceptor.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.interceptors.TxInterceptor.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            TxInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                    .getInterceptorChain(), TxInterceptor.class);
            if (interceptor != null) {
                interceptor.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.remoting.rpc.RpcManagerImpl.resetStatistics()

        @Override
        protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
            RpcManagerImpl rpcManager = (RpcManagerImpl) cache.getAdvancedCache().getRpcManager();
            if (rpcManager != null) {
                rpcManager.resetStatistics();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.infinispan.stats.topK.CacheUsageInterceptor.resetStatistics()

   }

   private void resetStreamSummary(Cache<?, ?> cache) {
      CacheUsageInterceptor summaryInterceptor = getTopKey(cache);
      Assert.assertNotNull(summaryInterceptor);
      summaryInterceptor.resetStatistics();
   }

   private void assertTopKeyAccesses(Cache<?, ?> cache, Object key, long expected, boolean readAccesses) {
      CacheUsageInterceptor summaryInterceptor = getTopKey(cache);
      boolean isLocal = isOwner(cache, key);
View Full Code Here

Examples of org.jboss.cache.interceptors.ActivationInterceptor.resetStatistics()

      assertEquals("CacheLoaderMisses count error: ", miss, act.getCacheLoaderMisses());
      assertEquals("Activations count error: ", activations, act.getActivations());
      assertEquals("Passivations count error: ", 3, pass.getPassivations());

      // reset statistics
      act.resetStatistics();
      pass.resetStatistics();

      // check the statistics again
      assertEquals("CacheLoaderLoads count error after reset: ", 0, act.getCacheLoaderLoads());
      assertEquals("CacheLoaderMisses count error after reset: ", 0, act.getCacheLoaderMisses());
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.