/** * Initialization of the buffer properties. * * @throws Exception * if an exception is thrown while executing the post construct method in the buffer * properties. */ @BeforeClass public void init() throws Exception { bufferProperties = new BufferProperties(); bufferProperties.log = mock(Logger.class); bufferProperties.bytesMaintenancePercentage = 0.2f; bufferProperties.evictionFragmentSizePercentage = 0.1f; bufferProperties.evictionOccupancyPercentage = 0.8f; bufferProperties.indexingTreeCleaningThreads = 1; bufferProperties.indexingWaitTime = 500l; bufferProperties.maxObjectExpansionRate = 0.05f; bufferProperties.maxObjectExpansionRateActiveTillBufferSize = 10; bufferProperties.maxObjectExpansionRateActiveFromOccupancy = 0.75f; bufferProperties.maxOldSpaceOccupancy = 0.9f; bufferProperties.maxOldSpaceOccupancyActiveFromOldGenSize = 1024 * 1024 * 100; bufferProperties.minObjectExpansionRate = 0.02f; bufferProperties.minObjectExpansionRateActiveFromBufferSize = 100; bufferProperties.minObjectExpansionRateActiveTillOccupancy = 0.35f; bufferProperties.minOldSpaceOccupancy = 0.2f; bufferProperties.minOldSpaceOccupancyActiveTillOldGenSize = 1024 * 1024 * 200; bufferProperties.postConstruct(); }