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
FieldsModifier and TypeFieldDescriptionprivate final Connectionprivate static final org.slf4j.Loggerstatic final intstatic final Stringprivate final NamedQueueRecorder -
Constructor Summary
ConstructorsConstructorDescriptionNamedQueueServiceChore(Stoppable stopper, int period, NamedQueueRecorder namedQueueRecorder, Connection connection) Chore Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchore()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-NamedQueueRecorderinstance
-
-
Method Details
-
chore
Description copied from class:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
chorein classScheduledChore
-