public class VertexThreadInfoTrackerBuilder extends Object
VertexThreadInfoTracker
.public VertexThreadInfoTrackerBuilder setCoordinator(ThreadInfoRequestCoordinator coordinator)
cleanUpInterval
.coordinator
- Coordinator for thread info stats request.public VertexThreadInfoTrackerBuilder setCleanUpInterval(Duration cleanUpInterval)
cleanUpInterval
.cleanUpInterval
- Clean up interval for completed stats.public VertexThreadInfoTrackerBuilder setNumSamples(int numSamples)
numSamples
.numSamples
- Number of thread info samples to collect for each subtask.public VertexThreadInfoTrackerBuilder setStatsRefreshInterval(Duration statsRefreshInterval)
statsRefreshInterval
.statsRefreshInterval
- Time interval after which the available thread info stats are
deprecated and need to be refreshed.public VertexThreadInfoTrackerBuilder setDelayBetweenSamples(Duration delayBetweenSamples)
delayBetweenSamples
.delayBetweenSamples
- Delay between individual samples per task.public VertexThreadInfoTrackerBuilder setMaxThreadInfoDepth(int maxThreadInfoDepth)
delayBetweenSamples
.maxThreadInfoDepth
- Limit for the depth of the stack traces included when sampling
threads.public VertexThreadInfoTracker build()
VertexThreadInfoTracker
.VertexThreadInfoTracker
instance.public static VertexThreadInfoTrackerBuilder newBuilder(GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, ScheduledExecutorService executor, Time restTimeout)
VertexThreadInfoTrackerBuilder
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.