Package org.teiid.cache

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


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

        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

      @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

    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

  public SessionAwareCache(){
    this(DEFAULT_MAX_SIZE_TOTAL);
  }
 
  SessionAwareCache(int maxSize){
    this(new DefaultCacheFactory(), Type.RESULTSET, new CacheConfiguration(Policy.LRU, 60, maxSize, "default")); //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of org.teiid.cache.DefaultCacheFactory

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.