Class EntityOwnerSelectionStrategyConfig
- java.lang.Object
-
- org.opendaylight.controller.cluster.entityownership.selectionstrategy.EntityOwnerSelectionStrategyConfig
-
public final class EntityOwnerSelectionStrategyConfig extends Object
FIXME: this is simple registry service, except it also loads classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityOwnerSelectionStrategyConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclearStrategies()Deprecated.FIXME: THIS IS CONFIGURATION FOR A CUSTOM-LOADED CLASS CONSTRUCTOREntityOwnerSelectionStrategycreateStrategy(String entityType, Map<String,Long> initialStatistics)booleanisStrategyConfigured(String entityType)static EntityOwnerSelectionStrategyConfig.BuildernewBuilder()
-
-
-
Method Detail
-
isStrategyConfigured
public boolean isStrategyConfigured(String entityType)
-
createStrategy
public EntityOwnerSelectionStrategy createStrategy(String entityType, Map<String,Long> initialStatistics)
-
clearStrategies
@Deprecated public void clearStrategies()
Deprecated.FIXME: THIS IS CONFIGURATION FOR A CUSTOM-LOADED CLASS CONSTRUCTORThis class should not exist. It contains a single long, which is passed to the constructor (via reflection). We are getting that information from a BundleContext. We are running in OSGi environment, hence this class needs to be deployed in its own bundle, with its own configuration. If this is used internally, it needs to be relocated into a separate package along with the implementation using it.
-
newBuilder
public static EntityOwnerSelectionStrategyConfig.Builder newBuilder()
-
-