public class NfsRenameRequest extends NfsRequestBase
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.
CHARSET| Constructor and Description |
|---|
NfsRenameRequest(byte[] fileHandle,
java.lang.String name,
byte[] toFileHandle,
java.lang.String toName,
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 NfsRenameRequest(byte[] fileHandle,
java.lang.String name,
byte[] toFileHandle,
java.lang.String toName,
Credential credential,
int nfsVersion)
throws java.io.FileNotFoundException
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.
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.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