Package org.apache.hadoop.hbase.io
Class WALLink
java.lang.Object
org.apache.hadoop.hbase.io.FileLink
org.apache.hadoop.hbase.io.WALLink
WALLink describes a link to a WAL. An wal can be in /hbase/.logs/<server>/<wal> or it
can be in /hbase/.oldlogs/<wal> The link checks first in the original path, if it is not
present it fallbacks to the archived path.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.io.FileLink
FileLink.FileLinkInputStream
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.io.FileLink
BACK_REFERENCES_DIRECTORY_PREFIX
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.hbase.io.FileLink
equals, exists, getAvailablePath, getBackReferenceFileName, getBackReferencesDir, getFileStatus, getLocations, getUnderlyingFileLinkInputStream, hashCode, isBackReferencesDir, open, open, setLocations, toString
-
Constructor Details
-
WALLink
public WALLink(org.apache.hadoop.conf.Configuration conf, String serverName, String logName) throws IOException - Parameters:
conf
-Configuration
from which to extract specific archive locationsserverName
- Region Server owner of the loglogName
- WAL file name- Throws:
IOException
- on unexpected error.
-
WALLink
- Parameters:
walRootDir
- Path to the root directory where hbase files are storedserverName
- Region Server owner of the loglogName
- WAL file name
-
WALLink
- Parameters:
originPath
- Path to the wal in the log directoryarchivePath
- Path to the wal in the archived log directory
-