Class NamedQueueServiceChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.namequeues.NamedQueueServiceChore
- All Implemented Interfaces:
Runnable
Chore to insert multiple accumulated slow/large logs to hbase:slowlog system table
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Connection
private static final org.slf4j.Logger
static final int
static final String
private final NamedQueueRecorder
-
Constructor Summary
ConstructorDescriptionNamedQueueServiceChore
(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection) Chore Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the ChoreMethods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
NAMED_QUEUE_CHORE_DURATION_KEY
- See Also:
-
NAMED_QUEUE_CHORE_DURATION_DEFAULT
- See Also:
-
namedQueueRecorder
-
connection
-
-
Constructor Details
-
NamedQueueServiceChore
public NamedQueueServiceChore(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection) Chore Constructor- Parameters:
stopper
- The stopper - WhenStoppable.isStopped()
is true, this chore will cancel and cleanupperiod
- Period in millis with which this Chore repeats execution when schedulednamedQueueRecorder
-NamedQueueRecorder
instance
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-