Examples of CacheImpl


Examples of org.apache.chemistry.opencmis.client.bindings.cache.impl.CacheImpl

        int repCount = session.get(SessionParameter.CACHE_SIZE_REPOSITORIES, CACHE_SIZE_REPOSITORIES);
        if (repCount < 1) {
            repCount = CACHE_SIZE_REPOSITORIES;
        }

        cache = new CacheImpl("Repository Info Cache");
        cache.initialize(new String[] { MapCacheLevelImpl.class.getName() + " " + MapCacheLevelImpl.CAPACITY + "="
                + repCount });
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.bindings.cache.impl.CacheImpl

        int typeCount = session.get(SessionParameter.CACHE_SIZE_TYPES, CACHE_SIZE_TYPES);
        if (typeCount < 1) {
            typeCount = CACHE_SIZE_TYPES;
        }

        cache = new CacheImpl("Type Definition Cache");
        cache.initialize(new String[] {
                MapCacheLevelImpl.class.getName() + " " + MapCacheLevelImpl.CAPACITY + "=" + repCount, // repository
                LruCacheLevelImpl.class.getName() + " " + LruCacheLevelImpl.MAX_ENTRIES + "=" + typeCount // type
        });
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl

    private CmisObject createCmisObject(final String id) {
        return new CmisObjectMock(id);
    }

    private Cache createCache(int cacheSize, int ttl) {
        Cache cache = new CacheImpl();

        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put(SessionParameter.CACHE_SIZE_OBJECTS, "" + cacheSize);
        parameters.put(SessionParameter.CACHE_TTL_OBJECTS, "" + ttl);

        cache.initialize(null, parameters);

        return cache;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl

    private static CmisObject createCmisObject(final String id) {
        return new CmisObjectMock(id);
    }

    private static Cache createCache(int cacheSize, int ttl) {
        Cache cache = new CacheImpl();

        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put(SessionParameter.CACHE_SIZE_OBJECTS, "" + cacheSize);
        parameters.put(SessionParameter.CACHE_TTL_OBJECTS, "" + ttl);

        cache.initialize(null, parameters);

        return cache;
    }
View Full Code Here

Examples of org.apache.stanbol.entityhub.core.site.CacheImpl

            cacheRegistration = null;
            cache = null;
        }
        if(cc != null && yard != null){
            try {
                cache = new CacheImpl(yard,additionalMappings, nsPrefixService);
            } catch (YardException e) {
                log.warn("Unable to init Cache for Yard '"+yard.getId()+"'!",e);
            }
            cacheRegistration = cc.getBundleContext().registerService(Cache.class.getName(), cache,
                OsgiUtils.copyConfig(cc.getProperties()));
View Full Code Here

Examples of org.eclipse.persistence.internal.jpa.CacheImpl

    public CacheImpl getCache(){
        verifyOpen();
        if (myCache == null){
            ServerSession session=this.getServerSession();
            myCache = new CacheImpl(this,session.getIdentityMapAccessor());
            }
            return myCache;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.jpa.CacheImpl

    public CacheImpl getCache(){
        verifyOpen();
        if (myCache == null){
            ServerSession session=this.getServerSession();
            myCache = new CacheImpl(this,session.getIdentityMapAccessor());
            }
            return myCache;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.jpa.config.cache.CacheImpl

        getMetadata().setAdditionalCriteria(additionalCriteria.getMetadata());
        return additionalCriteria;
    }
   
    public Cache setCache() {
        CacheImpl cache = new CacheImpl();
        getMetadata().setCache(cache.getMetadata());
        return cache;
    }
View Full Code Here

Examples of org.hibernate.internal.CacheImpl

public class CacheInitiator implements SessionFactoryServiceInitiator<CacheImplementor> {
  public static final CacheInitiator INSTANCE = new CacheInitiator();

  @Override
  public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry) {
    return new CacheImpl( sessionFactory );
  }
View Full Code Here

Examples of org.hibernate.internal.CacheImpl

    return new CacheImpl( sessionFactory );
  }

  @Override
  public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, ServiceRegistryImplementor registry) {
    return new CacheImpl( sessionFactory );
  }
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.