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()
-
-
-
Field Detail
-
INSTANCE
public static final EmptyClusterInfoService INSTANCE
-
-
Method Detail
-
getClusterInfo
public ClusterInfo getClusterInfo()
- Specified by:
getClusterInfo
in interfaceClusterInfoService
- Returns:
- the latest cluster information
-
addListener
public void addListener(java.util.function.Consumer<ClusterInfo> clusterInfoConsumer)
Description copied from interface:ClusterInfoService
Add a listener for new cluster information- Specified by:
addListener
in interfaceClusterInfoService
-
-