|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Evolving public interface AuditLogger
Interface defining an audit logger.
| Method Summary | |
|---|---|
void |
initialize(org.apache.hadoop.conf.Configuration conf)
Called during initialization of the logger. |
void |
logAuditEvent(boolean succeeded,
String userName,
InetAddress addr,
String cmd,
String src,
String dst,
org.apache.hadoop.fs.FileStatus stat)
Called to log an audit event. |
| Method Detail |
|---|
void initialize(org.apache.hadoop.conf.Configuration conf)
conf - The configuration object.
void logAuditEvent(boolean succeeded,
String userName,
InetAddress addr,
String cmd,
String src,
String dst,
org.apache.hadoop.fs.FileStatus stat)
This method must return as quickly as possible, since it's called in a critical section of the NameNode's operation.
succeeded - Whether authorization succeeded.userName - Name of the user executing the request.addr - Remote address of the request.cmd - The requested command.src - Path of affected source file.dst - Path of affected destination file (if any).stat - File information for operations that change the file's
metadata (permissions, owner, times, etc).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||