Class ThreadInfoSamplesRequest
- java.lang.Object
-
- org.apache.flink.runtime.webmonitor.threadinfo.ThreadInfoSamplesRequest
-
- All Implemented Interfaces:
Serializable
public class ThreadInfoSamplesRequest extends Object implements Serializable
A wrapper for parameters of a thread info sampling request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThreadInfoSamplesRequest(int requestId, int numSamples, Duration delayBetweenSamples, int maxStackTraceDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
getDelayBetweenSamples()
Returns the configured delay between the individual samples.int
getMaxStackTraceDepth()
Returns the configured maximum depth of the collected stack traces.int
getNumSamples()
Returns the number of samples that are requested to be collected.int
getRequestId()
Returns the ID of the sampling request.
-
-
-
Constructor Detail
-
ThreadInfoSamplesRequest
public ThreadInfoSamplesRequest(int requestId, @Nonnegative int numSamples, Duration delayBetweenSamples, @Nonnegative int maxStackTraceDepth)
- Parameters:
requestId
- ID of the sampling request.numSamples
- The number of samples.delayBetweenSamples
- The time to wait between taking samples.maxStackTraceDepth
- The maximum depth of the returned stack traces.
-
-
Method Detail
-
getRequestId
public int getRequestId()
Returns the ID of the sampling request.- Returns:
- ID of the request.
-
getNumSamples
public int getNumSamples()
Returns the number of samples that are requested to be collected.- Returns:
- the number of requested samples.
-
getDelayBetweenSamples
public Duration getDelayBetweenSamples()
Returns the configured delay between the individual samples.- Returns:
- the delay between the individual samples.
-
getMaxStackTraceDepth
public int getMaxStackTraceDepth()
Returns the configured maximum depth of the collected stack traces.- Returns:
- the maximum depth of the collected stack traces.
-
-