Modifier and Type | Field and Description |
---|---|
private static java.util.List<TypedPreference<?>> |
CONFIG_ATTRIBUTES |
static TypedPreference<IQuantity> |
GC_LOCKER_RATIO_LIMIT |
private static java.lang.String |
GC_LOCKER_RESULT_ID |
Constructor and Description |
---|
GcLockerRule() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.RunnableFuture<Result> |
evaluate(IItemCollection items,
IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
java.util.Collection<TypedPreference<?>> |
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.
|
private Result |
getGcLockerResult(double gcLockers,
double totalCcCount,
IQuantity limit) |
java.lang.String |
getId() |
java.lang.String |
getName() |
private Result |
getResult(IItemCollection items,
IPreferenceValueProvider valueProvider) |
java.lang.String |
getTopic() |
private static final java.lang.String GC_LOCKER_RESULT_ID
public static final TypedPreference<IQuantity> GC_LOCKER_RATIO_LIMIT
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
IRule
evaluate
in interface IRule
items
- items to evaluatevalueProvider
- Provider of configuration values used for evaluation. The attributes that will be
asked for from the provider should be provided by
IRule.getConfigurationAttributes()
.private Result getGcLockerResult(double gcLockers, double totalCcCount, IQuantity limit)
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
IRule
getConfigurationAttributes
in interface IRule
public java.lang.String getId()
public java.lang.String getName()