Package org.infinispan.interceptors

Examples of org.infinispan.interceptors.CacheWriterInterceptor


         }

         if (loaders.isEmpty() && writers.isEmpty()) {
            ComponentRegistry cr = cache.getComponentRegistry();
            CacheLoaderInterceptor cli = cr.getComponent(CacheLoaderInterceptor.class);
            CacheWriterInterceptor csi = cr.getComponent(CacheWriterInterceptor.class);
            cli.disableInterceptor();
            csi.disableInterceptor();
            cache.removeInterceptor(cli.getClass());
            cache.removeInterceptor(csi.getClass());
            enabled = false;
         }
      }
   }
View Full Code Here


            super(0);
        }

        @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

                            .getInterceptorChain(), ActivationInterceptor.class);
                    result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);
                    break;
                }
                case CACHE_LOADER_STORES: {
                    CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
                            .getInterceptorChain(), CacheWriterInterceptor.class);
                    result.set(interceptor != null ? interceptor.getWritesToTheStores() : 0);
                    break;
                }
            }
            context.getResult().set(result);
        }
View Full Code Here

                    ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(interceptors, ActivationInterceptor.class);
                    result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);
                    break;
                }
                case CACHE_LOADER_STORES: {
                    CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(interceptors, CacheWriterInterceptor.class);
                    result.set(interceptor != null ? interceptor.getWritesToTheStores() : 0);
                    break;
                }
                case CACHE_NAME: {
                    result.set(cache.getName());
                    break;
View Full Code Here

         }

         if (loaders.isEmpty() && writers.isEmpty()) {
            ComponentRegistry cr = cache.getComponentRegistry();
            CacheLoaderInterceptor cli = cr.getComponent(CacheLoaderInterceptor.class);
            CacheWriterInterceptor csi = cr.getComponent(CacheWriterInterceptor.class);
            cli.disableInterceptor();
            csi.disableInterceptor();
            cache.removeInterceptor(cli.getClass());
            cache.removeInterceptor(csi.getClass());
            enabled = false;
         }
      }
   }
View Full Code Here

         }

         if (loaders.isEmpty() && writers.isEmpty()) {
            ComponentRegistry cr = cache.getComponentRegistry();
            CacheLoaderInterceptor cli = cr.getComponent(CacheLoaderInterceptor.class);
            CacheWriterInterceptor csi = cr.getComponent(CacheWriterInterceptor.class);
            cli.disableInterceptor();
            csi.disableInterceptor();
            cache.removeInterceptor(cli.getClass());
            cache.removeInterceptor(csi.getClass());
            enabled = false;
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.infinispan.interceptors.CacheWriterInterceptor

Copyright © 2018 www.massapicom. 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.