public WRITE3Request(FileHandle handle, long offset, int count, Nfs3Constant.WriteStableHow stableHow, ByteBuffer data) : base(handle) { this.offset = offset; this.count = count; this.stableHow = stableHow; this.data = data; }
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; }
/// <exception cref="System.IO.IOException"/> public static Org.Apache.Hadoop.Nfs.Nfs3.Request.WRITE3Request Deserialize(XDR xdr ) { FileHandle handle = ReadHandle(xdr); long offset = xdr.ReadHyper(); int count = xdr.ReadInt(); Nfs3Constant.WriteStableHow stableHow = Nfs3Constant.WriteStableHow.FromValue(xdr .ReadInt()); ByteBuffer data = ByteBuffer.Wrap(xdr.ReadFixedOpaque(xdr.ReadInt())); return(new Org.Apache.Hadoop.Nfs.Nfs3.Request.WRITE3Request(handle, offset, count , stableHow, data)); }
internal WriteCtx(FileHandle handle, long offset, int count, int originalCount, Nfs3Constant.WriteStableHow stableHow, ByteBuffer data, Org.Jboss.Netty.Channel.Channel channel, int xid, bool replied, WriteCtx.DataState dataState) { this.handle = handle; this.offset = offset; this.count = count; this.originalCount = originalCount; this.stableHow = stableHow; this.data = data; this.channel = channel; this.xid = xid; this.replied = replied; this.dataState = dataState; raf = null; this.startTime = Runtime.NanoTime(); }
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)); }