Examples of FileBlobStore


Examples of org.geowebcache.storage.blobstore.file.FileBlobStore

        }
        if (!fh.exists() && !fh.mkdirs()) {
            throw new StorageException("Unable to create " + fh.getAbsolutePath());
        }

        return new FileBlobStore(StorageBrokerTest.findTempDir() + File.separator
                + TEST_BLOB_DIR_NAME);
    }
View Full Code Here

Examples of org.geowebcache.storage.blobstore.file.FileBlobStore

        return new FileBlobStore(StorageBrokerTest.findTempDir() + File.separator
                + TEST_BLOB_DIR_NAME);
    }

    public void testLayerMetadata() throws Exception {
        FileBlobStore fbs = setup();

        final String layerName = "TestLayer";
        final String key1 = "Test.Metadata.Property_1";
        final String key2 = "Test.Metadata.Property_2";

        assertNull(fbs.getLayerMetadata(layerName, key1));
        assertNull(fbs.getLayerMetadata(layerName, key2));

        fbs.putLayerMetadata(layerName, key1, "value 1");
        fbs.putLayerMetadata(layerName, key2, "value 2");
        assertEquals("value 1", fbs.getLayerMetadata(layerName, key1));
        assertEquals("value 2", fbs.getLayerMetadata(layerName, key2));

        fbs.putLayerMetadata(layerName, key1, "value 1_1");
        fbs.putLayerMetadata(layerName, key2, null);
        assertEquals("value 1_1", fbs.getLayerMetadata(layerName, key1));
        assertNull(fbs.getLayerMetadata(layerName, key2));
    }
View Full Code Here

Examples of org.geowebcache.storage.blobstore.file.FileBlobStore

        File blobDirs = new File(blobPath);
        if(! blobDirs.exists() && ! blobDirs.mkdirs()) {
            throw new StorageException("Unable to create " + blobPath);
        }
       
        BlobStore blobStore = new FileBlobStore(blobPath);
        TransientCache transCache = new TransientCache(100, 1024, 2000);
       
        StorageBroker sb = new DefaultStorageBroker(blobStore);
       
        //long[] xyz = {1L,2L,3L};
View Full Code Here

Examples of org.sonatype.nexus.blobstore.file.FileBlobStore

    }

    this.blobMetadataStore = MapdbBlobMetadataStore.create(blobMetadataPath.toFile());
    blobMetadataStore.start();

    blobStore = new FileBlobStore(blobContentPath, new VolumeChapterLocationStrategy(), new SimpleFileOperations(), blobMetadataStore);

    adapterRegistry = new EntityAdapterRegistryImpl(databaseInstanceProvider);
    componentStore = new ComponentStoreImpl(databaseInstanceProvider, blobStore, adapterRegistry, new DefaultEntityIdFactory());
  }
View Full Code Here

Examples of org.sonatype.nexus.blobstore.file.FileBlobStore

    Path content = root.resolve("content");
    Path metadata = root.resolve("metadata");

    this.metadataStore = MapdbBlobMetadataStore.create(metadata.toFile());

    return new FileBlobStore(content, new VolumeChapterLocationStrategy(), new SimpleFileOperations(), metadataStore);
  }
View Full Code Here

Examples of org.sonatype.nexus.blobstore.file.FileBlobStore

    Path content = root.resolve("content");
    Path metadata = root.resolve("metadata");

    this.metadataStore = MapdbBlobMetadataStore.create(metadata.toFile());

    final FileBlobStore fileBlobStore = new FileBlobStore(content, new VolumeChapterLocationStrategy(),
        new SimpleFileOperations(), metadataStore);

    return fileBlobStore;
  }
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.