public CREATE3Response(int status, FileHandle handle, Nfs3FileAttributes postOpObjAttr , WccData dirWcc) : base(status) { this.objHandle = handle; this.postOpObjAttr = postOpObjAttr; this.dirWcc = dirWcc; }
public MKDIR3Response(int status, FileHandle handle, Nfs3FileAttributes attr, WccData dirWcc) : base(status) { this.objFileHandle = handle; this.objAttr = attr; this.dirWcc = dirWcc; }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.REMOVE3Response Deserialize(XDR xdr) { int status = xdr.ReadInt(); WccData dirWcc = WccData.Deserialize(xdr); return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.REMOVE3Response(status, dirWcc)); }
public MKNOD3Response(int status, FileHandle handle, Nfs3FileAttributes attrs, WccData dirWcc) : base(status) { this.objFileHandle = handle; this.objPostOpAttr = attrs; this.dirWcc = dirWcc; }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.SETATTR3Response Deserialize(XDR xdr) { int status = xdr.ReadInt(); WccData wccData = WccData.Deserialize(xdr); return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.SETATTR3Response(status, wccData)); }
public override XDR Serialize(XDR @out, int xid, Verifier verifier) { base.Serialize(@out, xid, verifier); if (dirWcc == null) { dirWcc = new WccData(null, null); } dirWcc.Serialize(@out); return(@out); }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.LINK3Response Deserialize(XDR xdr ) { int status = xdr.ReadInt(); WccData fromDirWcc = WccData.Deserialize(xdr); WccData linkDirWcc = WccData.Deserialize(xdr); return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.LINK3Response(status, fromDirWcc, linkDirWcc)); }
public WRITE3Response(int status, WccData fileWcc, int count, Nfs3Constant.WriteStableHow stableHow, long verifier) : base(status) { // return on both success and failure this.fileWcc = fileWcc; this.count = count; this.stableHow = stableHow; this.verifer = verifier; }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.COMMIT3Response Deserialize(XDR xdr) { int status = xdr.ReadInt(); long verf = 0; WccData fileWcc = WccData.Deserialize(xdr); if (status == Nfs3Status.Nfs3Ok) { verf = xdr.ReadHyper(); } return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.COMMIT3Response(status, fileWcc, verf )); }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.MKDIR3Response Deserialize(XDR xdr) { int status = xdr.ReadInt(); FileHandle objFileHandle = new FileHandle(); Nfs3FileAttributes objAttr = null; WccData dirWcc; if (status == Nfs3Status.Nfs3Ok) { xdr.ReadBoolean(); objFileHandle.Deserialize(xdr); xdr.ReadBoolean(); objAttr = Nfs3FileAttributes.Deserialize(xdr); } dirWcc = WccData.Deserialize(xdr); return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.MKDIR3Response(status, objFileHandle , objAttr, dirWcc)); }
public override XDR Serialize(XDR @out, int xid, Verifier verifier) { base.Serialize(@out, xid, verifier); if (GetStatus() == Nfs3Status.Nfs3Ok) { @out.WriteBoolean(true); // Handle follows objHandle.Serialize(@out); @out.WriteBoolean(true); // Attributes follow postOpObjAttr.Serialize(@out); } if (dirWcc == null) { dirWcc = new WccData(null, null); } dirWcc.Serialize(@out); return(@out); }
public static Org.Apache.Hadoop.Nfs.Nfs3.Response.WRITE3Response Deserialize(XDR xdr) { int status = xdr.ReadInt(); WccData fileWcc = WccData.Deserialize(xdr); int count = 0; Nfs3Constant.WriteStableHow stableHow = null; long verifier = 0; if (status == Nfs3Status.Nfs3Ok) { count = xdr.ReadInt(); int how = xdr.ReadInt(); stableHow = Nfs3Constant.WriteStableHow.Values()[how]; verifier = xdr.ReadHyper(); } return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.WRITE3Response(status, fileWcc, count , stableHow, verifier)); }
public REMOVE3Response(int status, WccData dirWcc) : base(status) { this.dirWcc = dirWcc; }
public LINK3Response(int status, WccData fromDirWcc, WccData linkDirWcc) : base(status) { this.fromDirWcc = fromDirWcc; this.linkDirWcc = linkDirWcc; }
public RENAME3Response(int status, WccData fromWccData, WccData toWccData) : base(status) { this.fromDirWcc = fromWccData; this.toDirWcc = toWccData; }
public SETATTR3Response(int status, WccData wccData) : base(status) { this.wccData = wccData; }
public COMMIT3Response(int status, WccData fileWcc, long verf) : base(status) { this.fileWcc = fileWcc; this.verf = verf; }
public RMDIR3Response(int status, WccData wccData) : base(status) { this.dirWcc = wccData; }