org.apache.hadoop.hbase.io
Class HLogLink

java.lang.Object
  extended by org.apache.hadoop.hbase.io.FileLink
      extended by org.apache.hadoop.hbase.io.HLogLink

@InterfaceAudience.Private
public class HLogLink
extends FileLink

HLogLink describes a link to a WAL. An hlog can be in /hbase/.logs// or it can be in /hbase/.oldlogs/ The link checks first in the original path, if it is not present it fallbacks to the archived path.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.io.FileLink
BACK_REFERENCES_DIRECTORY_PREFIX
 
Constructor Summary
HLogLink(org.apache.hadoop.conf.Configuration conf, String serverName, String logName)
           
HLogLink(org.apache.hadoop.fs.Path originPath, org.apache.hadoop.fs.Path archivePath)
           
HLogLink(org.apache.hadoop.fs.Path rootDir, String serverName, String logName)
           
 
Method Summary
 
Methods inherited from class org.apache.hadoop.hbase.io.FileLink
getAvailablePath, getBackReferenceFileName, getBackReferencesDir, getFileStatus, getLocations, isBackReferencesDir, open, open, setLocations, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HLogLink

public HLogLink(org.apache.hadoop.conf.Configuration conf,
                String serverName,
                String logName)
         throws IOException
Parameters:
conf - Configuration from which to extract specific archive locations
serverName - Region Server owner of the log
logName - WAL file name
Throws:
IOException - on unexpected error.

HLogLink

public HLogLink(org.apache.hadoop.fs.Path rootDir,
                String serverName,
                String logName)
Parameters:
rootDir - Path to the root directory where hbase files are stored
serverName - Region Server owner of the log
logName - WAL file name

HLogLink

public HLogLink(org.apache.hadoop.fs.Path originPath,
                org.apache.hadoop.fs.Path archivePath)
Parameters:
originPath - Path to the wal in the log directory
archivePath - Path to the wal in the archived log directory


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.