Package org.opensearch.node
Class IoUsageStats
java.lang.Object
org.opensearch.node.IoUsageStats
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentFragment
public class IoUsageStats
extends Object
implements org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContentFragment
This class is to store tne IO Usage Stats and used to return in node stats API.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionIoUsageStats
(double ioUtilisationPercent) IoUsageStats
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
setIoUtilisationPercent
(double ioUtilisationPercent) toString()
org.opensearch.core.xcontent.XContentBuilder
toXContent
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
IoUsageStats
public IoUsageStats(double ioUtilisationPercent) -
IoUsageStats
- Parameters:
in
- the stream to read from- Throws:
IOException
- if an error occurs while reading from the StreamOutput
-
-
Method Details
-
writeTo
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Parameters:
out
- the output stream to write entity content to- Throws:
IOException
-
getIoUtilisationPercent
public double getIoUtilisationPercent() -
setIoUtilisationPercent
public void setIoUtilisationPercent(double ioUtilisationPercent) -
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.opensearch.core.xcontent.ToXContent
- Throws:
IOException
-
toString
-