use of com.yahoo.vespa.config.server.ReloadListener in project vespa by vespa-engine.
the class TenantRequestHandler method reloadListenersOnRemove.
private void reloadListenersOnRemove(ApplicationId applicationId) {
for (ReloadListener listener : reloadListeners) {
listener.applicationRemoved(applicationId);
listener.hostsUpdated(tenant, hostRegistry.getAllHosts());
}
}
use of com.yahoo.vespa.config.server.ReloadListener in project vespa by vespa-engine.
the class TenantRequestHandler method notifyReloadListeners.
private void notifyReloadListeners(ApplicationSet applicationSet) {
for (ReloadListener reloadListener : reloadListeners) {
reloadListener.hostsUpdated(tenant, hostRegistry.getAllHosts());
reloadListener.configActivated(tenant, applicationSet);
}
}
use of com.yahoo.vespa.config.server.ReloadListener in project vespa by vespa-engine.
the class TenantRequestHandlerTest method setUp.
@Before
public void setUp() throws IOException, SAXException {
feedApp(app1, 1);
Metrics sh = Metrics.createTestMetrics();
List<ReloadListener> listeners = new ArrayList<>();
listeners.add(listener);
server = new TenantRequestHandler(sh, tenant, listeners, new UncompressedConfigResponseFactory(), new HostRegistries());
componentRegistry = new TestComponentRegistry.Builder().curator(curator).modelFactoryRegistry(createRegistry()).build();
}
Aggregations