@InterfaceAudience.Private public class ExecutorStatusChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WAKE_FREQ |
private static org.slf4j.Logger |
LOG |
private DynamicMetricsRegistry |
metricsRegistry |
private ExecutorService |
service |
static String |
WAKE_FREQ |
Constructor and Description |
---|
ExecutorStatusChore(int sleepTime,
Stoppable stopper,
ExecutorService service,
MetricsRegionServerSource metrics) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
Pair<Long,Long> |
getExecutorStatus(String poolName) |
cancel, cancel, choreForTesting, cleanup, getChoreService, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, setChoreService, shutdown, shutdown, toString, triggerNow
private static final org.slf4j.Logger LOG
public static final String WAKE_FREQ
public static final int DEFAULT_WAKE_FREQ
private ExecutorService service
private DynamicMetricsRegistry metricsRegistry
public ExecutorStatusChore(int sleepTime, Stoppable stopper, ExecutorService service, MetricsRegionServerSource metrics)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
public Pair<Long,Long> getExecutorStatus(String poolName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.