blob: 981b7bb5b953f501f97950232f0c24772cb7a61c (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.application;
import com.yahoo.vespa.config.server.modelfactory.ModelResult;
import java.io.IOException;
import java.util.Map;
/**
* Retrieves reindexing status from content clusters
*
* @author bjorncs
*/
public interface ClusterReindexingStatusClient extends AutoCloseable {
Map<String, ClusterReindexing> getReindexingStatus(ModelResult application) throws IOException;
void close();
ClusterReindexingStatusClient DUMMY_INSTANCE = new ClusterReindexingStatusClient() {
@Override public Map<String, ClusterReindexing> getReindexingStatus(ModelResult application) { return Map.of(); }
@Override public void close() {}
};
}
|