public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { dsa_sessionid = new sessionid4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { bctsr_sessid = new sessionid4(xdr); bctsr_dir = xdr.xdrDecodeInt(); bctsr_use_conn_in_rdma_mode = xdr.xdrDecodeBoolean(); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { bctsa_sessid = new sessionid4(xdr); bctsa_dir = xdr.xdrDecodeInt(); bctsa_use_conn_in_rdma_mode = xdr.xdrDecodeBoolean(); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { rcl_sessionid = new sessionid4(xdr); { int $size = xdr.xdrDecodeInt(); rcl_referring_calls = new referring_call4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { rcl_referring_calls[$idx] = new referring_call4(xdr); } } }
@Test public void testEqualsFalse() { byte[] id1 = "bla".getBytes(); byte[] id2 = "blabla".getBytes(); sessionid4 session1 = new sessionid4(id1); sessionid4 session2 = new sessionid4(id2); assertFalse("not equal sessions not recognized", session1.equals(session2)); }
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); }
/** * Create new session identifier for a given {@code client}. * * we create session identifier as: * |0 - 7| : client id * |8 - 11| : reserved * |12 -15| : sequence id * * @param client nfs client for which new session id is generated. * @param sequence the count of already generated sessions for given client. * @return new session id. */ public sessionid4 createSessionId(NFS4Client client, int sequence) { byte[] id = new byte[nfs4_prot.NFS4_SESSIONID_SIZE]; Bytes.putLong(id, 0, client.getId().value); Bytes.putInt(id, 12, sequence); return new sessionid4(id); }
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 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 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); }
@Test(expected = BadSessionException.class) public void testGetClientByBadSession() throws Exception { sessionid4 sesssion = new sessionid4(new byte[12]); _stateHandler.getClient(sesssion); }
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); } } }
@Test public void testEqualsTrue() { byte[] id = "bla".getBytes(); sessionid4 session1 = new sessionid4(id); sessionid4 session2 = new sessionid4(id); assertTrue("equlas sessions not recognized", session1.equals(session2)); assertTrue("equlas sessions sould have the same hashCode", session1.hashCode() == session2.hashCode()); }
res.sr_resok4.sr_slotid = new slotid4(_args.opsequence.sa_slotid.value); res.sr_resok4.sr_target_highest_slotid = new slotid4(session.getHighestSlot()); res.sr_resok4.sr_sessionid = new sessionid4(_args.opsequence.sa_sessionid.value);