Class VertexThreadInfoTrackerBuilder
- java.lang.Object
-
- org.apache.flink.runtime.webmonitor.threadinfo.VertexThreadInfoTrackerBuilder
-
public class VertexThreadInfoTrackerBuilder extends Object
Builder forVertexThreadInfoTracker
.
-
-
Method Summary
-
-
-
Method Detail
-
setCoordinator
public VertexThreadInfoTrackerBuilder setCoordinator(ThreadInfoRequestCoordinator coordinator)
SetscleanUpInterval
.- Parameters:
coordinator
- Coordinator for thread info stats request.- Returns:
- Builder.
-
setCleanUpInterval
public VertexThreadInfoTrackerBuilder setCleanUpInterval(Duration cleanUpInterval)
SetscleanUpInterval
.- Parameters:
cleanUpInterval
- Clean up interval for completed stats.- Returns:
- Builder.
-
setNumSamples
public VertexThreadInfoTrackerBuilder setNumSamples(int numSamples)
SetsnumSamples
.- Parameters:
numSamples
- Number of thread info samples to collect for each subtask.- Returns:
- Builder.
-
setStatsRefreshInterval
public VertexThreadInfoTrackerBuilder setStatsRefreshInterval(Duration statsRefreshInterval)
SetsstatsRefreshInterval
.- Parameters:
statsRefreshInterval
- Time interval after which the available thread info stats are deprecated and need to be refreshed.- Returns:
- Builder.
-
setDelayBetweenSamples
public VertexThreadInfoTrackerBuilder setDelayBetweenSamples(Duration delayBetweenSamples)
SetsdelayBetweenSamples
.- Parameters:
delayBetweenSamples
- Delay between individual samples per task.- Returns:
- Builder.
-
setMaxThreadInfoDepth
public VertexThreadInfoTrackerBuilder setMaxThreadInfoDepth(int maxThreadInfoDepth)
SetsdelayBetweenSamples
.- Parameters:
maxThreadInfoDepth
- Limit for the depth of the stack traces included when sampling threads.- Returns:
- Builder.
-
build
public VertexThreadInfoTracker build()
Constructs a newVertexThreadInfoTracker
.- Returns:
- a new
VertexThreadInfoTracker
instance.
-
newBuilder
public static VertexThreadInfoTrackerBuilder newBuilder(GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, ScheduledExecutorService executor, Duration restTimeout)
Create a newVertexThreadInfoTrackerBuilder
.- Returns:
- Builder.
-
-