Search in sources :

Example 16 with HostControllerStore

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);
}
Also used : HostControllerStore(io.pravega.controller.store.host.HostControllerStore) HostMonitorConfig(io.pravega.controller.store.host.HostMonitorConfig) Test(org.junit.Test)

Aggregations

HostControllerStore (io.pravega.controller.store.host.HostControllerStore)16 TaskMetadataStore (io.pravega.controller.store.task.TaskMetadataStore)10 Test (org.junit.Test)10 StreamMetadataStore (io.pravega.controller.store.stream.StreamMetadataStore)9 ConnectionFactoryImpl (io.pravega.client.netty.impl.ConnectionFactoryImpl)8 SegmentHelper (io.pravega.controller.server.SegmentHelper)8 StreamMetadataTasks (io.pravega.controller.task.Stream.StreamMetadataTasks)7 StreamTransactionMetadataTasks (io.pravega.controller.task.Stream.StreamTransactionMetadataTasks)7 TestingServerStarter (io.pravega.test.common.TestingServerStarter)7 Host (io.pravega.common.cluster.Host)5 ClientConfig (io.pravega.client.ClientConfig)4 ControllerService (io.pravega.controller.server.ControllerService)4 ConnectionFactory (io.pravega.client.netty.impl.ConnectionFactory)3 ControllerEventStreamWriterMock (io.pravega.controller.mocks.ControllerEventStreamWriterMock)3 SegmentHelperMock (io.pravega.controller.mocks.SegmentHelperMock)3 AutoScaleTask (io.pravega.controller.server.eventProcessor.requesthandlers.AutoScaleTask)3 DeleteStreamTask (io.pravega.controller.server.eventProcessor.requesthandlers.DeleteStreamTask)3 ScaleOperationTask (io.pravega.controller.server.eventProcessor.requesthandlers.ScaleOperationTask)3 SealStreamTask (io.pravega.controller.server.eventProcessor.requesthandlers.SealStreamTask)3 StreamRequestHandler (io.pravega.controller.server.eventProcessor.requesthandlers.StreamRequestHandler)3