Class CoordinatorRunStats
java.lang.Object
org.apache.druid.server.coordinator.stats.CoordinatorRunStats
Contains statistics typically tracked during a single coordinator run or the
runtime of a single coordinator duty.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorRunStats(Map<Dimension, String> debugDimensions) Creates a newCoordinatorRunStats. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CoordinatorStat stat, long value) voidadd(CoordinatorStat stat, RowKey rowKey, long value) voidaddToSegmentStat(CoordinatorStat stat, String tier, String datasource, long value) Builds a printable table of all the collected error, info and debug level stats (if there are qualifying debugDimensions) with non-zero values.voidclear()static CoordinatorRunStatsempty()voidlongget(CoordinatorStat stat) longget(CoordinatorStat stat, RowKey rowKey) longgetSegmentStat(CoordinatorStat stat, String tier, String datasource) booleanhasStat(CoordinatorStat stat) introwCount()voidupdateMax(CoordinatorStat stat, RowKey rowKey, long value) Updates the maximum value of the stat for the given RowKey if applicable.
-
Constructor Details
-
CoordinatorRunStats
public CoordinatorRunStats() -
CoordinatorRunStats
Creates a newCoordinatorRunStats.- Parameters:
debugDimensions- Dimension values for which all metrics should be collected and logged.
-
-
Method Details
-
empty
-
getSegmentStat
-
get
-
get
-
forEachStat
-
buildStatsTable
Builds a printable table of all the collected error, info and debug level stats (if there are qualifying debugDimensions) with non-zero values. -
hasStat
-
rowCount
public int rowCount() -
clear
public void clear() -
add
-
add
-
addToSegmentStat
-
updateMax
Updates the maximum value of the stat for the given RowKey if applicable.
-