Class ThreadInfoSamplesRequest
java.lang.Object
org.apache.flink.runtime.webmonitor.threadinfo.ThreadInfoSamplesRequest
- All Implemented Interfaces:
Serializable
A wrapper for parameters of a thread info sampling request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadInfoSamplesRequest(int requestId, int numSamples, Duration delayBetweenSamples, int maxStackTraceDepth) -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured delay between the individual samples.intReturns the configured maximum depth of the collected stack traces.intReturns the number of samples that are requested to be collected.intReturns the ID of the sampling request.
-
Constructor Details
-
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 Details
-
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
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.
-