Package org.apache.marmotta.ldcache.api

Examples of org.apache.marmotta.ldcache.api.LDCachingBackend


     *
     * @return
     */
    @Override
    protected LDCachingBackend createBackend() {
        LDCachingBackend backend = new LDCachingInfinispanBackend();
        backend.initialize();

        return backend;
    }
View Full Code Here


    private LDCache ldcache;


    public LDCacheBackend() {
        LDCachingBackend backend = new LDCachingInfinispanBackend();
        backend.initialize();

        this.ldcache = new LDCache(new CacheConfiguration(), backend);
    }
View Full Code Here

         *
         * @return
         */
        @Override
    protected LDCachingBackend createBackend() {
        LDCachingBackend backend = new LDCachingInfinispanBackend();
        backend.initialize();

        return backend;
    }
View Full Code Here

     */
    @Override
    protected LDCachingBackend createBackend() {
        final File storageDir = Files.createTempDir();

        LDCachingBackend backend = null;
        try {
            backend = new LDCachingFileBackend(storageDir) {
                @Override
                public void shutdown() {
                    super.shutdown();

                    try {
                        FileUtils.deleteDirectory(storageDir);
                    } catch (IOException e) {
                    }
                }
            };
            backend.initialize();

            return backend;
        } catch (RepositoryException e) {
            throw new AssumptionViolatedException("could not initialise backend",e);
        }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.ldcache.api.LDCachingBackend

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.