Class WALEventTrackerListener
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.WALEventTrackerListener
- All Implemented Interfaces:
WALActionsListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.wal.WALActionsListener
WALActionsListener.RollRequestReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
private final NamedQueueRecorder
private final String
-
Constructor Summary
ConstructorDescriptionWALEventTrackerListener
(org.apache.hadoop.conf.Configuration conf, NamedQueueRecorder namedQueueRecorder, ServerName serverName) -
Method Summary
Modifier and TypeMethodDescriptionprivate WALEventTrackerPayload
getPayload
(String path, String state, long walLength) void
postLogRoll
(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) The WAL has been rolled.void
preLogRoll
(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, wait
Methods 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:WALActionsListener
The WAL is going to be rolled. The oldPath can be null if this is the first log file from the regionserver.- Specified by:
preLogRoll
in interfaceWALActionsListener
- Parameters:
oldPath
- the path to the old walnewPath
- the path to the new wal
-
postLogRoll
Description copied from interface:WALActionsListener
The WAL has been rolled. The oldPath can be null if this is the first log file from the regionserver.- Specified by:
postLogRoll
in interfaceWALActionsListener
- Parameters:
oldPath
- the path to the old walnewPath
- the path to the new wal
-
getPayload
-