Class Violation
- java.lang.Object
-
- org.apache.solr.client.solrj.cloud.autoscaling.Violation
-
- All Implemented Interfaces:
MapSerializable,MapWriter,NavigableObject
public class Violation extends Object implements MapWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViolationaddReplica(org.apache.solr.client.solrj.cloud.autoscaling.Violation.ReplicaInfoAndErr r)booleanequals(Object that)ClausegetClause()List<org.apache.solr.client.solrj.cloud.autoscaling.Violation.ReplicaInfoAndErr>getViolatingReplicas()inthashCode()booleanisLessSerious(Violation that)booleanisSimilarViolation(Violation that)booleanmatchShard(String shard)StringtoString()voidwriteMap(MapWriter.EntryWriter ew)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Method Detail
-
addReplica
public Violation addReplica(org.apache.solr.client.solrj.cloud.autoscaling.Violation.ReplicaInfoAndErr r)
-
getViolatingReplicas
public List<org.apache.solr.client.solrj.cloud.autoscaling.Violation.ReplicaInfoAndErr> getViolatingReplicas()
-
getClause
public Clause getClause()
-
matchShard
public boolean matchShard(String shard)
-
isLessSerious
public boolean isLessSerious(Violation that)
-
isSimilarViolation
public boolean isSimilarViolation(Violation that)
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
-