public class NfsTime extends java.lang.Object implements NfsRequest, NfsResponse
| Modifier and Type | Field and Description |
|---|---|
static NfsTime |
DO_NOT_CHANGE
This constant is the NfsTime passed to setters to indicate that the time
should not be changed.
|
static NfsTime |
SET_TO_CURRENT_ON_SERVER
This constant is the NfsTime passed to setters to indicate that the time
should be reset to the current server time.
|
| Constructor and Description |
|---|
NfsTime()
Create a new NfsTime for the current time.
|
NfsTime(long milliseconds)
Create a new NfsTime for the time corresponding to milliseconds.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeInMillis() |
void |
marshalling(Xdr xdr)
Transfer data to an Xdr object for RPC use.
|
java.lang.String |
toString() |
void |
unmarshalling(Xdr xdr)
Transfer data from an Xdr object after RPC use.
|
public static final NfsTime DO_NOT_CHANGE
public static final NfsTime SET_TO_CURRENT_ON_SERVER
public NfsTime()
public NfsTime(long milliseconds)
milliseconds - same as for java.util.Date.public java.lang.String toString()
toString in class java.lang.Objectpublic void marshalling(Xdr xdr)
NfsRequestmarshalling in interface NfsRequestxdr - the Xdr to be sent.public void unmarshalling(Xdr xdr)
NfsResponseunmarshalling in interface NfsResponsexdr - the returned Xdr.public long getTimeInMillis()