public class QoSConfig
extends java.lang.Object
| Constructor and Description |
|---|
QoSConfig(int percentile,
int quorum,
int period,
int minSampleCount,
int minSentinelCount)
Creates a new global configuration
object for the QoS.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMinSampleCount()
Returns the amount of samples which a
sentinel has to provide to be counted as
a valid sentinel.
|
int |
getMinSentinelCount()
Returns the amount of sentinels which
must be available to perform a
QoS calculation.
|
protected int |
getPercentile()
Returns the percentile which should be
read from the metrics (sentinels).
|
protected int |
getPeriod()
Returns the period in seconds, after which the QoS
calculation is executed.
|
protected int |
getQuorum()
Returns how many percent of all api's must
be over the defined ratio, so the given api
is rejected.
|
public QoSConfig(int percentile,
int quorum,
int period,
int minSampleCount,
int minSentinelCount)
percentile - the percentile which should be read from the metrics (sentinels).quorum - defines how many percent of all api's must be over the defined ratio, so the given api is rejected.period - defines the period in seconds after which the calculation is executed.minSampleCount - defines the min. samples count of a sentinel so it can be used for the QoS calc.minSentinelCount - defines the min. sentinel count used to perform a QoS calc.protected int getPercentile()
protected int getQuorum()
protected int getPeriod()
public int getMinSampleCount()
public int getMinSentinelCount()