Class TaskResourceStats
java.lang.Object
org.opensearch.core.tasks.resourcetracker.TaskResourceStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
@PublicApi(since="2.1.0")
public class TaskResourceStats
extends Object
implements Writeable, ToXContentFragment
Resource information about a currently running task.
Writeable TaskResourceStats objects are used to represent resource snapshot information about currently running task.
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.WriteableRegistry, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTaskResourceStats(Map<String, TaskResourceUsage> resourceUsage, TaskThreadUsage threadUsage) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TaskResourceStatsfromXContent(XContentParser parser) inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Field Details
-
THREAD_INFO
- See Also:
-
-
Constructor Details
-
TaskResourceStats
-
TaskResourceStats
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getResourceUsageInfo
-
getThreadUsage
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-