|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.MasterFileSystem
public class MasterFileSystem
This class abstracts a bunch of operations the HMaster needs to interact with the underlying file system, including splitting log files, checking file system status, etc.
Constructor Summary | |
---|---|
MasterFileSystem(Server master,
MasterMetrics metrics)
|
Method Summary | |
---|---|
boolean |
checkFileSystem()
Checks to see if the file system is still accessible. |
void |
deleteFamily(HRegionInfo region,
byte[] familyName)
|
void |
deleteRegion(HRegionInfo region)
|
void |
deleteTable(byte[] tableName)
|
org.apache.hadoop.fs.FileSystem |
getFileSystem()
|
org.apache.hadoop.fs.Path |
getOldLogDir()
Get the directory where old logs go |
org.apache.hadoop.fs.Path |
getRootDir()
|
static void |
setInfoFamilyCaching(HRegionInfo hri,
boolean b)
Enable in-memory caching for specified region. |
void |
splitLog(List<String> serverNames)
|
void |
splitLog(String serverName)
|
void |
stop()
|
void |
updateRegionInfo(HRegionInfo region)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterFileSystem(Server master, MasterMetrics metrics) throws IOException
IOException
Method Detail |
---|
public org.apache.hadoop.fs.FileSystem getFileSystem()
public org.apache.hadoop.fs.Path getOldLogDir()
public boolean checkFileSystem()
public org.apache.hadoop.fs.Path getRootDir()
IOException
public void splitLog(String serverName) throws IOException
IOException
public void splitLog(List<String> serverNames) throws IOException
IOException
public static void setInfoFamilyCaching(HRegionInfo hri, boolean b)
hri
- Set all family block caching to b
b
- public void deleteRegion(HRegionInfo region) throws IOException
IOException
public void deleteTable(byte[] tableName) throws IOException
IOException
public void updateRegionInfo(HRegionInfo region)
public void deleteFamily(HRegionInfo region, byte[] familyName) throws IOException
IOException
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |