|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.shallows.EmptyLatencyScoreStrategyImpl
public class EmptyLatencyScoreStrategyImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.netflix.astyanax.connectionpool.LatencyScoreStrategy |
|---|
LatencyScoreStrategy.Instance, LatencyScoreStrategy.Listener |
| Field Summary | |
|---|---|
static EmptyLatencyScoreStrategyImpl |
instance
|
| Constructor Summary | |
|---|---|
EmptyLatencyScoreStrategyImpl()
|
|
| Method Summary | ||
|---|---|---|
LatencyScoreStrategy.Instance |
createInstance()
Create a new instance to associate with an endpoint |
|
static EmptyLatencyScoreStrategyImpl |
get()
|
|
int |
getBlockedThreshold()
|
|
double |
getKeepRatio()
|
|
int |
getResetInterval()
|
|
double |
getScoreThreshold()
|
|
int |
getUpdateInterval()
|
|
void |
removeInstance(LatencyScoreStrategy.Instance instance)
Remove the instance for an endpoint that is no longer being tracked |
|
void |
reset()
Reset all instance scores |
|
void |
shutdown()
Shutdown the threads created by calling start() |
|
|
sortAndfilterPartition(java.util.List<HostConnectionPool<CL>> pools,
java.util.concurrent.atomic.AtomicBoolean prioritized)
Sorts and filters a list of hosts by looking at their up state and score. |
|
void |
start(LatencyScoreStrategy.Listener listener)
Start updating stats for instances created using createInstance. |
|
java.lang.String |
toString()
|
|
void |
update()
Update all instance scores |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static EmptyLatencyScoreStrategyImpl instance
| Constructor Detail |
|---|
public EmptyLatencyScoreStrategyImpl()
| Method Detail |
|---|
public static EmptyLatencyScoreStrategyImpl get()
public LatencyScoreStrategy.Instance createInstance()
LatencyScoreStrategy
createInstance in interface LatencyScoreStrategypublic void removeInstance(LatencyScoreStrategy.Instance instance)
LatencyScoreStrategy
removeInstance in interface LatencyScoreStrategypublic void start(LatencyScoreStrategy.Listener listener)
LatencyScoreStrategy
start in interface LatencyScoreStrategypublic void shutdown()
LatencyScoreStrategy
shutdown in interface LatencyScoreStrategypublic void update()
LatencyScoreStrategy
update in interface LatencyScoreStrategypublic void reset()
LatencyScoreStrategy
reset in interface LatencyScoreStrategy
public <CL> java.util.List<HostConnectionPool<CL>> sortAndfilterPartition(java.util.List<HostConnectionPool<CL>> pools,
java.util.concurrent.atomic.AtomicBoolean prioritized)
LatencyScoreStrategy
sortAndfilterPartition in interface LatencyScoreStrategyprioritized - - Will be set to true if the filtered data is prioritized or
not. If prioritized then the first element should be selected
from by the load balancing strategy. Otherwise round robin
could be used.
public java.lang.String toString()
toString in class java.lang.Objectpublic int getUpdateInterval()
getUpdateInterval in interface LatencyScoreStrategypublic int getResetInterval()
getResetInterval in interface LatencyScoreStrategypublic double getScoreThreshold()
getScoreThreshold in interface LatencyScoreStrategypublic int getBlockedThreshold()
getBlockedThreshold in interface LatencyScoreStrategypublic double getKeepRatio()
getKeepRatio in interface LatencyScoreStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||