Search in sources :

Example 1 with TenantBuilder

use of com.yahoo.vespa.config.server.tenant.TenantBuilder in project vespa by vespa-engine.

the class TestTenantBuilder method createTenant.

public TenantBuilder createTenant(TenantName tenantName) {
    MemoryTenantApplications applicationRepo = new MemoryTenantApplications();
    TenantBuilder builder = TenantBuilder.create(componentRegistry, tenantName).withSessionFactory(new SessionCreateHandlerTest.MockSessionFactory()).withLocalSessionRepo(new LocalSessionRepo(componentRegistry.getClock())).withRemoteSessionRepo(new RemoteSessionRepo(tenantName)).withApplicationRepo(applicationRepo);
    tenantMap.put(tenantName, builder);
    return builder;
}
Also used : RemoteSessionRepo(com.yahoo.vespa.config.server.session.RemoteSessionRepo) MemoryTenantApplications(com.yahoo.vespa.config.server.application.MemoryTenantApplications) LocalSessionRepo(com.yahoo.vespa.config.server.session.LocalSessionRepo) TenantBuilder(com.yahoo.vespa.config.server.tenant.TenantBuilder)

Aggregations

MemoryTenantApplications (com.yahoo.vespa.config.server.application.MemoryTenantApplications)1 LocalSessionRepo (com.yahoo.vespa.config.server.session.LocalSessionRepo)1 RemoteSessionRepo (com.yahoo.vespa.config.server.session.RemoteSessionRepo)1 TenantBuilder (com.yahoo.vespa.config.server.tenant.TenantBuilder)1