blob: 94ff60a29c1cb8b8f2606843e3da8fe605f429cc (
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
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.vespa.config.server.application.ApplicationVersions;
/**
* A ConfigActivationListener is used to signal to a component that config has been
* activated for an application or that an application has been removed. It only exists
* because the RpcServer cannot distinguish between a successful activation of a new
* application and an activation of the same application.
*
* @author Ulf Lilleengen
*/
public interface ConfigActivationListener {
/**
* Configs has been activated for an application: Either an application
* has been deployed for the first time, or it has been externally or internally redeployed.
*
* Must be thread-safe.
*/
void configActivated(ApplicationVersions application);
/**
* Application has been removed.
*
* Must be thread-safe.
*/
void applicationRemoved(ApplicationId applicationId);
}
|