public abstract class InvariantsChecker extends Object implements SchedulingEditPolicy
Modifier and Type | Field and Description |
---|---|
static String |
INVARIANT_MONITOR_INTERVAL |
static String |
THROW_ON_VIOLATION |
Constructor and Description |
---|
InvariantsChecker() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
RMContext |
getContext() |
long |
getMonitoringInterval() |
String |
getPolicyName() |
ResourceScheduler |
getScheduler() |
boolean |
getThrowOnInvariantViolation() |
void |
init(org.apache.hadoop.conf.Configuration config,
RMContext rmContext,
ResourceScheduler scheduler) |
void |
logOrThrow(String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
editSchedule
public static final String THROW_ON_VIOLATION
public static final String INVARIANT_MONITOR_INTERVAL
public void init(org.apache.hadoop.conf.Configuration config, RMContext rmContext, ResourceScheduler scheduler)
init
in interface SchedulingEditPolicy
public long getMonitoringInterval()
getMonitoringInterval
in interface SchedulingEditPolicy
public String getPolicyName()
getPolicyName
in interface SchedulingEditPolicy
public void logOrThrow(String message) throws InvariantViolationException
InvariantViolationException
public boolean getThrowOnInvariantViolation()
public org.apache.hadoop.conf.Configuration getConf()
public RMContext getContext()
public ResourceScheduler getScheduler()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.