@InterfaceAudience.Private @InterfaceStability.Evolving public class FSHLogProvider extends AbstractFSWALProvider<FSHLog>
FSHLog
.Modifier and Type | Class and Description |
---|---|
static interface |
FSHLogProvider.Writer |
AbstractFSWALProvider.Reader
WALProvider.AsyncWriter, WALProvider.WriterBase
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
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 and Description |
---|
FSHLogProvider() |
Modifier and Type | Method and Description |
---|---|
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, requestLogRoll, shutdown, validateWALFilename
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWALFileLengthProvider
private static final org.slf4j.Logger LOG
public FSHLogProvider()
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
IOException
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
IOException
protected FSHLog createWAL() throws IOException
createWAL
in class AbstractFSWALProvider<FSHLog>
IOException
protected void doInit(org.apache.hadoop.conf.Configuration conf) throws IOException
doInit
in class AbstractFSWALProvider<FSHLog>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.