Package org.elasticsearch.cluster
Class EmptyClusterInfoService
java.lang.Object
org.elasticsearch.cluster.EmptyClusterInfoService
- All Implemented Interfaces:
ClusterInfoService
ClusterInfoService
that provides empty maps for disk usage and shard sizes-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener(Consumer<ClusterInfo> clusterInfoConsumer)
Add a listener for new cluster information
-
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
-