public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
@Override public String toString() { return toString(ISO_OFFSET_DATE_TIME); } }
public nfstime4(XdrDecodingStream xdr) throws OncRpcException, IOException { xdrDecode(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { value.xdrEncode(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 void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { value.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { value.xdrEncode(xdr); }
@Override public String toString() { return set_it == time_how4.SET_TO_CLIENT_TIME4 ? time.toString() : "SET_TO_SERVER_TIME"; } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { value.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { value.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfstime4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(set_it); switch ( set_it ) { case time_how4.SET_TO_CLIENT_TIME4: time.xdrEncode(xdr); break; default: break; } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { nt_timechanged = xdr.xdrDecodeBoolean(); if ( nt_timechanged ) { nt_time = new nfstime4(xdr); } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeBoolean(nt_timechanged); if ( nt_timechanged ) { nt_time.xdrEncode(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; } }