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:
  • 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

      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.