Class Nfs3SetAttrRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.nfs.NfsRequestBase
com.emc.ecs.nfsclient.nfs.NfsSetAttrRequest
com.emc.ecs.nfsclient.nfs.nfs3.Nfs3SetAttrRequest
- All Implemented Interfaces:
NfsRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
-
Field Summary
Fields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionNfs3SetAttrRequest(byte[] fileHandle, NfsSetAttributes attributes, NfsTime guardTime, Credential credential) Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Methods inherited from class NfsSetAttrRequest
marshalling, toStringMethods inherited from class NfsRequestBase
getErrorMessage, getFileHandle, getIpKey, startToStringMethods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileName
-
Constructor Details
-
Nfs3SetAttrRequest
public Nfs3SetAttrRequest(byte[] fileHandle, NfsSetAttributes attributes, NfsTime guardTime, Credential credential) throws FileNotFoundException Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure SETATTR changes one or more of the attributes of a file system object on the server.
- Parameters:
fileHandle- The file handle for the object.attributes- The attributes to set.guardTime- IfguardTimeis not null, the server must compare the value ofguardTimeto 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.- Throws:
FileNotFoundException
-