aboutsummaryrefslogtreecommitdiffstats
path: root/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/HostInfosService.java
blob: 199dd557bccae1a788827adb6f90ef59e941dd7f (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.status;

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

import java.util.Set;

/**
 * @author hakonhall
 */
interface HostInfosService {
    HostInfos getHostInfos(ApplicationInstanceReference reference);

    /** Returns false if it is known that the operation was a no-op. */
    boolean setHostStatus(ApplicationInstanceReference reference, HostName hostName, HostStatus hostStatus);

    /** Remove application. */
    void removeApplication(ApplicationInstanceReference reference);

    /** Remove hosts for application. */
    void removeHosts(ApplicationInstanceReference reference, Set<HostName> hostnames);
}