Class InvariantsChecker
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.monitor.invariants.InvariantsChecker
- All Implemented Interfaces:
SchedulingEditPolicy
- Direct Known Subclasses:
MetricsInvariantChecker,ReservationInvariantsChecker
Abstract invariant checker, that setup common context for invariants
checkers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()longbooleanvoidinit(org.apache.hadoop.conf.Configuration config, RMContext rmContext, ResourceScheduler scheduler) voidlogOrThrow(String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.monitor.SchedulingEditPolicy
editSchedule
-
Field Details
-
THROW_ON_VIOLATION
- See Also:
-
INVARIANT_MONITOR_INTERVAL
- See Also:
-
-
Constructor Details
-
InvariantsChecker
public InvariantsChecker()
-
-
Method Details
-
init
public void init(org.apache.hadoop.conf.Configuration config, RMContext rmContext, ResourceScheduler scheduler) - Specified by:
initin interfaceSchedulingEditPolicy
-
getMonitoringInterval
public long getMonitoringInterval()- Specified by:
getMonitoringIntervalin interfaceSchedulingEditPolicy
-
getPolicyName
- Specified by:
getPolicyNamein interfaceSchedulingEditPolicy
-
logOrThrow
- Throws:
InvariantViolationException
-
getThrowOnInvariantViolation
public boolean getThrowOnInvariantViolation() -
getConf
public org.apache.hadoop.conf.Configuration getConf() -
getContext
-
getScheduler
-