blob: 5ed34673da5ea9c5911cce2eeb4d1b2af369ff94 (
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
|
// Copyright 2017 Yahoo Holdings. 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.ApplicationInstance;
import com.yahoo.vespa.applicationmodel.ApplicationInstanceReference;
import java.util.Map;
/**
* The service monitor interface. A service monitor provides up to date information about the liveness status
* (up, down or not known) of each service instance in a Vespa zone
*
* @author bratseth
*/
public interface ServiceMonitor {
/**
* Returns the current liveness status (up, down or unknown) of all instances
* of all services of all clusters of all applications in a zone.
*/
Map<ApplicationInstanceReference, ApplicationInstance> getAllApplicationInstances();
ServiceModel getServiceModelSnapshot();
}
|