@NotThreadSafe public final class FileSystemMasterAuditContext extends Object implements AuditContext
Modifier and Type | Method and Description |
---|---|
void |
close() |
FileSystemMasterAuditContext |
setAllowed(boolean allowed)
Set to true if the operation associated with this
AuditContext is allowed, false
otherwise. |
FileSystemMasterAuditContext |
setAuthType(AuthType authType)
Sets mAuthType field.
|
FileSystemMasterAuditContext |
setClientVersion(String version)
set client version.
|
FileSystemMasterAuditContext |
setCommand(String command)
Sets mCommand field.
|
FileSystemMasterAuditContext |
setCreationTimeNs(long creationTimeNs)
Sets mCreationTimeNs field.
|
FileSystemMasterAuditContext |
setDstPath(AlluxioURI dstPath)
Sets mDstPath field.
|
FileSystemMasterAuditContext |
setIp(String ip)
Sets mIp field.
|
FileSystemMasterAuditContext |
setSrcInode(Inode srcInode)
Sets mSrcInode field.
|
FileSystemMasterAuditContext |
setSrcPath(AlluxioURI srcPath)
Sets mSrcPath field.
|
FileSystemMasterAuditContext |
setSucceeded(boolean succeeded)
Set to true if the operration associated with this
AuditContext is allowed and
succeeds. |
FileSystemMasterAuditContext |
setUgi(String ugi)
Sets mUgi field.
|
String |
toString() |
public FileSystemMasterAuditContext setAllowed(boolean allowed)
AuditContext
AuditContext
is allowed, false
otherwise.setAllowed
in interface AuditContext
allowed
- true if operation is allowed, false otherwiseAuditContext
instance itselfpublic FileSystemMasterAuditContext setSucceeded(boolean succeeded)
AuditContext
AuditContext
is allowed and
succeeds.setSucceeded
in interface AuditContext
succeeded
- true if the operation has succeeded, false otherwiseAuditContext
instance itselfpublic FileSystemMasterAuditContext setCommand(String command)
command
- the command associated with this Master
AuditContext
instancepublic FileSystemMasterAuditContext setSrcPath(AlluxioURI srcPath)
srcPath
- the source path of the commandAuditContext
instancepublic FileSystemMasterAuditContext setDstPath(AlluxioURI dstPath)
dstPath
- the destination path of the commandAuditContext
instancepublic FileSystemMasterAuditContext setUgi(String ugi)
ugi
- the client user name of the authenticated client user of this threadAuditContext
instancepublic FileSystemMasterAuditContext setAuthType(AuthType authType)
authType
- the authentication typeAuditContext
instancepublic FileSystemMasterAuditContext setIp(String ip)
ip
- the IP of the clientAuditContext
instancepublic FileSystemMasterAuditContext setSrcInode(Inode srcInode)
srcInode
- the source inode of this operationAuditContext
instancepublic FileSystemMasterAuditContext setCreationTimeNs(long creationTimeNs)
creationTimeNs
- the System.nanoTime() when this operation create,
it only can be used to compute operation mExecutionTimeAuditContext
instancepublic FileSystemMasterAuditContext setClientVersion(String version)
version
- client versionAuditContext
instancepublic void close()
close
in interface AuditContext
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.