com.netflix.astyanax.connectionpool.impl
Class SmaLatencyScoreStrategyImpl

java.lang.Object
  extended by com.netflix.astyanax.connectionpool.impl.AbstractLatencyScoreStrategyImpl
      extended by com.netflix.astyanax.connectionpool.impl.SmaLatencyScoreStrategyImpl
All Implemented Interfaces:
LatencyScoreStrategy

public class SmaLatencyScoreStrategyImpl
extends AbstractLatencyScoreStrategyImpl


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.netflix.astyanax.connectionpool.LatencyScoreStrategy
LatencyScoreStrategy.Instance, LatencyScoreStrategy.Listener
 
Field Summary
 
Fields inherited from class com.netflix.astyanax.connectionpool.impl.AbstractLatencyScoreStrategyImpl
DEFAULT_BLOCKED_THREAD_THRESHOLD, DEFAULT_KEEP_RATIO, DEFAULT_RESET_INTERVAL, DEFAULT_SCORE_THRESHOLD, DEFAULT_UPDATE_INTERVAL
 
Constructor Summary
SmaLatencyScoreStrategyImpl()
           
SmaLatencyScoreStrategyImpl(int updateInterval, int resetInterval, int windowSize, double badnessThreshold)
           
SmaLatencyScoreStrategyImpl(int updateInterval, int resetInterval, int windowSize, int blockedThreshold, double keepRatio, double scoreThreshold)
           
 
Method Summary
 LatencyScoreStrategy.Instance newInstance()
          Template method for creating a new latency tracking instance for a host
 
Methods inherited from class com.netflix.astyanax.connectionpool.impl.AbstractLatencyScoreStrategyImpl
createInstance, getBlockedThreshold, getKeepRatio, getResetInterval, getScoreThreshold, getUpdateInterval, removeInstance, reset, shutdown, sortAndfilterPartition, start, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmaLatencyScoreStrategyImpl

public SmaLatencyScoreStrategyImpl(int updateInterval,
                                   int resetInterval,
                                   int windowSize,
                                   int blockedThreshold,
                                   double keepRatio,
                                   double scoreThreshold)

SmaLatencyScoreStrategyImpl

public SmaLatencyScoreStrategyImpl(int updateInterval,
                                   int resetInterval,
                                   int windowSize,
                                   double badnessThreshold)

SmaLatencyScoreStrategyImpl

public SmaLatencyScoreStrategyImpl()
Method Detail

newInstance

public final LatencyScoreStrategy.Instance newInstance()
Description copied from class: AbstractLatencyScoreStrategyImpl
Template method for creating a new latency tracking instance for a host

Specified by:
newInstance in class AbstractLatencyScoreStrategyImpl
Returns: