Package org.apache.hadoop.hbase.wal
Class FSHLogProvider
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractFSWALProvider<FSHLog>
org.apache.hadoop.hbase.wal.FSHLogProvider
- All Implemented Interfaces:
WALProvider
A WAL provider that use
FSHLog
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.wal.AbstractFSWALProvider
AbstractFSWALProvider.Initializer, AbstractFSWALProvider.WALStartTimeComparator
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.wal.WALProvider
WALProvider.AsyncWriter, WALProvider.WriterBase
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.wal.AbstractFSWALProvider
abortable, conf, DEFAULT_PROVIDER_ID, DEFAULT_SEPARATE_OLDLOGDIR, factory, initialized, listeners, logPrefix, META_WAL_PROVIDER_ID, providerId, SEPARATE_OLDLOGDIR, SPLITTING_EXT, wal, WAL_FILE_NAME_DELIMITER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FSHLog
static FSHLogProvider.Writer
createWriter
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable) Public because of FSHLog.static FSHLogProvider.Writer
createWriter
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, long blocksize) Public because of FSHLog.protected void
doInit
(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.hbase.wal.AbstractFSWALProvider
addWALActionsListener, close, extractFileNumFromWAL, findArchivedLog, getCurrentFileName, getLogFileSize, getLogFileSize, getNumLogFiles, getNumRolledLogFiles, getServerNameFromWALDirectoryName, getServerNameFromWALDirectoryName, getWAL, getWALArchiveDirectoryName, getWALDirectoryName, getWALPrefixFromWALName, getWALs, init, isArchivedLogFile, isMetaFile, isMetaFile, recoverLease, requestLogRoll, shutdown, validateWALFilename
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.wal.WALProvider
getWALFileLengthProvider
-
Field Details
-
LOG
-
WRITER_IMPL
- See Also:
-
-
Constructor Details
-
FSHLogProvider
public FSHLogProvider()
-
-
Method Details
-
createWriter
public static FSHLogProvider.Writer createWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable) throws IOException Public because of FSHLog. Should be package-private- Parameters:
overwritable
- if the created writer can overwrite. For recovered edits, it is true and for WAL it is false. Thus we can distinguish WAL and recovered edits by this.- Throws:
IOException
-
createWriter
public static FSHLogProvider.Writer createWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, long blocksize) throws IOException Public because of FSHLog. Should be package-private- Throws:
IOException
-
createWAL
- Specified by:
createWAL
in classAbstractFSWALProvider<FSHLog>
- Throws:
IOException
-
doInit
- Specified by:
doInit
in classAbstractFSWALProvider<FSHLog>
- Throws:
IOException
-