public class OperatorBackPressureStats extends Object
Statistics are gathered by sampling stack traces of running tasks. The back pressure ratio denotes the ratio of traces indicating back pressure to the total number of sampled traces.
Constructor and Description |
---|
OperatorBackPressureStats(int sampleId,
long endTimestamp,
double[] subTaskBackPressureRatio) |
Modifier and Type | Method and Description |
---|---|
double |
getBackPressureRatio(int index)
Returns the ratio of stack traces indicating back pressure to total
number of sampled stack traces.
|
long |
getEndTimestamp()
Returns the time stamp, when all stack traces were collected at the
JobManager.
|
double |
getMaxBackPressureRatio()
Returns the maximum back pressure ratio of all sub tasks.
|
int |
getNumberOfSubTasks()
Returns the number of sub tasks.
|
int |
getSampleId()
Returns the ID of the sample.
|
String |
toString() |
public OperatorBackPressureStats(int sampleId, long endTimestamp, double[] subTaskBackPressureRatio)
public int getSampleId()
public long getEndTimestamp()
public int getNumberOfSubTasks()
public double getBackPressureRatio(int index)
index
- Subtask index.public double getMaxBackPressureRatio()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.