public class CoresVariable extends VariableBase
VariableBase.CoreIndexSizeVariable, VariableBase.DiskTypeVariable, VariableBase.LazyVariable, VariableBase.TotalDiskVariable
Variable.Meta, Variable.Type
coreidxsize, NULL
Constructor and Description |
---|
CoresVariable(Variable.Type type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addViolatingReplicas(org.apache.solr.client.solrj.cloud.autoscaling.Violation.Ctx ctx)
Deprecated.
|
Object |
computeValue(Policy.Session session,
Condition condition,
String collection,
String shard,
String node)
Deprecated.
When a non constant value is used in a variable, the actual value needs to be computed at the runtime
|
Operand |
getOperand(Operand expected,
Object strVal,
ComputedType computedType)
Deprecated.
|
void |
getSuggestions(org.apache.solr.client.solrj.cloud.autoscaling.Suggestion.Ctx ctx)
Deprecated.
|
String |
postValidate(Condition condition)
Deprecated.
|
void |
projectAddReplica(Cell cell,
ReplicaInfo ri,
Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> ops,
boolean strictMode)
Deprecated.
|
void |
projectRemoveReplica(Cell cell,
ReplicaInfo ri,
Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector)
Deprecated.
|
Object |
validate(String name,
Object val,
boolean isRuleVal)
Deprecated.
|
compareViolation, getTagType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeDeviation, convertVal, match
public CoresVariable(Variable.Type type)
public Object validate(String name, Object val, boolean isRuleVal)
validate
in interface Variable
validate
in class VariableBase
public boolean addViolatingReplicas(org.apache.solr.client.solrj.cloud.autoscaling.Violation.Ctx ctx)
public void getSuggestions(org.apache.solr.client.solrj.cloud.autoscaling.Suggestion.Ctx ctx)
getSuggestions
in interface Variable
getSuggestions
in class VariableBase
public void projectAddReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> ops, boolean strictMode)
public void projectRemoveReplica(Cell cell, ReplicaInfo ri, Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector)
public Object computeValue(Policy.Session session, Condition condition, String collection, String shard, String node)
Variable
public String postValidate(Condition condition)
postValidate
in interface Variable
postValidate
in class VariableBase
public Operand getOperand(Operand expected, Object strVal, ComputedType computedType)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.