Search in sources :

Example 6 with LocalSessionRepo

use of com.yahoo.vespa.config.server.session.LocalSessionRepo in project vespa by vespa-engine.

the class SessionActiveHandlerTest method setup.

@Before
public void setup() throws Exception {
    remoteSessionRepo = new RemoteSessionRepo(tenant);
    applicationRepo = new MemoryTenantApplications();
    curator = new MockCurator();
    configCurator = ConfigCurator.create(curator);
    localRepo = new LocalSessionRepo(Clock.systemUTC());
    pathPrefix = "/application/v2/tenant/" + tenant + "/session/";
    hostProvisioner = new MockProvisioner();
    modelFactory = new VespaModelFactory(new NullConfigModelRegistry());
    componentRegistry = new TestComponentRegistry.Builder().curator(curator).configCurator(configCurator).modelFactoryRegistry(new ModelFactoryRegistry(Collections.singletonList(modelFactory))).build();
}
Also used : VespaModelFactory(com.yahoo.vespa.model.VespaModelFactory) RemoteSessionRepo(com.yahoo.vespa.config.server.session.RemoteSessionRepo) NullConfigModelRegistry(com.yahoo.config.model.NullConfigModelRegistry) MemoryTenantApplications(com.yahoo.vespa.config.server.application.MemoryTenantApplications) LocalSessionRepo(com.yahoo.vespa.config.server.session.LocalSessionRepo) TestComponentRegistry(com.yahoo.vespa.config.server.TestComponentRegistry) ModelFactoryRegistry(com.yahoo.vespa.config.server.modelfactory.ModelFactoryRegistry) MockCurator(com.yahoo.vespa.curator.mock.MockCurator) Before(org.junit.Before)

Aggregations

LocalSessionRepo (com.yahoo.vespa.config.server.session.LocalSessionRepo)6 MemoryTenantApplications (com.yahoo.vespa.config.server.application.MemoryTenantApplications)3 LocalSession (com.yahoo.vespa.config.server.session.LocalSession)3 RemoteSessionRepo (com.yahoo.vespa.config.server.session.RemoteSessionRepo)2 SessionFactory (com.yahoo.vespa.config.server.session.SessionFactory)2 Before (org.junit.Before)2 NullConfigModelRegistry (com.yahoo.config.model.NullConfigModelRegistry)1 NestedTransaction (com.yahoo.transaction.NestedTransaction)1 TestComponentRegistry (com.yahoo.vespa.config.server.TestComponentRegistry)1 TenantApplications (com.yahoo.vespa.config.server.application.TenantApplications)1 ModelFactoryRegistry (com.yahoo.vespa.config.server.modelfactory.ModelFactoryRegistry)1 Rotations (com.yahoo.vespa.config.server.tenant.Rotations)1 Tenant (com.yahoo.vespa.config.server.tenant.Tenant)1 TenantBuilder (com.yahoo.vespa.config.server.tenant.TenantBuilder)1 MockCurator (com.yahoo.vespa.curator.mock.MockCurator)1 VespaModelFactory (com.yahoo.vespa.model.VespaModelFactory)1