Examples of deleteContent()


Examples of ch.entwine.weblounge.common.repository.WritableContentRepository.deleteContent()

    WritableContentRepository contentRepository = (WritableContentRepository) getContentRepository(site, true);

    // Delete the resource
    try {
      resource = contentRepository.deleteContent(uri, content);
      resource.setModified(user, new Date());
      // TODO: Remove existing preview images
      contentRepository.put(resource);
    } catch (IllegalStateException e) {
      logger.warn("Tried to remove content from missing resource " + uri);
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.content.ContentWriter.deleteContent()

        // iterate over all possible writers; if the pattern matches, try to store the content and return
        for(Pattern p : writerMap.keySet()) {
            if(p.matcher(resource.toString()).matches()) {
                ContentWriter writer = writerMap.get(p);
                try {
                    writer.deleteContent(resource,"");
                    return true;
                } catch(IOException ex) {
                    log.error("could not write content, writer threw an IO Exception",ex);
                    throw new WritingNotSupportedException(ex.getMessage(),ex);
                }
View Full Code Here

Examples of org.elasticsearch.index.store.Store.deleteContent()

            store = new ByteBufferStore(shardId, settings, null, byteBufferCache);
        } else {
            throw new IllegalArgumentException("No type store [" + type + "]");
        }
        System.out.println("Using Store [" + store + "]");
        store.deleteContent();
        SimpleStoreBenchmark simpleStoreBenchmark = new SimpleStoreBenchmark(store)
                .numberStaticFiles(5).staticFileSize(new ByteSizeValue(5, ByteSizeUnit.MB))
                .dynamicFileSize(new ByteSizeValue(1, ByteSizeUnit.MB))
                .readerThreads(5).readerIterations(10)
                .writerThreads(2).writerIterations(10)
View Full Code Here

Examples of org.elasticsearch.index.store.Store.deleteContent()

//        Store store = new RamStore(shardId, settings);
        Store store = new ByteBufferStore(shardId, settings, null, new ByteBufferCache(settings));
//        Store store = new NioFsStore(shardId, settings);

        store.deleteContent();

        ThreadPool threadPool = new ThreadPool();
        SnapshotDeletionPolicy deletionPolicy = new SnapshotDeletionPolicy(new KeepOnlyLastDeletionPolicy(shardId, settings));
        Engine engine = new RobinEngine(shardId, settings, new ThreadPool(), new IndexSettingsService(shardId.index(), settings), store, deletionPolicy, new FsTranslog(shardId, EMPTY_SETTINGS, new File("work/fs-translog")), new LogByteSizeMergePolicyProvider(store, new IndexSettingsService(shardId.index(), EMPTY_SETTINGS)),
                new ConcurrentMergeSchedulerProvider(shardId, settings), new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NoneBloomCache(shardId.index()));
View Full Code Here

Examples of org.elasticsearch.index.store.memory.ByteBufferStore.deleteContent()

//        Store store = new RamStore(shardId, settings);
        Store store = new ByteBufferStore(shardId, settings, null, new ByteBufferCache(settings));
//        Store store = new NioFsStore(shardId, settings);

        store.deleteContent();

        ThreadPool threadPool = new ThreadPool();
        SnapshotDeletionPolicy deletionPolicy = new SnapshotDeletionPolicy(new KeepOnlyLastDeletionPolicy(shardId, settings));
        Engine engine = new RobinEngine(shardId, settings, new ThreadPool(), new IndexSettingsService(shardId.index(), settings), store, deletionPolicy, new FsTranslog(shardId, EMPTY_SETTINGS, new File("work/fs-translog")), new LogByteSizeMergePolicyProvider(store, new IndexSettingsService(shardId.index(), EMPTY_SETTINGS)),
                new ConcurrentMergeSchedulerProvider(shardId, settings), new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NoneBloomCache(shardId.index()));
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.