Package org.apache.hadoop.hbase.wal
Class AsyncFSWALProvider
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractFSWALProvider<AsyncFSWAL>
org.apache.hadoop.hbase.wal.AsyncFSWALProvider
- All Implemented Interfaces:
WALProvider
A WAL provider that use
AsyncFSWAL
.-
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.Writer, WALProvider.WriterBase
-
Field Summary
Modifier and TypeFieldDescriptionprotected Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>
Protected visibility for used in tests.protected org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup
Protected visibility for used in tests.private static final org.slf4j.Logger
static final String
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 TypeMethodDescriptioncreateAsyncWriter
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, long blocksize, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass, StreamSlowMonitor monitor) Public because of AsyncFSWAL.createAsyncWriter
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) Public because of AsyncFSWAL.protected AsyncFSWAL
protected void
doInit
(org.apache.hadoop.conf.Configuration conf) static boolean
load()
Test whether we can load the helper classes for async dfs output.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:
-
eventLoopGroup
Protected visibility for used in tests. -
channelClass
Protected visibility for used in tests.
-
-
Constructor Details
-
AsyncFSWALProvider
public AsyncFSWALProvider()
-
-
Method Details
-
createWAL
- Specified by:
createWAL
in classAbstractFSWALProvider<AsyncFSWAL>
- Throws:
IOException
-
doInit
- Specified by:
doInit
in classAbstractFSWALProvider<AsyncFSWAL>
- Throws:
IOException
-
createAsyncWriter
public static AsyncFSWALProvider.AsyncWriter createAsyncWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass) throws IOException Public because of AsyncFSWAL. Should be package-private- Throws:
IOException
-
createAsyncWriter
public static AsyncFSWALProvider.AsyncWriter createAsyncWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean overwritable, long blocksize, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup eventLoopGroup, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass, StreamSlowMonitor monitor) throws IOException Public because of AsyncFSWAL. Should be package-private- Throws:
IOException
-
load
Test whether we can load the helper classes for async dfs output.
-