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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postRotationAction
(RotationContext context) Method to run an action just after file has been rotated.void
preRotationAction
(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.
-