@Test public void testNonAlignedMaxBlocks() throws TeiidComponentException { BufferFrontedFileStoreCache bf = createLayeredCache(1 << 20, 8000000, false); assertEquals(974, bf.getMaxMemoryBlocks()); }
public int getMaxMemoryBlocks() { return maxMemoryBlocks; }
BufferFrontedFileStoreCache implements Cache<PhysicalInfo> { public int getMaxMemoryBlocks() { return maxMemoryBlocks; } }
BufferFrontedFileStoreCache implements Cache<PhysicalInfo> { public int getMaxMemoryBlocks() { return maxMemoryBlocks; }  }
BufferFrontedFileStoreCache implements Cache<PhysicalInfo> { public int getMaxMemoryBlocks() { return maxMemoryBlocks; }  @Override void initialize(); @SuppressWarnings("unchecked") @Override boolean add(CacheEntry entry, Serializer s); @Override PhysicalInfo lockForLoad(Long oid, Serializer<?> serializer); @Override void unlockForLoad(PhysicalInfo info); @Override int getCacheGroupCount(); @Override CacheEntry get(PhysicalInfo info, Long oid,
            WeakReference<? extends Serializer<?>> ref); @Override FileStore createFileStore(String name); void setDirect(boolean direct); @Override boolean addToCacheGroup(Long gid, Long oid); @Override void createCacheGroup(Long gid); @Override Integer remove(Long gid, Long id); @Override Collection<Long> removeCacheGroup(Long gid); void setStorageManager(StorageManager storageManager); StorageManager getStorageManager(); void setMemoryBufferSpace(long maxBufferSpace); int getInodesInUse(); int getDataBlocksInUse(); void setMaxStorageObjectSize(int maxStorageBlockSize); long getStorageReads(); long getStorageWrites(); long getMemoryBufferSpace(); void setMinDefrag(long minDefrag); int getMaxMemoryBlocks(); long getMemoryInUseBytes(); void setBufferManager(BufferManagerImpl bufferManager); void setTruncateInterval(int truncateInterval); long getDiskUsage(); @Override void shutdown(); void setCompactBufferFiles(boolean compactBufferFiles); @Override long getMaxStorageSpace(); }
BufferFrontedFileStoreCache implements Cache<PhysicalInfo> { public int getMaxMemoryBlocks() { return maxMemoryBlocks; }  @Override void initialize(); @SuppressWarnings("unchecked") @Override boolean add(CacheEntry entry, Serializer s); @Override PhysicalInfo lockForLoad(Long oid, Serializer<?> serializer); @Override void unlockForLoad(PhysicalInfo info); @Override int getCacheGroupCount(); @Override CacheEntry get(PhysicalInfo info, Long oid,
            WeakReference<? extends Serializer<?>> ref); @Override FileStore createFileStore(String name); void setDirect(boolean direct); @Override boolean addToCacheGroup(Long gid, Long oid); @Override void createCacheGroup(Long gid); @Override Integer remove(Long gid, Long id); @Override Collection<Long> removeCacheGroup(Long gid); void setStorageManager(StorageManager storageManager); StorageManager getStorageManager(); void setMemoryBufferSpace(long maxBufferSpace); int getInodesInUse(); int getDataBlocksInUse(); void setMaxStorageObjectSize(int maxStorageBlockSize); long getStorageReads(); long getStorageWrites(); long getMemoryBufferSpace(); void setMinDefrag(long minDefrag); int getMaxMemoryBlocks(); long getMemoryInUseBytes(); void setBufferManager(BufferManagerImpl bufferManager); void setTruncateInterval(int truncateInterval); long getDiskUsage(); @Override void shutdown(); void setCompactBufferFiles(boolean compactBufferFiles); @Override long getMaxStorageSpace(); static final int DEFAULT_MAX_OBJECT_SIZE; static final long MAX_ADDRESSABLE_MEMORY; }