blob: cdf8b24e72d353770339952d50aa37401c8b79a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core;
import com.yahoo.vespa.clustercontroller.core.listeners.NodeAddedOrRemovedListener;
/**
* Interface for a node lookup service, such as slobrok, config, or tier controller.
*/
public interface NodeLookup {
void shutdown();
boolean updateCluster(ContentCluster cluster, NodeAddedOrRemovedListener listener);
/**
* Returns whether the lookup instance has been able to bootstrap itself with information about nodes.
*
* Calling updateCluster() _before_ isReady has returned true may not provide any useful data.
*/
boolean isReady();
}
|