Class Nfs3RenameRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.nfs.NfsRequestBase
com.emc.ecs.nfsclient.nfs.NfsRenameRequest
com.emc.ecs.nfsclient.nfs.nfs3.Nfs3RenameRequest
- All Implemented Interfaces:
NfsRequest
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
Procedure RENAME renames the file identified by name in the directory,
fileHandle, to toName in the directory, toFileHandle. The
operation is required to be atomic to the client. toFileHandle and fileHandle
must reside on the same file system and server.
-
Field Summary
Fields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionNfs3RenameRequest(byte[] fileHandle, String name, byte[] toFileHandle, String toName, Credential credential) Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Methods inherited from class NfsRenameRequest
marshalling, toStringMethods inherited from class NfsRequestBase
getErrorMessage, getFileHandle, getIpKey, startToStringMethods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileName
-
Constructor Details
-
Nfs3RenameRequest
public Nfs3RenameRequest(byte[] fileHandle, String name, byte[] toFileHandle, String toName, Credential credential) throws FileNotFoundException Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure RENAME renames the file identified by
namein the directory,fileHandle, totoNamein the directory,toFileHandle. The operation is required to be atomic to the client.toFileHandleandfileHandlemust reside on the same file system and server.- Parameters:
fileHandle- The file handle for the directory from which the entry is to be renamedname- The name of the entry that identifies the object to be renamedtoFileHandle- The file handle for the directory to which the object is to be renamed.toName- The new name for the object.credential- The credential used for RPC authentication.- Throws:
FileNotFoundException
-