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
IOExceptionpublic String brick2file(String brick) throws IOException
IOExceptionpublic org.apache.hadoop.fs.BlockLocation[] getPathInfo(String filename, long start, long len) throws IOException
IOExceptionpublic long getBlockSize(String filename) throws IOException
IOExceptionpublic short getReplication(String filename) throws IOException
IOExceptionpublic TreeMap<Integer,GlusterFSBrickClass> quickIOPossible(String filename, long start, long len) throws IOException
IOExceptionpublic HashMap<String,ArrayList<String>> execGetFattr(String filename, HashMap<String,Integer> meta, GlusterFSXattr.CMD cmd) throws IOException
IOExceptionpublic int getReplicationFromLayout(HashMap<String,ArrayList<String>> vol, HashMap<String,Integer> meta) throws IOException
IOExceptionCopyright © 2014. All rights reserved.