public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { rc_sequenceid = new sequenceid4(xdr); rc_slotid = new slotid4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { rc_sequenceid.xdrEncode(xdr); rc_slotid.xdrEncode(xdr); }
public CompoundBuilder withSequence(boolean CacheThis, sessionid4 sessionid, int sequence, int slotid, int highSlotid) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_SEQUENCE; op.opsequence = new SEQUENCE4args(); op.opsequence.sa_cachethis = CacheThis; slotid4 sId = new slotid4(slotid); op.opsequence.sa_slotid = sId; slotid4 HsId = new slotid4(highSlotid); op.opsequence.sa_highest_slotid = HsId; op.opsequence.sa_sequenceid = new sequenceid4(++sequence); op.opsequence.sa_sessionid = sessionid; ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { csr_sessionid.xdrEncode(xdr); csr_sequence.xdrEncode(xdr); csr_flags.xdrEncode(xdr); csr_fore_chan_attrs.xdrEncode(xdr); csr_back_chan_attrs.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { csr_sessionid = new sessionid4(xdr); csr_sequenceid = new sequenceid4(xdr); csr_slotid = new slotid4(xdr); csr_highest_slotid = new slotid4(xdr); csr_target_highest_slotid = new slotid4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { csr_sessionid.xdrEncode(xdr); csr_sequenceid.xdrEncode(xdr); csr_slotid.xdrEncode(xdr); csr_highest_slotid.xdrEncode(xdr); csr_target_highest_slotid.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { sa_sessionid = new sessionid4(xdr); sa_sequenceid = new sequenceid4(xdr); sa_slotid = new slotid4(xdr); sa_highest_slotid = new slotid4(xdr); sa_cachethis = xdr.xdrDecodeBoolean(); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { sa_sessionid.xdrEncode(xdr); sa_sequenceid.xdrEncode(xdr); sa_slotid.xdrEncode(xdr); sa_highest_slotid.xdrEncode(xdr); xdr.xdrEncodeBoolean(sa_cachethis); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { csr_sessionid = new sessionid4(xdr); csr_sequence = new sequenceid4(xdr); csr_flags = new uint32_t(xdr); csr_fore_chan_attrs = new channel_attrs4(xdr); csr_back_chan_attrs = new channel_attrs4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { sr_sessionid.xdrEncode(xdr); sr_sequenceid.xdrEncode(xdr); sr_slotid.xdrEncode(xdr); sr_highest_slotid.xdrEncode(xdr); sr_target_highest_slotid.xdrEncode(xdr); sr_status_flags.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { sr_sessionid = new sessionid4(xdr); sr_sequenceid = new sequenceid4(xdr); sr_slotid = new slotid4(xdr); sr_highest_slotid = new slotid4(xdr); sr_target_highest_slotid = new slotid4(xdr); sr_status_flags = new uint32_t(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { csa_sessionid.xdrEncode(xdr); csa_sequenceid.xdrEncode(xdr); csa_slotid.xdrEncode(xdr); csa_highest_slotid.xdrEncode(xdr); xdr.xdrEncodeBoolean(csa_cachethis); { int $size = csa_referring_call_lists.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { csa_referring_call_lists[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { csa_sessionid = new sessionid4(xdr); csa_sequenceid = new sequenceid4(xdr); csa_slotid = new slotid4(xdr); csa_highest_slotid = new slotid4(xdr); csa_cachethis = xdr.xdrDecodeBoolean(); { int $size = xdr.xdrDecodeInt(); csa_referring_call_lists = new referring_call_list4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { csa_referring_call_lists[$idx] = new referring_call_list4(xdr); } } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { csa_clientid.xdrEncode(xdr); csa_sequence.xdrEncode(xdr); csa_flags.xdrEncode(xdr); csa_fore_chan_attrs.xdrEncode(xdr); csa_back_chan_attrs.xdrEncode(xdr); csa_cb_program.xdrEncode(xdr); { int $size = csa_sec_parms.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { csa_sec_parms[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { csa_clientid = new clientid4(xdr); csa_sequence = new sequenceid4(xdr); csa_flags = new uint32_t(xdr); csa_fore_chan_attrs = new channel_attrs4(xdr); csa_back_chan_attrs = new channel_attrs4(xdr); csa_cb_program = new uint32_t(xdr); { int $size = xdr.xdrDecodeInt(); csa_sec_parms = new callback_sec_parms4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { csa_sec_parms[$idx] = new callback_sec_parms4(xdr); } } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { eir_clientid.xdrEncode(xdr); eir_sequenceid.xdrEncode(xdr); eir_flags.xdrEncode(xdr); eir_state_protect.xdrEncode(xdr); eir_server_owner.xdrEncode(xdr); xdr.xdrEncodeDynamicOpaque(eir_server_scope); { int $size = eir_server_impl_id.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { eir_server_impl_id[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { eir_clientid = new clientid4(xdr); eir_sequenceid = new sequenceid4(xdr); eir_flags = new uint32_t(xdr); eir_state_protect = new state_protect4_r(xdr); eir_server_owner = new server_owner4(xdr); eir_server_scope = xdr.xdrDecodeDynamicOpaque(); { int $size = xdr.xdrDecodeInt(); eir_server_impl_id = new nfs_impl_id4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { eir_server_impl_id[$idx] = new nfs_impl_id4(xdr); } } }
private XdrAble generateCompound(String tag, nfs_cb_argop4...cbOperations) { _sequenceid++; CB_SEQUENCE4args cbSequence = new CB_SEQUENCE4args(); cbSequence.csa_cachethis = false; cbSequence.csa_highest_slotid = new slotid4(_highestSlotId); cbSequence.csa_sequenceid = new sequenceid4(_sequenceid); cbSequence.csa_slotid = new slotid4(0); cbSequence.csa_sessionid = _session; cbSequence.csa_referring_call_lists = new referring_call_list4[0]; CB_COMPOUND4args cbCompound = new CB_COMPOUND4args(); cbCompound.argarray = new nfs_cb_argop4[cbOperations.length + 1]; cbCompound.argarray[0] = new nfs_cb_argop4(); cbCompound.argarray[0].argop = nfs_cb_opnum4.OP_CB_SEQUENCE; cbCompound.argarray[0].opcbsequence = cbSequence; System.arraycopy(cbOperations, 0, cbCompound.argarray, 1, cbOperations.length); cbCompound.minorversion = new uint32_t(1); cbCompound.callback_ident = new uint32_t(0); cbCompound.tag = new utf8str_cs(tag); return cbCompound; }
res.eir_resok4.eir_sequenceid = new sequenceid4(client.currentSeqID()); res.eir_resok4.eir_flags = new uint32_t(exchangeIdFlags);
@Test public void testCreateSessionNoClient() throws Exception { CompoundContext context; nfs_resop4 result; nfs_argop4 cretaesession_args = new CompoundBuilder() .withCreatesession(new clientid4(0), new sequenceid4(0)) .build().argarray[0]; OperationCREATE_SESSION CREATE_SESSION = new OperationCREATE_SESSION(cretaesession_args); result = nfs_resop4.resopFor(nfs_opnum4.OP_CREATE_SESSION); context = new CompoundContextBuilder() .withStateHandler(stateHandler) .withCall(generateRpcCall()) .build(); AssertNFS.assertNFS(CREATE_SESSION, context, result, nfsstat.NFSERR_STALE_CLIENTID); }