Package org.apache.hadoop.hbase.wal
Class AsyncFSWALProvider
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractWALProvider
org.apache.hadoop.hbase.wal.AbstractFSWALProvider<AsyncFSWAL>
org.apache.hadoop.hbase.wal.AsyncFSWALProvider
- All Implemented Interfaces:
PeerActionListener
,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
DEFAULT_PROVIDER_ID, DEFAULT_SEPARATE_OLDLOGDIR, META_WAL_PROVIDER_ID, SEPARATE_OLDLOGDIR, SPLITTING_EXT, TIMESTAMP_COMPARATOR, wal, WAL_FILE_NAME_DELIMITER
Fields inherited from class org.apache.hadoop.hbase.wal.AbstractWALProvider
abortable, conf, factory, initialized, listeners, logPrefix, providerId
Fields inherited from interface org.apache.hadoop.hbase.replication.regionserver.PeerActionListener
DUMMY
-
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 WAL
createRemoteWAL
(RegionInfo region, org.apache.hadoop.fs.FileSystem remoteFs, org.apache.hadoop.fs.Path remoteWALDir, String prefix, String suffix) 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, close0, doInit, extractFileNumFromWAL, findArchivedLog, getArchivedWALFiles, getCurrentFileName, getLogFileSize, getLogFileSize0, getNumLogFiles0, getNumRolledLogFiles, getServerNameFromWALDirectoryName, getServerNameFromWALDirectoryName, getTimestamp, getWAL0, getWALArchiveDirectoryName, getWALDirectoryName, getWALFiles, getWALPrefixFromWALName, getWALs0, isArchivedLogFile, isMetaFile, isMetaFile, parseServerNameFromWALName, recoverLease, requestLogRoll, shutdown0, validateWALFilename
Methods inherited from class org.apache.hadoop.hbase.wal.AbstractWALProvider
close, getLogFileSize, getNumLogFiles, getPeerActionListener, getSyncReplicationPeerIdFromWALName, getWAL, getWALs, init, initWAL, peerSyncReplicationStateChange, setSyncReplicationPeerInfoProvider, shutdown
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
-
createRemoteWAL
protected WAL createRemoteWAL(RegionInfo region, org.apache.hadoop.fs.FileSystem remoteFs, org.apache.hadoop.fs.Path remoteWALDir, String prefix, String suffix) throws IOException - Overrides:
createRemoteWAL
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.
-