Package org.elasticsearch.cluster
Class MockInternalClusterInfoService.DevNullClusterInfo
- java.lang.Object
-
- org.elasticsearch.cluster.ClusterInfo
-
- org.elasticsearch.cluster.MockInternalClusterInfoService.DevNullClusterInfo
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
- Enclosing class:
- MockInternalClusterInfoService
public static class MockInternalClusterInfoService.DevNullClusterInfo extends ClusterInfo
ClusterInfo that always points to DevNull.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.cluster.ClusterInfo
EMPTY
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description DevNullClusterInfo(ImmutableOpenMap<java.lang.String,DiskUsage> leastAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,DiskUsage> mostAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,java.lang.Long> shardSizes)
-
Method Summary
Modifier and Type Method Description java.lang.String
getDataPath(ShardRouting shardRouting)
-
Methods inherited from class org.elasticsearch.cluster.ClusterInfo
getNodeLeastAvailableDiskUsages, getNodeMostAvailableDiskUsages, getShardSize, getShardSize, toXContent, writeTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
DevNullClusterInfo
public DevNullClusterInfo(ImmutableOpenMap<java.lang.String,DiskUsage> leastAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,DiskUsage> mostAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,java.lang.Long> shardSizes)
-
-
Method Detail
-
getDataPath
public java.lang.String getDataPath(ShardRouting shardRouting)
- Overrides:
getDataPath
in classClusterInfo
-
-