|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.connectionpool.impl.SmaLatencyScoreStrategyInstanceImpl
public class SmaLatencyScoreStrategyInstanceImpl
Constructor Summary | |
---|---|
SmaLatencyScoreStrategyInstanceImpl(ConnectionPoolConfiguration config)
|
Method Summary | |
---|---|
void |
addSample(long sample,
long now)
Add a single latency sample |
protected double |
calculateCurrentScore(long now)
|
long |
getLastSampleTime()
Time of last sample added by calling addSample |
double |
getMean()
Get the mean for the sample window |
double |
getScore()
Get the cached score for this endpoint |
void |
reset()
Reset the score and any internal stats |
void |
update(long now)
Update the score for the current time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmaLatencyScoreStrategyInstanceImpl(ConnectionPoolConfiguration config)
Method Detail |
---|
public void addSample(long sample, long now)
LatencyScoreStrategy.Instance
addSample
in interface LatencyScoreStrategy.Instance
public double getScore()
LatencyScoreStrategy.Instance
getScore
in interface LatencyScoreStrategy.Instance
public void reset()
LatencyScoreStrategy.Instance
reset
in interface LatencyScoreStrategy.Instance
public void update(long now)
LatencyScoreStrategy.Instance
update
in interface LatencyScoreStrategy.Instance
public long getLastSampleTime()
LatencyScoreStrategy.Instance
getLastSampleTime
in interface LatencyScoreStrategy.Instance
protected double calculateCurrentScore(long now)
public double getMean()
LatencyScoreStrategy.Instance
getMean
in interface LatencyScoreStrategy.Instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |