summaryrefslogtreecommitdiffstats
path: root/service-monitor/src/main/java/com/yahoo/vespa/service/monitor/internal/DuperModelListener.java
blob: 235c7db5c36500dc533842c373786aab9fc6b7d2 (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 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.service.monitor.internal;

import com.yahoo.config.model.api.ApplicationInfo;
import com.yahoo.config.model.api.SuperModel;
import com.yahoo.config.provision.ApplicationId;

/**
 * Interface for listening for changes to the {@link DuperModel}.
 *
 * @author hakon
 */
public interface DuperModelListener {
    /**
     * An application has been activated:
     *
     * <ul>
     *     <li>A synthetic application like the config server application has been added/"activated"
     *     <li>A super model application has been activated (see
     *     {@link com.yahoo.config.model.api.SuperModelListener#applicationActivated(SuperModel, ApplicationInfo)
     *     SuperModelListener}
     * </ul>
     */
    void applicationActivated(ApplicationInfo application);

    /** Application has been removed. */
    void applicationRemoved(ApplicationId id);
}