Package io.datarouter.loadtest.storage
Class DatarouterLoadTestDao
java.lang.Object
io.datarouter.storage.dao.BaseDao
io.datarouter.loadtest.storage.DatarouterLoadTestDao
- All Implemented Interfaces:
LoadTestGetDao,LoadTestInsertDao,LoadTestScanDao,io.datarouter.storage.dao.Dao
@Singleton public class DatarouterLoadTestDao extends io.datarouter.storage.dao.BaseDao implements LoadTestGetDao, LoadTestInsertDao, LoadTestScanDao
The node needs to be of a MapStorageReader type, and the client needs to support that type.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatarouterLoadTestDao.LoadTestDaoParamsNested classes/interfaces inherited from interface io.datarouter.loadtest.service.LoadTestGetDao
LoadTestGetDao.NoOpLoadTestGetDaoNested classes/interfaces inherited from interface io.datarouter.loadtest.service.LoadTestInsertDao
LoadTestInsertDao.NoOpLoadTestInsertDaoNested classes/interfaces inherited from interface io.datarouter.loadtest.service.LoadTestScanDao
LoadTestScanDao.NoOpLoadTestScanDao -
Constructor Summary
Constructors Constructor Description DatarouterLoadTestDao(io.datarouter.storage.Datarouter datarouter, io.datarouter.storage.node.factory.NodeFactory nodeFactory, DatarouterLoadTestDao.LoadTestDaoParams params) -
Method Summary
Modifier and Type Method Description io.datarouter.storage.node.op.raw.read.MapStorageReader<RandomValueKey,RandomValue>getReaderNode()io.datarouter.storage.node.op.raw.write.StorageWriter<RandomValueKey,RandomValue>getWriterNode()io.datarouter.scanner.Scanner<RandomValue>scan(int batchSize, int limit)
-
Constructor Details
-
DatarouterLoadTestDao
@Inject public DatarouterLoadTestDao(io.datarouter.storage.Datarouter datarouter, io.datarouter.storage.node.factory.NodeFactory nodeFactory, DatarouterLoadTestDao.LoadTestDaoParams params)
-
-
Method Details
-
getReaderNode
public io.datarouter.storage.node.op.raw.read.MapStorageReader<RandomValueKey,RandomValue> getReaderNode()- Specified by:
getReaderNodein interfaceLoadTestGetDao
-
getWriterNode
public io.datarouter.storage.node.op.raw.write.StorageWriter<RandomValueKey,RandomValue> getWriterNode()- Specified by:
getWriterNodein interfaceLoadTestInsertDao
-
scan
- Specified by:
scanin interfaceLoadTestScanDao
-