Search in sources :

Example 6 with MemoryTenantApplications

use of com.yahoo.vespa.config.server.application.MemoryTenantApplications in project vespa by vespa-engine.

the class TenantTest method close.

@Test
public void close() {
    MemoryTenantApplications repo = (MemoryTenantApplications) t1.getApplicationRepo();
    assertTrue(repo.isOpen());
    t1.close();
    assertFalse(repo.isOpen());
}
Also used : MemoryTenantApplications(com.yahoo.vespa.config.server.application.MemoryTenantApplications) Test(org.junit.Test)

Example 7 with MemoryTenantApplications

use of com.yahoo.vespa.config.server.application.MemoryTenantApplications 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

MemoryTenantApplications (com.yahoo.vespa.config.server.application.MemoryTenantApplications)7 LocalSessionRepo (com.yahoo.vespa.config.server.session.LocalSessionRepo)3 Before (org.junit.Before)3 RemoteSessionRepo (com.yahoo.vespa.config.server.session.RemoteSessionRepo)2 MockCurator (com.yahoo.vespa.curator.mock.MockCurator)2 File (java.io.File)2 ApplicationFile (com.yahoo.config.application.api.ApplicationFile)1 NullConfigModelRegistry (com.yahoo.config.model.NullConfigModelRegistry)1 ManualClock (com.yahoo.test.ManualClock)1 GlobalComponentRegistry (com.yahoo.vespa.config.server.GlobalComponentRegistry)1 TestComponentRegistry (com.yahoo.vespa.config.server.TestComponentRegistry)1 TenantFileSystemDirs (com.yahoo.vespa.config.server.deploy.TenantFileSystemDirs)1 ZooKeeperClient (com.yahoo.vespa.config.server.deploy.ZooKeeperClient)1 HostRegistry (com.yahoo.vespa.config.server.host.HostRegistry)1 ModelFactoryRegistry (com.yahoo.vespa.config.server.modelfactory.ModelFactoryRegistry)1 TenantBuilder (com.yahoo.vespa.config.server.tenant.TenantBuilder)1 SessionCounter (com.yahoo.vespa.config.server.zookeeper.SessionCounter)1 VespaModelFactory (com.yahoo.vespa.model.VespaModelFactory)1 Test (org.junit.Test)1