@InterfaceAudience.Private @InterfaceStability.Evolving public class FSHLogProvider extends AbstractFSWALProvider<FSHLog>
FSHLog.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
FSHLogProvider.Writer |
AbstractFSWALProvider.ReaderWALProvider.AsyncWriter, WALProvider.WriterBaseconf, DEFAULT_SEPARATE_OLDLOGDIR, factory, initialized, listeners, logPrefix, META_WAL_PROVIDER_ID, providerId, SEPARATE_OLDLOGDIR, SPLITTING_EXT, wal, WAL_FILE_NAME_DELIMITER| 构造器和说明 |
|---|
FSHLogProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected FSHLog |
createWAL() |
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) |
addWALActionsListener, close, extractFileNumFromWAL, getArchivedLogPath, getCurrentFileName, getLogFileSize, getLogFileSize, getNumLogFiles, getNumRolledLogFiles, getServerNameFromWALDirectoryName, getServerNameFromWALDirectoryName, getWAL, getWALArchiveDirectoryName, getWALDirectoryName, getWALPrefixFromWALName, getWALs, init, isArchivedLogFile, isMetaFile, isMetaFile, openReader, shutdown, validateWALFilenameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWALFileLengthProviderpublic 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
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.IOExceptionpublic 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
IOExceptionprotected FSHLog createWAL() throws IOException
createWAL 在类中 AbstractFSWALProvider<FSHLog>IOExceptionprotected void doInit(org.apache.hadoop.conf.Configuration conf)
throws IOException
doInit 在类中 AbstractFSWALProvider<FSHLog>IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.