aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-04-27 09:16:13 +0200
committerHarald Musum <musum@oath.com>2018-04-27 09:16:13 +0200
commitd66e9892c1bf3920ad402152e4a8c6870dd1ff77 (patch)
tree4e68c3c18ffb21816fe789a66734f17c5be68f44 /configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java
parente34eafa914c22654beeb33f6c536fe0b216f3fb7 (diff)
Rename tenant repo
Diffstat (limited to 'configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java b/configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java
index 42872881088..63298553db4 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandler.java
@@ -8,10 +8,9 @@ import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.Zone;
import com.yahoo.container.jdisc.HttpRequest;
import com.yahoo.container.jdisc.HttpResponse;
-import com.yahoo.container.logging.AccessLog;
import com.yahoo.jdisc.Response;
import com.yahoo.vespa.config.server.tenant.Tenant;
-import com.yahoo.vespa.config.server.tenant.Tenants;
+import com.yahoo.vespa.config.server.tenant.TenantRepository;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.vespa.config.server.application.TenantApplications;
import com.yahoo.vespa.config.server.http.HttpHandler;
@@ -19,7 +18,6 @@ import com.yahoo.vespa.config.server.http.Utils;
import java.util.Collection;
import java.util.List;
-import java.util.concurrent.Executor;
/**
* Handler for listing currently active applications for a tenant.
@@ -28,14 +26,14 @@ import java.util.concurrent.Executor;
* @since 5.1
*/
public class ListApplicationsHandler extends HttpHandler {
- private final Tenants tenants;
+ private final TenantRepository tenantRepository;
private final Zone zone;
@Inject
public ListApplicationsHandler(HttpHandler.Context ctx,
- Tenants tenants, Zone zone) {
+ TenantRepository tenantRepository, Zone zone) {
super(ctx);
- this.tenants = tenants;
+ this.tenantRepository = tenantRepository;
this.zone = zone;
}
@@ -55,8 +53,8 @@ public class ListApplicationsHandler extends HttpHandler {
}
private List<ApplicationId> listApplicationIds(TenantName tenantName) {
- Utils.checkThatTenantExists(tenants, tenantName);
- Tenant tenant = tenants.getTenant(tenantName);
+ Utils.checkThatTenantExists(tenantRepository, tenantName);
+ Tenant tenant = tenantRepository.getTenant(tenantName);
TenantApplications applicationRepo = tenant.getApplicationRepo();
return applicationRepo.listApplications();
}