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 EmptyClusterInfoService
INSTANCE
-
Constructor Summary
Constructors Constructor Description EmptyClusterInfoService()
-
Method Summary
Modifier and Type Method Description void
addListener(java.util.function.Consumer<ClusterInfo> clusterInfoConsumer)
Add a listener for new cluster informationClusterInfo
getClusterInfo()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EmptyClusterInfoService
public EmptyClusterInfoService()
-
-
Method Details
-
getClusterInfo
- Specified by:
getClusterInfo
in interfaceClusterInfoService
- Returns:
- the latest cluster information
-
addListener
Description copied from interface:ClusterInfoService
Add a listener for new cluster information- Specified by:
addListener
in interfaceClusterInfoService
-