blob: 882ae8894fad6b5f731ce5928e96b261b9286933 (
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.SlobrokListener;
/**
* Interface for a node lookup service, such as slobrok, config, or tier controller.
*/
public interface NodeLookup {
void shutdown();
boolean updateCluster(ContentCluster cluster, SlobrokListener 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();
}
|