Package com.helger.photon.audit
Interface IAuditManager
-
- All Known Implementing Classes:
AuditManager,DoNothingAuditManager
public interface IAuditManagerInterface for a manager that can handle audit items.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAuditorgetAuditor()StringgetBaseDir()LocalDategetEarliestAuditDate()List<IAuditItem>getLastAuditItems(int nMaxItems)booleanisInMemory()voidstop()Stop taking new audits.
-
-
-
Method Detail
-
isInMemory
boolean isInMemory()
- Returns:
trueif this manager operates only in memory,falseif it keeps persistent files.- See Also:
getBaseDir()
-
getBaseDir
@Nullable String getBaseDir()
- Returns:
- The base directory used for audit entries. May be
nullto indicate in-memory only auditing. If the results is notnullit must end with a path separator (slash). - See Also:
isInMemory()
-
getLastAuditItems
@Nonnull @ReturnsMutableCopy @CodingStyleguideUnaware List<IAuditItem> getLastAuditItems(@Nonnegative int nMaxItems)
- Parameters:
nMaxItems- The maximum number of items. Must be > 0.- Returns:
- The n latest audit items. Never
null.
-
stop
void stop()
Stop taking new audits. Call this upon shutdown for correct cleanup! Consecutive calls to this method have no further effect.
-
-