Interface Variable
-
- All Known Implementing Classes:
CoresVariable,FreeDiskVariable,NodeVariable,Variable.Type,VariableBase,VariableBase.CoreIndexSizeVariable,VariableBase.DiskTypeVariable,VariableBase.LazyVariable,VariableBase.TotalDiskVariable,WithCollectionVariable
public interface VariableA Variable Type used in Autoscaling policy rules. Each variable type may have unique implementation of functionalities
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceVariable.Metastatic classVariable.TypeType details of each variable in policies
-
Field Summary
Fields Modifier and Type Field Description static Stringcoreidxsizestatic StringNULL
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanaddViolatingReplicas(org.apache.solr.client.solrj.cloud.autoscaling.Violation.Ctx ctx)intcompareViolation(Violation v1, Violation v2)default voidcomputeDeviation(Policy.Session session, double[] deviations, org.apache.solr.client.solrj.cloud.autoscaling.ReplicaCount replicaCount, SealedClause sealedClause)default ObjectcomputeValue(Policy.Session session, Condition condition, String collection, String shard, String node)When a non constant value is used in a variable, the actual value needs to be computed at the runtimedefault ObjectconvertVal(Object val)default OperandgetOperand(Operand expected, Object strVal, ComputedType computedType)voidgetSuggestions(org.apache.solr.client.solrj.cloud.autoscaling.Suggestion.Ctx ctx)default booleanmatch(Object inputVal, Operand op, Object val, String name, Row row)default StringpostValidate(Condition condition)default voidprojectAddReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector, boolean strictMode)default voidprojectRemoveReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector)Objectvalidate(String name, Object val, boolean isRuleVal)
-
-
-
Field Detail
-
NULL
static final String NULL
- See Also:
- Constant Field Values
-
coreidxsize
static final String coreidxsize
- See Also:
- Constant Field Values
-
-
Method Detail
-
projectAddReplica
default void projectAddReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector, boolean strictMode)
-
addViolatingReplicas
default boolean addViolatingReplicas(org.apache.solr.client.solrj.cloud.autoscaling.Violation.Ctx ctx)
-
getSuggestions
void getSuggestions(org.apache.solr.client.solrj.cloud.autoscaling.Suggestion.Ctx ctx)
-
computeValue
default Object computeValue(Policy.Session session, Condition condition, String collection, String shard, String node)
When a non constant value is used in a variable, the actual value needs to be computed at the runtime
-
computeDeviation
default void computeDeviation(Policy.Session session, double[] deviations, org.apache.solr.client.solrj.cloud.autoscaling.ReplicaCount replicaCount, SealedClause sealedClause)
-
projectRemoveReplica
default void projectRemoveReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector)
-
getOperand
default Operand getOperand(Operand expected, Object strVal, ComputedType computedType)
-
-