Examples of DefaultCacheFactory


Examples of org.jboss.cache.DefaultCacheFactory

   protected final Cache cache;

   public IdentityStoreCacheProviderImpl(InputStream cacheConfigInputStream)
   {
      CacheFactory factory = new DefaultCacheFactory();

      this.cache = factory.createCache(cacheConfigInputStream);

      this.cache.start();

   }
View Full Code Here

Examples of org.jboss.cache.DefaultCacheFactory

      evictionRegionConfigs.add(buildEvictionRegionConfig("/org/jboss/test/data",6));
      evConfig.setEvictionRegionConfigs(evictionRegionConfigs);

      config.setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
      config.setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache = (CacheSPI)new DefaultCacheFactory().createCache(config);
   }
View Full Code Here

Examples of org.jboss.cache.DefaultCacheFactory

      regionConfigs.add(createEvictionRegionConfig("/org/jboss/test/data", -1, 5));
      regionConfigs.add(createEvictionRegionConfig("/test/", 5000, 1));

      evConfig.setEvictionRegionConfigs(regionConfigs);

      cache = (CacheSPI<Object, Object>) new DefaultCacheFactory().createCache(conf, false);
      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
      cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache.start();
   }
View Full Code Here

Examples of org.jboss.cache.DefaultCacheFactory

   private RegionManager regionManager;

   @BeforeMethod(alwaysRun = true)
   public void setUp() throws Exception
   {
      cache = (CacheSPI<Object, Object>) new DefaultCacheFactory().createCache(false);
      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
      cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache.getConfiguration().setCacheMode("LOCAL");
      EvictionConfig ec = new EvictionConfig();
View Full Code Here

Examples of org.jboss.metadata.plugins.cache.DefaultCacheFactory

    */
   public CachingMetaDataContext(MetaDataContext parent, List<MetaDataRetrieval> retrievals, CacheFactory factory)
   {
      super(parent, retrievals);
      if (factory == null)
         factory = new DefaultCacheFactory();
      validTime = getValidTime().getValidTime();
      this.factory = factory;
      this.fqn = factory.createFqn(this);
   }
View Full Code Here

Examples of org.teiid.cache.DefaultCacheFactory

  @Override
  public <K, V> Cache<K, V> get(String location, CacheConfiguration config) {
    if (this.delegate == null) {
      Object cacheManager = getClusteredCache();
      if (cacheManager == null) {
        this.delegate = new DefaultCacheFactory(config);
      }
      else {
        try {
          this.delegate = new JBossCacheFactory(this.resultsetCacheName, cacheManager);
        } catch (Exception e) {
View Full Code Here

Examples of org.teiid.cache.DefaultCacheFactory

      @Override
      public void execute(Runnable command) {
        command.run();
      }
      };
    dataManager = new TempTableDataManager(hdm, bm, executor, cache, cache, new DefaultCacheFactory());
  }
View Full Code Here

Examples of org.teiid.cache.DefaultCacheFactory

        DQPWorkContext workContext = FakeMetadataFactory.buildWorkContext(metadata, FakeMetadataFactory.exampleBQTVDB());
       
        rm = new DQPCore();
        rm.setTransactionService(new FakeTransactionService());
        rm.setBufferService(new FakeBufferService());
        rm.setCacheFactory(new DefaultCacheFactory());
        rm.start(new DQPConfiguration());
        FakeBufferService bs = new FakeBufferService();

        ConnectorManagerRepository repo = Mockito.mock(ConnectorManagerRepository.class);
        Mockito.stub(repo.getConnectorManager(Mockito.anyString())).toReturn(connectorManager);
View Full Code Here

Examples of org.teiid.cache.DefaultCacheFactory

      @Override
      public BufferManager getBufferManager() {
        return BufferManagerFactory.createBufferManager();
      }
    });
        core.setCacheFactory(new DefaultCacheFactory());
        core.setTransactionService(new FakeTransactionService());
       
        config = new DQPConfiguration();
        config.setMaxActivePlans(1);
        config.setUserRequestSourceConcurrency(2);
View Full Code Here

Examples of org.teiid.cache.DefaultCacheFactory

    this.repo.odbcEnabled();
    this.repo.start();
   
        this.sessionService.setVDBRepository(repo);
        this.dqp.setBufferService(new FakeBufferService());
        this.dqp.setCacheFactory(new DefaultCacheFactory());
        this.dqp.setTransactionService(new FakeTransactionService());
       
        cmr = Mockito.mock(ConnectorManagerRepository.class);
        Mockito.stub(cmr.getConnectorManager("source")).toReturn(new ConnectorManager("x", "x") {
          @Override
          public SourceCapabilities getCapabilities() {
            return new BasicSourceCapabilities();
          }
        });
       
        DQPConfiguration config = new DQPConfiguration();
        config.setResultsetCacheConfig(new CacheConfiguration(Policy.LRU, 60, 250, "resultsetcache")); //$NON-NLS-1$
        this.dqp.setCacheFactory(new DefaultCacheFactory());
        this.dqp.start(config);
        this.sessionService.setDqp(this.dqp);
       
        registerClientService(ILogon.class, logon, null);
        registerClientService(DQP.class, dqp, null);
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.