public class NfsCommitRequest extends NfsRequestBase
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
CHARSET| Constructor and Description |
|---|
NfsCommitRequest(byte[] fileHandle,
long offsetToCommit,
int dataSizeToCommit,
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 NfsCommitRequest(byte[] fileHandle,
long offsetToCommit,
int dataSizeToCommit,
Credential credential,
int nfsVersion)
throws java.io.FileNotFoundException
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
fileHandle - The file handle for the file to which data is to be flushed
(committed). This must identify a file system object of type,
NF3REG.offsetToCommit - The position within the file at which the flush is to begin.
An offset of 0 means to flush data starting at the beginning
of the file.dataSizeToCommit - The number of bytes of data to flush. If count is 0, a flush
from offset to the end of file is done.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