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
ClusterInfoService that 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 Details
-
Constructor Details
-
EmptyClusterInfoService
public EmptyClusterInfoService()
-
-
Method Details
-
getClusterInfo
- Specified by:
getClusterInfoin interfaceClusterInfoService- Returns:
- the latest cluster information
-
addListener
Description copied from interface:ClusterInfoServiceAdd a listener for new cluster information- Specified by:
addListenerin interfaceClusterInfoService
-