public class NfsSetAttrRequest extends NfsRequestBase
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
CHARSET| Constructor and Description |
|---|
NfsSetAttrRequest(byte[] fileHandle,
NfsSetAttributes attributes,
NfsTime guardTime,
Credential credential,
int nfsVersion)
Creates the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshalling(Xdr xdr)
Transfer data to an Xdr object for RPC use.
|
java.lang.String |
toString() |
getErrorMessage, getFileHandle, getIpKey, startToStringcloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileNamepublic NfsSetAttrRequest(byte[] fileHandle,
NfsSetAttributes attributes,
NfsTime guardTime,
Credential credential,
int nfsVersion)
throws java.io.FileNotFoundException
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
fileHandle - The file handle for the object.attributes - The attributes to set.guardTime - If guardTime is not null, the server must compare
the value of guardTime to the current ctime of
the object. If the values are different, the server must
preserve the object attributes and must return a status of
NFS3ERR_NOT_SYNC.credential - The credential used for RPC authentication.nfsVersion - The NFS version numberjava.io.FileNotFoundExceptionpublic void marshalling(Xdr xdr)
NfsRequestmarshalling in interface NfsRequestmarshalling in class NfsRequestBasexdr - the Xdr to be sent.public java.lang.String toString()
toString in class java.lang.Object