Package org.elasticsearch.cluster
Class EmptyClusterInfoService
- java.lang.Object
-
- org.elasticsearch.cluster.EmptyClusterInfoService
-
- All Implemented Interfaces:
ClusterInfoService
public class EmptyClusterInfoService extends java.lang.Object implements ClusterInfoService
ClusterInfoServicethat provides empty maps for disk usage and shard sizes
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyClusterInfoServiceINSTANCE
-
Constructor Summary
Constructors Constructor Description EmptyClusterInfoService()
-
Method Summary
Modifier and Type Method Description voidaddListener(java.util.function.Consumer<ClusterInfo> clusterInfoConsumer)Add a listener for new cluster informationClusterInfogetClusterInfo()
-
-
-
Field Detail
-
INSTANCE
public static final EmptyClusterInfoService INSTANCE
-
-
Method Detail
-
getClusterInfo
public ClusterInfo getClusterInfo()
- Specified by:
getClusterInfoin interfaceClusterInfoService- Returns:
- the latest cluster information
-
addListener
public void addListener(java.util.function.Consumer<ClusterInfo> clusterInfoConsumer)
Description copied from interface:ClusterInfoServiceAdd a listener for new cluster information- Specified by:
addListenerin interfaceClusterInfoService
-
-