Examples of Cache


Examples of org.apache.oodt.cas.filemgr.ingest.Cache

                    dataTransferFactory.getClass()).newInstance(
                    dataTransferFactory);
        } else {
            Class<CacheFactory> cacheFactory = (Class<CacheFactory>) Class
                    .forName(cacheFactoryClass);
            Cache cache = cacheFactory.newInstance().createCache();
            return (Ingester) Class.forName(ingesterClass).getConstructor(
                    dataTransferFactory.getClass(), cache.getClass())
                    .newInstance(dataTransferFactory, cache);
        }
    }

Examples of org.apache.shiro.cache.Cache

        //the cache instances provided by our custom CacheManager and not the Default MemoryConstrainedCacheManager

        SessionDAO sessionDAO = ((DefaultSessionManager) ((DefaultSecurityManager) sm).getSessionManager()).getSessionDAO();
        assertTrue(sessionDAO instanceof EnterpriseCacheSessionDAO);
        CachingSessionDAO cachingSessionDAO = (CachingSessionDAO) sessionDAO;
        Cache activeSessionsCache = cachingSessionDAO.getActiveSessionsCache();
        assertTrue(activeSessionsCache instanceof MapCache);
        MapCache mapCache = (MapCache) activeSessionsCache;

        //this is the line that verifies Caches created by our specific CacheManager are not overwritten by the
        //default cache manager's caches:

Examples of org.apache.slide.projector.store.Cache

 
  public Result process(Map parameter, Context context) throws Exception {
    URI processorUri = ProcessorManager.getInstance().getProcessorDescriptor(this).getUri();
    context.setProcess(processorUri);        // Remember current process in context
    String nextStep = getStep(firstStep, context);   // Lookup the first step of this process
    Store stepStore = new Cache();           // This store is used to allow stack-like result/parameter delivery between steps 
    Result result = new Result(OK);         // The result of this process processor
    Result stepResult = null;               // The result of the last executed step
    Step step;                    // The current step
    Store enclosingStepStore = context.getStore(Store.STEP)
    Map enclosingParameters = ((Cache)context.getStore(Store.INPUT)).getMap()

Examples of org.apache.stanbol.entityhub.servicesapi.yard.Cache

    public QueryResultList<Entity> findEntities(FieldQuery query) throws SiteException {
        List<Entity> results;
        if (siteConfiguration.getCacheStrategy() == CacheStrategy.all) {
            // TODO: check if query can be executed based on the base
            // configuration of the Cache
            Cache cache = getCache();
            if (cache != null) {
                try {
                    // When using the Cache, directly get the representations!
                    QueryResultList<Representation> representations = cache.findRepresentation((query));
                    results = new ArrayList<Entity>(representations.size());
                    for (Representation result : representations) {
                        Entity entity = new EntityImpl(getId(), result, null);
                        results.add(entity);
                        initEntityMetadata(entity, siteMetadata,

Examples of org.apache.stratum.jcs.engine.control.Cache

        }

        getCacheManager();
        // interface limitation here

        Cache cache = ( Cache ) cacheMgr.getCache( cacheName );
        cache.remove( key, cache.REMOTE_INVOKATION );
    }

Examples of org.apache.tools.ant.types.selectors.modifiedselector.Cache

    /**
     * Propertycache must have a set 'cachefile' attribute.
     * The default in ModifiedSelector "cache.properties" is set by the selector.
     */
    public void testPropcacheInvalid() {
        Cache cache = new PropertiesfileCache();
        if (cache.isValid())
            fail("PropertyfilesCache does not check its configuration.");
    }

Examples of org.castor.cache.Cache

        assertTrue(cache.containsKey("fourth key"));
        assertTrue(cache.containsKey("fifth key"));
    }

    public void testKeySet() {
        Cache cache = initialize();

        Set set = cache.keySet();
       
        assertEquals(3, set.size());
        assertTrue(set.contains("first key"));
        assertTrue(set.contains("second key"));
        assertTrue(set.contains("third key"));

Examples of org.chaidb.db.helper.cache.Cache

    }

    public BTreePathStorage(String storagePath, int cacheSize) {
        this.keyFile = new File(storagePath + KEY_FILE_SUFFIX);
        this.dataFile = new File(storagePath + DATA_FILE_SUFFIX);
        this.cache = new Cache(cacheSize);
        this.cache.clearCache();
    }

Examples of org.codehaus.plexus.cache.Cache

   
    public String flush()
    {
        if( !StringUtils.isEmpty( cacheKey ) )
        {
            Cache cache = caches.get( cacheKey );
            cache.clear();
        }

        return SUCCESS;
    }

Examples of org.dayatang.cache.Cache

    @Test
    @Ignore
    public void testRedisCache() throws IOException {
        String file = getClass().getResource("/aaa.jpg").getFile();
        Cache redisCache = new RedisBasedCache("127.0.0.1", 6379);
        ImageAccess imageAccess = new CacheImageAccess(redisCache);
        String uuid = imageAccess.saveImageFile(FileUtils.readFileToByteArray(new File(file)), "aaa.jpg");
        System.out.println(uuid);
        assertTrue(uuid != null);
        ImageFile imageFile = imageAccess.getImageFile(uuid);
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.