public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { nt_timechanged = xdr.xdrDecodeBoolean(); if ( nt_timechanged ) { nt_time = new nfstime4(xdr); } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { set_it = xdr.xdrDecodeInt(); switch ( set_it ) { case time_how4.SET_TO_CLIENT_TIME4: time = new nfstime4(xdr); break; default: break; } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { nii_domain = new utf8str_cis(xdr); nii_name = new utf8str_cs(xdr); nii_date = new nfstime4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { rg_duration = new uint64_t(xdr); { int $size = xdr.xdrDecodeInt(); rg_begin_time = new nfstime4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { rg_begin_time[$idx] = new nfstime4(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ffil_ops_requested = new uint64_t(xdr); ffil_bytes_requested = new uint64_t(xdr); ffil_ops_completed = new uint64_t(xdr); ffil_bytes_completed = new uint64_t(xdr); ffil_bytes_not_delivered = new uint64_t(xdr); ffil_total_busy_time = new nfstime4(xdr); ffil_aggregate_completion_time = new nfstime4(xdr); }
@Test(expected = InvalException.class) public void testInvalidNseconds() throws Exception { nfstime4 time = new nfstime4(); time.seconds = 1; time.nseconds = 1000000000; time.toMillis(); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ffl_addr = new netaddr4(xdr); ffl_fhandle = new nfs_fh4(xdr); ffl_read = new ff_io_latency4(xdr); ffl_write = new ff_io_latency4(xdr); ffl_duration = new nfstime4(xdr); ffl_local = xdr.xdrDecodeBoolean(); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { fss_absent = xdr.xdrDecodeBoolean(); fss_type = xdr.xdrDecodeInt(); fss_source = new utf8str_cs(xdr); fss_current = new utf8str_cs(xdr); fss_age = new int32_t(xdr); fss_version = new nfstime4(xdr); }
/** * openjdk-1.8 + maven fail to compile. Suppress warning until * a working alternative is found. */ @SuppressWarnings("deprecation") @Test public void testValidTime() throws Exception { nfstime4 time = new nfstime4(); time.seconds = 1; time.nseconds = (int)TimeUnit.MILLISECONDS.toNanos(5); long date = LocalDateTime.of(1970, 1, 1, 0, 0, 1, 0).toInstant(ZoneOffset.UTC).toEpochMilli(); assertEquals("invalid date", date + 5, time.toMillis()); }
public CompoundBuilder withExchangeId(String nii_domain, String nii_name, String co_ownerid, int flags, int how) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_EXCHANGE_ID; op.opexchange_id = new EXCHANGE_ID4args(); op.opexchange_id.eia_client_impl_id = new nfs_impl_id4[1]; nfs_impl_id4 n4 = new nfs_impl_id4(); n4.nii_domain = new utf8str_cis(nii_domain); n4.nii_name = new utf8str_cs(nii_name); op.opexchange_id.eia_client_impl_id[0] = n4; nfstime4 releaseDate = new nfstime4(System.currentTimeMillis()); op.opexchange_id.eia_client_impl_id[0].nii_date = releaseDate; op.opexchange_id.eia_clientowner = new client_owner4(); op.opexchange_id.eia_clientowner.co_ownerid = co_ownerid.getBytes(StandardCharsets.UTF_8); op.opexchange_id.eia_clientowner.co_verifier = new verifier4(); op.opexchange_id.eia_clientowner.co_verifier.value = new byte[nfs4_prot.NFS4_VERIFIER_SIZE]; Bytes.putLong(op.opexchange_id.eia_clientowner.co_verifier.value, 0, releaseDate.seconds); op.opexchange_id.eia_flags = new uint32_t(flags); op.opexchange_id.eia_state_protect = new state_protect4_a(); op.opexchange_id.eia_state_protect.spa_how = how; ops.add(op); return this; }
case nfs4_prot.FATTR4_TIME_DELTA: return Optional.of(new fattr4_time_delta( new nfstime4(TimeUnit.SECONDS.toMillis(1)))); case nfs4_prot.FATTR4_TIME_METADATA: fattr4_time_metadata mdtime = new fattr4_time_metadata(stat.getCTime());
res.eir_resok4.eir_server_impl_id[0].nii_domain = new utf8str_cis(NFS4_IMPLEMENTATION_DOMAIN); res.eir_resok4.eir_server_impl_id[0].nii_name = new utf8str_cs(NFS4_IMPLEMENTATION_ID); res.eir_resok4.eir_server_impl_id[0].nii_date = new nfstime4(COMPILE_TIME);
nfstime4 ctime = new nfstime4(); ctime.xdrDecode(xdr); stat.setCTime(ctime.toMillis());