Class TaskThreadUsage
java.lang.Object
org.opensearch.core.tasks.resourcetracker.TaskThreadUsage
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
@PublicApi(since="2.1.0")
public class TaskThreadUsage
extends Object
implements Writeable, ToXContentFragment
Task thread execution information.
Writeable TaskThreadExecutions objects are used to represent thread related resource usage of running tasks.
asd
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TaskThreadUsagefromXContent(XContentParser parser) intintinthashCode()static TaskThreadUsageRead from a stream.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
-
PARSER
-
-
Constructor Details
-
TaskThreadUsage
public TaskThreadUsage(int threadExecutions, int activeThreads)
-
-
Method Details
-
readFromStream
Read from a stream.- Throws:
IOException
-
getThreadExecutions
public int getThreadExecutions() -
getActiveThreads
public int getActiveThreads() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-