@Inject public MockRamDirectoryService( ShardId shardId, Settings indexSettings, ByteBufferCache byteBufferCache) { super(shardId, indexSettings); helper = new MockDirectoryHelper(shardId, indexSettings, logger); delegateService = helper.randomRamDirecoryService(byteBufferCache); }