Package org.apache.marmotta.ldcache.backend.file

Examples of org.apache.marmotta.ldcache.backend.file.LDCachingFileBackend


        config.addEndpoint(new DummyEndpoint());


        tmpDirectory = Files.createTempDir();

        backend = new LDCachingFileBackend(tmpDirectory);
        lsail = new GenericLinkedDataSail(new MemoryStore(),backend, cacheFilter, config);
        repository = new SailRepository(lsail);
        repository.initialize();
    }
View Full Code Here


        cacheFilter = new AlwaysTrueFilter<Resource>();

        try {
            ClientConfiguration config = new ClientConfiguration();

            backend = new LDCachingFileBackend(dataDirectory);
            sail = new GenericLinkedDataSail(new MemoryStore(),backend, cacheFilter, config);
            Repository repository = new SailRepository(sail);
            repository.initialize();
            setRepository(repository);
View Full Code Here

    @Before
    public void initDatabase() throws RepositoryException {
        tmpDirectory = Files.createTempDir();

        backend = new LDCachingFileBackend(tmpDirectory);
        backend.initialize();
    }
View Full Code Here

        String cache_context = configurationService.getCacheContext();

        directory = new File(configurationService.getHome() + File.separator + "ldcache");

        try {
            backend = new LDCachingFileBackend(directory);
            sail = new GenericLinkedDataSail(parent, backend, new NotFilter<Resource>(cacheFilters), ldclientConfig);
            return sail;
        } catch (RepositoryException e) {
            log.error("could not initialize LDCache file backend",e);
            return null;
View Full Code Here

    protected LDCachingBackend createBackend() {
        final File storageDir = Files.createTempDir();

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

                    try {
View Full Code Here

    @Before
    public void initDatabase() throws RepositoryException {
        tmpDirectory = Files.createTempDir();

        backend = new LDCachingFileBackend(tmpDirectory);
        backend.initialize();
    }
View Full Code Here

        config.addEndpoint(new DummyEndpoint());


        tmpDirectory = Files.createTempDir();

        backend = new LDCachingFileBackend(tmpDirectory);
        lsail = new GenericLinkedDataSail(new MemoryStore(),backend, cacheFilter, config);
        repository = new SailRepository(lsail);
        repository.initialize();
    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.ldcache.backend.file.LDCachingFileBackend

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.