@Override public FileStore createFileStore(String name) { return storageManager.createFileStore(name); }
@Override public long getMaxStorageSpace() { return manager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { storageManager.initialize(); }
@Override public FileStore createFileStore(String name) { return storageManager.createFileStore(name); }
@Override public long getMaxStorageSpace() { return storageManager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { storageManager.initialize(); }
@Override public FileStore createFileStore(String name) { return storageManager.createFileStore(name); }
@Override public long getMaxStorageSpace() { return storageManager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { storageManager.initialize(); }
public BlockStore(StorageManager storageManager, int blockSize, int blockCountLog, int concurrencyLevel) { this.blockSize = blockSize; int blockCount = 1 << blockCountLog; this.blocksInUse = new ConcurrentBitSet(blockCount, concurrencyLevel); this.blocksInUse.setCompact(true); this.stores = new FileStore[concurrencyLevel]; this.locks = new ReentrantReadWriteLock[concurrencyLevel]; for (int i = 0; i < stores.length; i++) { this.stores[i] = storageManager.createFileStore(String.valueOf(blockSize) + '_' + i); this.locks[i] = new ReentrantReadWriteLock(); } }
@Override public long getMaxStorageSpace() { return this.storageManager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { manager.initialize(); try { key = SymmetricCryptor.generateKey(); } catch (CryptoException e) { throw new TeiidComponentException(e); } }
public BlockStore(StorageManager storageManager, int blockSize, int blockCountLog, int concurrencyLevel) { this.blockSize = blockSize; int blockCount = 1 << blockCountLog; this.blocksInUse = new ConcurrentBitSet(blockCount, concurrencyLevel); this.blocksInUse.setCompact(true); this.stores = new FileStore[concurrencyLevel]; this.locks = new ReentrantReadWriteLock[concurrencyLevel]; for (int i = 0; i < stores.length; i++) { this.stores[i] = storageManager.createFileStore(String.valueOf(blockSize) + '_' + i); this.locks[i] = new ReentrantReadWriteLock(); } }
@Override public long getMaxStorageSpace() { return this.storageManager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { manager.initialize(); try { key = SymmetricCryptor.generateKey(); } catch (CryptoException e) { throw new TeiidComponentException(e); } }
public BlockStore(StorageManager storageManager, int blockSize, int blockCountLog, int concurrencyLevel) { this.blockSize = blockSize; int blockCount = 1 << blockCountLog; this.blocksInUse = new ConcurrentBitSet(blockCount, concurrencyLevel); this.blocksInUse.setCompact(true); this.stores = new FileStore[concurrencyLevel]; this.locks = new ReentrantReadWriteLock[concurrencyLevel]; for (int i = 0; i < stores.length; i++) { this.stores[i] = storageManager.createFileStore(String.valueOf(blockSize) + '_' + i); this.locks[i] = new ReentrantReadWriteLock(); } }
@Override public long getMaxStorageSpace() { return manager.getMaxStorageSpace(); }
@Override public void initialize() throws TeiidComponentException { manager.initialize(); try { key = SymmetricCryptor.generateKey(); } catch (CryptoException e) { throw new TeiidComponentException(e); } }
@Override public EncryptedFileStore createFileStore(String name) { final FileStore file = manager.createFileStore(name); try { return new EncryptedFileStore(file, key); } catch (GeneralSecurityException e) { throw new TeiidRuntimeException(e); } }
@Override public long getMaxStorageSpace() { return manager.getMaxStorageSpace(); }