blob: fd28ba77d864768683ef5401e6e08ff5f1efec93 (
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 Vespa.ai. 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.config.provision.ApplicationId;
import com.yahoo.vespa.applicationmodel.ClusterId;
import com.yahoo.vespa.applicationmodel.ConfigId;
import com.yahoo.vespa.applicationmodel.ServiceStatus;
import com.yahoo.vespa.applicationmodel.ServiceStatusInfo;
import com.yahoo.vespa.applicationmodel.ServiceType;
/**
* @author hakonhall
*/
public interface ServiceStatusProvider {
/**
* Get the {@link ServiceStatus} of a particular service.
*
* <p>{@link ServiceStatus#NOT_CHECKED NOT_CHECKED} must be returned if the
* service status provider does not monitor the service status for
* the particular application, cluster, service type, and config id.
*/
ServiceStatusInfo getStatus(ApplicationId applicationId,
ClusterId clusterId,
ServiceType serviceType,
ConfigId configId);
}
|