blob: 7a0738848da4f7bfa183a8b041a3a5c6ff8f1097 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;
import com.yahoo.config.provision.TenantName;
/**
* @author Ulf Lilleengen
*/
public class MockTenantListener implements TenantListener {
TenantName tenantCreatedName;
TenantName tenantDeletedName;
boolean tenantsLoaded;
@Override
public void onTenantCreate(Tenant tenant) { this.tenantCreatedName = tenant.getName(); }
@Override
public void onTenantDelete(TenantName tenantName) {
this.tenantDeletedName = tenantName;
}
@Override
public void onTenantsLoaded() {
tenantsLoaded = true;
}
}
|