public class BackPressureTracker extends Object
Tracks the BackPressure status.
Modifier and Type | Class and Description |
---|---|
static class |
BackPressureTracker.BackpressureState |
Constructor and Description |
---|
BackPressureTracker(String workerId,
Map<Integer,JCQueue> localTasksToQueues,
StormMetricRegistry metricRegistry,
Map<Integer,String> taskToComponent) |
Modifier and Type | Method and Description |
---|---|
BackPressureTracker.BackpressureState |
getBackpressureState(Integer taskId) |
BackPressureStatus |
getCurrStatus() |
int |
getLastOverflowCount(BackPressureTracker.BackpressureState state) |
boolean |
recordBackPressure(BackPressureTracker.BackpressureState state)
Record BP for a task.
|
boolean |
refreshBpTaskList() |
void |
setLastOverflowCount(BackPressureTracker.BackpressureState state,
int value) |
public BackPressureTracker.BackpressureState getBackpressureState(Integer taskId)
public boolean recordBackPressure(BackPressureTracker.BackpressureState state)
Record BP for a task.
This is called by transferLocalBatch() on NettyWorker thread
public boolean refreshBpTaskList()
public BackPressureStatus getCurrStatus()
public int getLastOverflowCount(BackPressureTracker.BackpressureState state)
public void setLastOverflowCount(BackPressureTracker.BackpressureState state, int value)
Copyright © 2022 The Apache Software Foundation. All rights reserved.