Search in sources :

Example 1 with DynamicFloatProperty

use of com.netflix.config.DynamicFloatProperty in project ribbon by Netflix.

the class ServerListSubsetFilter method initWithNiwsConfig.

@Override
public void initWithNiwsConfig(IClientConfig clientConfig) {
    super.initWithNiwsConfig(clientConfig);
    sizeProp = new DynamicIntProperty(clientConfig.getClientName() + "." + clientConfig.getNameSpace() + ".ServerListSubsetFilter.size", 20);
    eliminationPercent = new DynamicFloatProperty(clientConfig.getClientName() + "." + clientConfig.getNameSpace() + ".ServerListSubsetFilter.forceEliminatePercent", 0.1f);
    eliminationFailureCountThreshold = new DynamicIntProperty(clientConfig.getClientName() + "." + clientConfig.getNameSpace() + ".ServerListSubsetFilter.eliminationFailureThresold", 0);
    eliminationConnectionCountThreshold = new DynamicIntProperty(clientConfig.getClientName() + "." + clientConfig.getNameSpace() + ".ServerListSubsetFilter.eliminationConnectionThresold", 0);
}
Also used : DynamicIntProperty(com.netflix.config.DynamicIntProperty) DynamicFloatProperty(com.netflix.config.DynamicFloatProperty)

Aggregations

DynamicFloatProperty (com.netflix.config.DynamicFloatProperty)1 DynamicIntProperty (com.netflix.config.DynamicIntProperty)1