|
||||||||||
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()
|
|
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(List<HostConnectionPool<CL>> pools,
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. |
|
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 LatencyScoreStrategy
public void removeInstance(LatencyScoreStrategy.Instance instance)
LatencyScoreStrategy
removeInstance
in interface LatencyScoreStrategy
public void start(LatencyScoreStrategy.Listener listener)
LatencyScoreStrategy
start
in interface LatencyScoreStrategy
public void shutdown()
LatencyScoreStrategy
shutdown
in interface LatencyScoreStrategy
public void update()
LatencyScoreStrategy
update
in interface LatencyScoreStrategy
public void reset()
LatencyScoreStrategy
reset
in interface LatencyScoreStrategy
public <CL> List<HostConnectionPool<CL>> sortAndfilterPartition(List<HostConnectionPool<CL>> pools, AtomicBoolean prioritized)
LatencyScoreStrategy
sortAndfilterPartition
in interface LatencyScoreStrategy
prioritized
- - 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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |