Examples of CacheConfiguration


Examples of org.apache.archiva.configuration.CacheConfiguration

        value.setLdapGroupMappings( ldapGroupMappings );
        java.util.Map configurationProperties = registry.getProperties( prefix + "configurationProperties" );
        value.setConfigurationProperties( configurationProperties );
        boolean useUsersCache = registry.getBoolean( prefix + "useUsersCache", value.isUseUsersCache() );
        value.setUseUsersCache( useUsersCache );
        CacheConfiguration usersCacheConfiguration = readCacheConfiguration( prefix + "usersCacheConfiguration.", registry );
        value.setUsersCacheConfiguration( usersCacheConfiguration );

        return value;
    }
View Full Code Here

Examples of org.apache.archiva.configuration.CacheConfiguration

        return value;
    }
   
    private CacheConfiguration readCacheConfiguration( String prefix, Registry registry )
    {
        CacheConfiguration value = new CacheConfiguration();

    int timeToIdleSeconds = registry.getInt( prefix + "timeToIdleSeconds", value.getTimeToIdleSeconds() );
        value.setTimeToIdleSeconds( timeToIdleSeconds );
    int timeToLiveSeconds = registry.getInt( prefix + "timeToLiveSeconds", value.getTimeToLiveSeconds() );
        value.setTimeToLiveSeconds( timeToLiveSeconds );
    int maxElementsInMemory = registry.getInt( prefix + "maxElementsInMemory", value.getMaxElementsInMemory() );
        value.setMaxElementsInMemory( maxElementsInMemory );
    int maxElementsOnDisk = registry.getInt( prefix + "maxElementsOnDisk", value.getMaxElementsOnDisk() );
        value.setMaxElementsOnDisk( maxElementsOnDisk );

        return value;
    }
View Full Code Here

Examples of org.apache.marmotta.ldcache.model.CacheConfiguration

        super(baseSail);

        this.store = getBaseStore();
        this.cache_context = cacheContextUri;
        this.acceptor = acceptor;
        this.config = new CacheConfiguration();
        if(clientConfiguration != null) {
            config.setClientConfiguration(clientConfiguration);
        }
    }
View Full Code Here

Examples of org.geoserver.geofence.cache.CacheConfiguration

    }

    public void IGNOREtestSize() {
        CustomTicker ticker = new CustomTicker();

        CacheConfiguration config = new CacheConfiguration();
        config.setSize(2);
        config.setRefreshMilliSec(500);
        config.setExpireMilliSec(1000);
        config.setCustomTicker(ticker);

        configManager.setCacheConfiguration(config);

        CachedRuleReader cachedRuleReader = new CachedRuleReader(configManager);
        cachedRuleReader.setRealRuleReaderService(realReader);
View Full Code Here

Examples of org.shiftone.cache.CacheConfiguration

    private static final Log   LOG = new Log(HibernateCacheProvider.class);
    private CacheConfiguration config;

    public HibernateCacheProvider() throws ConfigurationException
    {
        config = new CacheConfiguration();
    }
View Full Code Here

Examples of org.shiftone.cache.CacheConfiguration

    private static final Log LOG = new Log(ClusterTestCase.class);

    public void testCluster() throws Exception
    {

        CacheConfiguration config   = new CacheConfiguration();
        CacheFactory       factoryA = config.getCacheFactory("clusterA");
        CacheFactory       factoryB = config.getCacheFactory("clusterB");
        Cache              oneA     = factoryA.newInstance("one", 1000, 1000);
        Cache              oneB     = factoryB.newInstance("one", 1000, 1000);

        for (int i = 0; i < 1000; i++)
        {
View Full Code Here

Examples of org.teiid.cache.CacheConfiguration

        core.setTransactionService(new FakeTransactionService());
       
        config = new DQPConfiguration();
        config.setMaxActivePlans(1);
        config.setUserRequestSourceConcurrency(2);
        config.setResultsetCacheConfig(new CacheConfiguration());
        core.start(config);
        core.getPrepPlanCache().setModTime(1);
        core.getRsCache().setModTime(1);
    }
View Full Code Here

Examples of org.teiid.cache.CacheConfiguration

        this.bufferManager = bufferManager;
        this.executor = executor;
        this.cache = cache;
        this.distributedCache = distibutedCache;
        if (distibutedCache != null) {
          CacheConfiguration cc = new CacheConfiguration(Policy.LRU, -1, -1, "MaterializationUpdates"); //$NON-NLS-1$
          tables = cacheFactory.get(cc.getLocation(), cc);
        }
    }
View Full Code Here

Examples of org.teiid.cache.CacheConfiguration

            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);
View Full Code Here

Examples of org.teiid.cache.CacheConfiguration

  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
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.