public CompoundBuilder withGetfh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_GETFH; ops.add(op); return this; }
public CompoundBuilder withLookupp() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_LOOKUPP; ops.add(op); return this; }
public CompoundBuilder withRestorefh() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_RESTOREFH; 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 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 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); } } }
public CompoundBuilder withGetdevicelist() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_GETDEVICELIST; op.opgetdevicelist = new GETDEVICELIST4args(); op.opgetdevicelist.gdla_cookie = new nfs_cookie4(0); op.opgetdevicelist.gdla_cookieverf = new verifier4(); op.opgetdevicelist.gdla_cookieverf.value = new byte[nfs4_prot.NFS4_VERIFIER_SIZE]; op.opgetdevicelist.gdla_layout_type = layouttype4.LAYOUT4_NFSV4_1_FILES.getValue(); op.opgetdevicelist.gdla_maxdevices = new count4(256); ops.add(op); return this; }
public static nfs_argop4 generateRequest(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(0xffffff); op.opgetdeviceinfo.gdia_notify_types = new bitmap4( new int[] {0}); return op; } }
public CompoundBuilder withReaddir(long cookie, verifier4 verifier, int dirCount, int maxcount, int... attrs) { nfs_argop4 op = new nfs_argop4(); op.opreaddir = new READDIR4args(); op.opreaddir.cookie = new nfs_cookie4(cookie); op.opreaddir.dircount = new count4(dirCount); op.opreaddir.maxcount = new count4(maxcount); op.opreaddir.attr_request = attrs.length == 0 ? new bitmap4() : bitmap4.of(attrs); op.opreaddir.cookieverf = verifier; op.argop = nfs_opnum4.OP_READDIR; ops.add(op); return this; }
public static nfs_argop4 normal() { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_GETDEVICELIST; op.opgetdevicelist = new GETDEVICELIST4args(); op.opgetdevicelist.gdla_cookie = new nfs_cookie4(0); op.opgetdevicelist.gdla_cookieverf = new verifier4(); op.opgetdevicelist.gdla_cookieverf.value = new byte[nfs4_prot.NFS4_VERIFIER_SIZE]; op.opgetdevicelist.gdla_layout_type = layouttype4.LAYOUT4_NFSV4_1_FILES.getValue(); op.opgetdevicelist.gdla_maxdevices = new count4(256); return op; }