java.lang.Object
org.elasticsearch.monitor.fs.FsInfo
- All Implemented Interfaces:
Iterable<FsInfo.Path>
,Writeable
,ToXContent
,ToXContentFragment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionFsInfo
(long timestamp, FsInfo.IoStats ioStats, FsInfo.Path[] paths) FsInfo
(StreamInput in) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionlong
getTotal()
iterator()
static FsInfo
setEffectiveWatermarks
(FsInfo fsInfo, DiskThresholdSettings masterThresholdSettings, boolean isDedicatedFrozenNode) toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
FsInfo
-
FsInfo
Read from a stream.- Throws:
IOException
-
-
Method Details
-
setEffectiveWatermarks
public static FsInfo setEffectiveWatermarks(@Nullable FsInfo fsInfo, @Nullable DiskThresholdSettings masterThresholdSettings, boolean isDedicatedFrozenNode) -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getTotal
-
getTimestamp
public long getTimestamp() -
getIoStats
-
iterator
- Specified by:
iterator
in interfaceIterable<FsInfo.Path>
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-