public class FreeDiskVariable extends VariableBase
VariableBase.CoreIndexSizeVariable, VariableBase.DiskTypeVariable, VariableBase.LazyVariable, VariableBase.TotalDiskVariable
Variable.Meta, Variable.Type
coreidxsize, NULL
Constructor and Description |
---|
FreeDiskVariable(Variable.Type type) |
Modifier and Type | Method and Description |
---|---|
int |
compareViolation(Violation v1,
Violation v2) |
void |
computeDeviation(Policy.Session session,
double[] deviation,
org.apache.solr.client.solrj.cloud.autoscaling.ReplicaCount replicaCount,
SealedClause sealedClause) |
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
|
Object |
convertVal(Object val) |
void |
getSuggestions(org.apache.solr.client.solrj.cloud.autoscaling.Suggestion.Ctx ctx) |
void |
projectAddReplica(Cell cell,
ReplicaInfo ri,
Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> ops,
boolean strictMode) |
void |
projectRemoveReplica(Cell cell,
ReplicaInfo ri,
Consumer<org.apache.solr.client.solrj.cloud.autoscaling.Row.OperationInfo> opCollector) |
getTagType, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addViolatingReplicas, getOperand, match, postValidate
public FreeDiskVariable(Variable.Type type)
public Object computeValue(Policy.Session session, Condition condition, String collection, String shard, String node)
Variable
public int compareViolation(Violation v1, Violation v2)
compareViolation
in interface Variable
compareViolation
in class VariableBase
public void computeDeviation(Policy.Session session, double[] deviation, org.apache.solr.client.solrj.cloud.autoscaling.ReplicaCount replicaCount, SealedClause sealedClause)
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)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.