org.apache.hadoop.nfs.nfs3
Class Nfs3FileAttributes
java.lang.Object
org.apache.hadoop.nfs.nfs3.Nfs3FileAttributes
public class Nfs3FileAttributes
- extends Object
File attrbutes reported in NFS.
Nfs3FileAttributes
public Nfs3FileAttributes()
Nfs3FileAttributes
public Nfs3FileAttributes(boolean isDir,
int nlink,
short mode,
int uid,
int gid,
long size,
long fsid,
long fileid,
long mtime,
long atime)
Nfs3FileAttributes
public Nfs3FileAttributes(Nfs3FileAttributes other)
serialize
public void serialize(XDR xdr)
deserialize
public static Nfs3FileAttributes deserialize(XDR xdr)
toString
public String toString()
- Overrides:
toString
in class Object
getNlink
public int getNlink()
getUsed
public long getUsed()
getFsid
public long getFsid()
getFileid
public long getFileid()
getAtime
public NfsTime getAtime()
getMtime
public NfsTime getMtime()
getCtime
public NfsTime getCtime()
getType
public int getType()
getWccAttr
public WccAttr getWccAttr()
getFileId
public long getFileId()
getSize
public long getSize()
setSize
public void setSize(long size)
setUsed
public void setUsed(long used)
getMode
public int getMode()
getUid
public int getUid()
getGid
public int getGid()
getDirSize
public static long getDirSize(int childNum)
- HDFS directory size is always zero. Try to return something meaningful
here. Assume each child take 32bytes.
Copyright © 2009 The Apache Software Foundation