aboutsummaryrefslogtreecommitdiffstats
path: root/service-monitor/src/main/java/com/yahoo/vespa/service/monitor/ServiceHostListener.java
blob: 53bef97e209bdf132e1ce634479c8d94a28ed409 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.service.monitor;

import com.yahoo.vespa.applicationmodel.ApplicationInstanceReference;
import com.yahoo.vespa.applicationmodel.HostName;

import java.util.Set;

/**
 * Interface for listening to changes to the set of applications, or the set of hosts
 * assigned to each application, in the service model.
 *
 * <p>This is equivalent to listening to the duper model, since no health information leaks through
 * from the service model, but the exposed types are those of the service model.</p>
 */
public interface ServiceHostListener {
    void onApplicationActivate(ApplicationInstanceReference reference, Set<HostName> hostnames);
    void onApplicationRemove(ApplicationInstanceReference reference);
}