use of io.pravega.controller.store.host.HostControllerStore in project pravega by pravega.
the class HostStoreTest method inMemoryStoreTests.
@Test
public void inMemoryStoreTests() {
HostMonitorConfig hostMonitorConfig = HostMonitorConfigImpl.builder().hostMonitorEnabled(false).hostContainerMap(HostMonitorConfigImpl.getHostContainerMap(host, controllerPort, containerCount)).hostMonitorMinRebalanceInterval(10).containerCount(containerCount).build();
// Create a host store
HostControllerStore hostStore = HostStoreFactory.createInMemoryStore(hostMonitorConfig);
validateStore(hostStore);
// Create a host store via other factory method
hostStore = HostStoreFactory.createStore(hostMonitorConfig, StoreClientFactory.createInMemoryStoreClient());
validateStore(hostStore);
}
Aggregations