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 SummaryFieldsModifier and TypeFieldDescriptionprivate final Connectionprivate static final org.slf4j.Loggerstatic final intstatic final Stringprivate final NamedQueueRecorder
- 
Constructor SummaryConstructorsConstructorDescriptionNamedQueueServiceChore(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection) Chore Constructor
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidchore()The task to execute on each scheduled execution of the ChoreMethods inherited from class org.apache.hadoop.hbase.ScheduledChorecancel, 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- 
NamedQueueServiceChorepublic NamedQueueServiceChore(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection) Chore Constructor- Parameters:
- stopper- The stopper - When- Stoppable.isStopped()is true, this chore will cancel and cleanup
- period- Period in millis with which this Chore repeats execution when scheduled
- namedQueueRecorder-- NamedQueueRecorderinstance
 
 
- 
- 
Method Details- 
choreDescription copied from class:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
- chorein class- ScheduledChore
 
 
-