public class GlusterFSXattr extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GlusterFSXattr.CMD |
static class |
GlusterFSXattr.LAYOUT |
Constructor and Description |
---|
GlusterFSXattr() |
GlusterFSXattr(String getAttr) |
Modifier and Type | Method and Description |
---|---|
String |
brick2file(String brick) |
String |
brick2host(String brick) |
HashMap<String,ArrayList<String>> |
execGetFattr(String filename,
HashMap<String,Integer> meta,
GlusterFSXattr.CMD cmd) |
long |
getBlockSize(String filename) |
org.apache.hadoop.fs.BlockLocation[] |
getPathInfo(String filename,
long start,
long len) |
short |
getReplication(String filename) |
int |
getReplicationFromLayout(HashMap<String,ArrayList<String>> vol,
HashMap<String,Integer> meta) |
TreeMap<Integer,GlusterFSBrickClass> |
quickIOPossible(String filename,
long start,
long len) |
public GlusterFSXattr(String getAttr)
public GlusterFSXattr()
public String brick2host(String brick) throws IOException
IOException
public String brick2file(String brick) throws IOException
IOException
public org.apache.hadoop.fs.BlockLocation[] getPathInfo(String filename, long start, long len) throws IOException
IOException
public long getBlockSize(String filename) throws IOException
IOException
public short getReplication(String filename) throws IOException
IOException
public TreeMap<Integer,GlusterFSBrickClass> quickIOPossible(String filename, long start, long len) throws IOException
IOException
public HashMap<String,ArrayList<String>> execGetFattr(String filename, HashMap<String,Integer> meta, GlusterFSXattr.CMD cmd) throws IOException
IOException
public int getReplicationFromLayout(HashMap<String,ArrayList<String>> vol, HashMap<String,Integer> meta) throws IOException
IOException
Copyright © 2014. All rights reserved.