Class WALEventTrackerListener
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.WALEventTrackerListener
- All Implemented Interfaces:
WALActionsListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.wal.WALActionsListener
WALActionsListener.RollRequestReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate final NamedQueueRecorderprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionWALEventTrackerListener(org.apache.hadoop.conf.Configuration conf, NamedQueueRecorder namedQueueRecorder, ServerName serverName) -
Method Summary
Modifier and TypeMethodDescriptionprivate WALEventTrackerPayloadgetPayload(String path, String state, long walLength) voidpostLogRoll(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) The WAL has been rolled.voidpreLogRoll(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) The WAL is going to be rolled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.regionserver.wal.WALActionsListener
logCloseRequested, logRollRequested, postAppend, postLogArchive, postSync, preLogArchive, visitLogEntryBeforeWrite
-
Field Details
-
conf
-
namedQueueRecorder
-
serverName
-
-
Constructor Details
-
WALEventTrackerListener
public WALEventTrackerListener(org.apache.hadoop.conf.Configuration conf, NamedQueueRecorder namedQueueRecorder, ServerName serverName)
-
-
Method Details
-
preLogRoll
Description copied from interface:WALActionsListenerThe WAL is going to be rolled. The oldPath can be null if this is the first log file from the regionserver.- Specified by:
preLogRollin interfaceWALActionsListener- Parameters:
oldPath- the path to the old walnewPath- the path to the new wal
-
postLogRoll
Description copied from interface:WALActionsListenerThe WAL has been rolled. The oldPath can be null if this is the first log file from the regionserver.- Specified by:
postLogRollin interfaceWALActionsListener- Parameters:
oldPath- the path to the old walnewPath- the path to the new wal
-
getPayload
-