Package org.apache.hadoop.hbase.wal
Class FSHLogProvider
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractWALProvider
org.apache.hadoop.hbase.wal.AbstractFSWALProvider<FSHLog>
org.apache.hadoop.hbase.wal.FSHLogProvider
- All Implemented Interfaces:
PeerActionListener,WALProvider
A WAL provider that use
FSHLog.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.hadoop.hbase.wal.AbstractFSWALProvider
AbstractFSWALProvider.Initializer, AbstractFSWALProvider.WALStartTimeComparatorNested classes/interfaces inherited from interface org.apache.hadoop.hbase.wal.WALProvider
WALProvider.AsyncWriter, WALProvider.WriterBase -
Field Summary
FieldsFields 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_DELIMITERFields inherited from class org.apache.hadoop.hbase.wal.AbstractWALProvider
abortable, conf, factory, initialized, listeners, logPrefix, providerIdFields inherited from interface org.apache.hadoop.hbase.replication.regionserver.PeerActionListener
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WALcreateRemoteWAL(RegionInfo region, org.apache.hadoop.fs.FileSystem remoteFs, org.apache.hadoop.fs.Path remoteWALDir, String prefix, String suffix) protected FSHLogstatic FSHLogProvider.WritercreateWriter(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.WritercreateWriter(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 voiddoInit(org.apache.hadoop.conf.Configuration conf) 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, validateWALFilenameMethods inherited from class org.apache.hadoop.hbase.wal.AbstractWALProvider
close, getLogFileSize, getNumLogFiles, getPeerActionListener, getSyncReplicationPeerIdFromWALName, getWAL, getWALs, init, initWAL, peerSyncReplicationStateChange, setSyncReplicationPeerInfoProvider, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createWALin classAbstractFSWALProvider<FSHLog>- 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:
createRemoteWALin classAbstractFSWALProvider<FSHLog>- Throws:
IOException
-
doInit
- Specified by:
doInitin classAbstractFSWALProvider<FSHLog>- Throws:
IOException
-