Search in sources :

Example 11 with LocalSession

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

the class DeployTester method getAllocatedHostsOf.

public AllocatedHosts getAllocatedHostsOf(ApplicationId applicationId) {
    Tenant tenant = tenant();
    LocalSession session = tenant.getLocalSessionRepo().getSession(tenant.getApplicationRepo().getSessionIdForApplication(applicationId));
    return session.getAllocatedHosts();
}
Also used : Tenant(com.yahoo.vespa.config.server.tenant.Tenant) LocalSession(com.yahoo.vespa.config.server.session.LocalSession)

Aggregations

LocalSession (com.yahoo.vespa.config.server.session.LocalSession)11 Tenant (com.yahoo.vespa.config.server.tenant.Tenant)5 LocalSessionRepo (com.yahoo.vespa.config.server.session.LocalSessionRepo)3 ApplicationPackage (com.yahoo.config.application.api.ApplicationPackage)2 FilesApplicationPackage (com.yahoo.config.model.application.provider.FilesApplicationPackage)2 ApplicationId (com.yahoo.config.provision.ApplicationId)2 SuperModelGenerationCounter (com.yahoo.vespa.config.server.SuperModelGenerationCounter)2 SessionContext (com.yahoo.vespa.config.server.session.SessionContext)2 SessionFactory (com.yahoo.vespa.config.server.session.SessionFactory)2 Tenants (com.yahoo.vespa.config.server.tenant.Tenants)2 File (java.io.File)2 Test (org.junit.Test)2 ConfigserverConfig (com.yahoo.cloud.config.ConfigserverConfig)1 Version (com.yahoo.component.Version)1 DeployLogger (com.yahoo.config.application.api.DeployLogger)1 NullConfigModelRegistry (com.yahoo.config.model.NullConfigModelRegistry)1 TenantName (com.yahoo.config.provision.TenantName)1 Path (com.yahoo.path.Path)1 Slime (com.yahoo.slime.Slime)1 ManualClock (com.yahoo.test.ManualClock)1