Package org.gridgain.internal.mcp.audit
Class AuditConfiguration
java.lang.Object
org.gridgain.internal.mcp.audit.AuditConfiguration
Configuration for MCP audit logging.
Loads settings from environment variables with defaults:
- AUDIT_ENABLED (default: true)
- AUDIT_LOG_PATH (default: /var/log/mcp/audit.log)
- AUDIT_MAX_FILE_SIZE_MB (default: 100)
- AUDIT_RETENTION_DAYS (default: 90)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs audit configuration from environment variables. -
Method Summary
Modifier and TypeMethodDescriptionReturns the path to the audit log file.intReturns the maximum file size in MB before rotation.intReturns the number of days to retain audit logs.booleanReturns whether audit logging is enabled.toString()
-
Constructor Details
-
AuditConfiguration
public AuditConfiguration()Constructs audit configuration from environment variables.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether audit logging is enabled.- Returns:
- true if audit logging is enabled
-
getLogPath
Returns the path to the audit log file.- Returns:
- audit log file path
-
getMaxFileSizeMb
public int getMaxFileSizeMb()Returns the maximum file size in MB before rotation.- Returns:
- max file size in MB
-
getRetentionDays
public int getRetentionDays()Returns the number of days to retain audit logs.- Returns:
- retention period in days
-
toString
-