public CompoundBuilder withLookupp() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_LOOKUPP; ops.add(op); return this; }
public nfs_argop4(XdrDecodingStream xdr) throws OncRpcException, IOException { xdrDecode(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { tag.xdrEncode(xdr); minorversion.xdrEncode(xdr); { int $size = argarray.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { argarray[$idx].xdrEncode(xdr); } } }
public CompoundBuilder withRestorefh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_RESTOREFH; ops.add(op); return this; }
public CompoundBuilder withGetfh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_GETFH; ops.add(op); return this; }
public CompoundBuilder withPutrootfh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_PUTROOTFH; ops.add(op); return this; }
public CompoundBuilder withSavefh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_SAVEFH; ops.add(op); return this; }
public CompoundBuilder withPutfh(nfs_fh4 fh) { nfs_argop4 op = new nfs_argop4(); op.opputfh = new PUTFH4args(); op.opputfh.object = fh; op.argop = nfs_opnum4.OP_PUTFH; ops.add(op); return this; }
public CompoundBuilder withDestroysession(sessionid4 sessionid) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_DESTROY_SESSION; op.opdestroy_session = new DESTROY_SESSION4args(); op.opdestroy_session.dsa_sessionid = sessionid; ops.add(op); return this; }
public CompoundBuilder withReclaimCompleteOneFs() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_RECLAIM_COMPLETE; op.opreclaim_complete = new RECLAIM_COMPLETE4args(); op.opreclaim_complete.rca_one_fs = true; ops.add(op); return this; }
public CompoundBuilder withReclaimComplete() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_RECLAIM_COMPLETE; op.opreclaim_complete = new RECLAIM_COMPLETE4args(); op.opreclaim_complete.rca_one_fs = false; ops.add(op); return this; }
public CompoundBuilder withDestroyclientid(clientid4 clientid) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_DESTROY_CLIENTID; op.opdestroy_clientid = new DESTROY_CLIENTID4args(); op.opdestroy_clientid.dca_clientid = clientid; ops.add(op); return this; }
public CompoundBuilder withRemove(String path) { REMOVE4args args = new REMOVE4args(); args.target = new component4(path); nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_REMOVE; op.opremove = args; ops.add(op); return this; }
public CompoundBuilder withClose(stateid4 stateid, int seq) { CLOSE4args args = new CLOSE4args(); args.seqid = new seqid4(seq); args.open_stateid = stateid; nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_CLOSE; op.opclose = args; ops.add(op); return this; }
public CompoundBuilder withGetattr(int... attrs) { nfs_argop4 op = new nfs_argop4(); GETATTR4args args = new GETATTR4args(); args.attr_request = bitmap4.of(attrs); op.argop = nfs_opnum4.OP_GETATTR; op.opgetattr = args; ops.add(op); return this; }
public CompoundBuilder withWrite(long offset, ByteBuffer data, stateid4 stateid) { WRITE4args args = new WRITE4args(); args.stable = stable_how4.FILE_SYNC4; args.offset = new offset4(offset); args.stateid = stateid; args.data = data; nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_WRITE; op.opwrite = args; ops.add(op); return this; }
public CompoundBuilder withLookup(String path) { final Splitter splitter = Splitter.on('/').omitEmptyStrings(); for (String s : splitter.split(path)) { if( "..".equals(s)) { withLookupp(); continue; } nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_LOOKUP; op.oplookup = new LOOKUP4args(); op.oplookup.objname = new component4(s); ops.add(op); } return this; }
public CompoundBuilder withRead(int count, long offset, stateid4 stateid) { READ4args args = new READ4args(); args.count = new count4(count); args.offset = new offset4(offset); args.stateid = stateid; nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_READ; op.opread = args; ops.add(op); return this; }
public CompoundBuilder withGetdeviceinfo(deviceid4 devId) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_GETDEVICEINFO; op.opgetdeviceinfo = new GETDEVICEINFO4args(); op.opgetdeviceinfo.gdia_device_id = devId; op.opgetdeviceinfo.gdia_layout_type = layouttype4.LAYOUT4_NFSV4_1_FILES.getValue(); op.opgetdeviceinfo.gdia_maxcount = new count4(1024); op.opgetdeviceinfo.gdia_notify_types = new bitmap4(); op.opgetdeviceinfo.gdia_notify_types.value = new int[] {1}; ops.add(op); return this; }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { tag = new utf8str_cs(xdr); minorversion = new uint32_t(xdr); { int $size = xdr.xdrDecodeInt(); argarray = new nfs_argop4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { argarray[$idx] = new nfs_argop4(xdr); } } }