All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.config.server.application.ClusterReindexingStatusClient Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. 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 getReindexingStatus(ModelResult application) throws IOException;

    void close();

    ClusterReindexingStatusClient DUMMY_INSTANCE = new ClusterReindexingStatusClient() {
        @Override public Map getReindexingStatus(ModelResult application) { return Map.of(); }
        @Override public void close() {}
    };

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy