Package com.github.ambry.config
Class StatsManagerConfig
- java.lang.Object
-
- com.github.ambry.config.StatsManagerConfig
-
public class StatsManagerConfig extends java.lang.Object
The configs for stats.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
enableMysqlReport
int
initialDelayUpperBoundInSecs
The upper bound for the initial delay in seconds before the first stats collection is triggered.java.lang.String
outputFilePath
The file path (including filename) to be used for publishing the stats.long
publishPeriodInSecs
The time period in seconds that configures how often stats are published.static java.lang.String
STATS_ENABLE_MYSQL_REPORT
static java.lang.String
STATS_INITIAL_DELAY_UPPER_BOUND_IN_SECS
static java.lang.String
STATS_OUTPUT_FILE_PATH
static java.lang.String
STATS_PUBLISH_PERIOD_IN_SECS
-
Constructor Summary
Constructors Constructor Description StatsManagerConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
STATS_OUTPUT_FILE_PATH
public static final java.lang.String STATS_OUTPUT_FILE_PATH
- See Also:
- Constant Field Values
-
STATS_PUBLISH_PERIOD_IN_SECS
public static final java.lang.String STATS_PUBLISH_PERIOD_IN_SECS
- See Also:
- Constant Field Values
-
STATS_INITIAL_DELAY_UPPER_BOUND_IN_SECS
public static final java.lang.String STATS_INITIAL_DELAY_UPPER_BOUND_IN_SECS
- See Also:
- Constant Field Values
-
STATS_ENABLE_MYSQL_REPORT
public static final java.lang.String STATS_ENABLE_MYSQL_REPORT
- See Also:
- Constant Field Values
-
outputFilePath
@Config("stats.output.file.path") @Default("/tmp/stats_output.json") public final java.lang.String outputFilePath
The file path (including filename) to be used for publishing the stats.
-
publishPeriodInSecs
@Config("stats.publish.period.in.secs") @Default("7200") public final long publishPeriodInSecs
The time period in seconds that configures how often stats are published.
-
initialDelayUpperBoundInSecs
@Config("stats.initial.delay.upper.bound.in.secs") @Default("600") public final int initialDelayUpperBoundInSecs
The upper bound for the initial delay in seconds before the first stats collection is triggered. The delay is a random number b/w 0 (inclusive) and this number (exclusive). If no initial delay is desired, this can be set to 0.
-
-
Constructor Detail
-
StatsManagerConfig
public StatsManagerConfig(VerifiableProperties verifiableProperties)
-
-