Package org.forgerock.audit.rotation
Interface RotationHooks
- All Known Implementing Classes:
RotationHooks.NoOpRotatationHooks
public interface RotationHooks
Callback hooks to allow custom action to be taken before and after file rotation occurs.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidpostRotationAction(RotationContext context) Method to run an action just after file has been rotated.voidpreRotationAction(RotationContext context) Method to run an action just before file will be rotated.
-
Method Details
-
postRotationAction
Method to run an action just after file has been rotated.- Parameters:
context- The rotation context.- Throws:
IOException- If the post action fails.
-
preRotationAction
Method to run an action just before file will be rotated.- Parameters:
context- The rotation context.- Throws:
IOException- If the pre action fails.
-