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 Modifier and Type Interface Description static class
RotationHooks.NoOpRotatationHooks
RotationHooks
that do nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
postRotationAction
void postRotationAction(RotationContext context) throws IOException
Method to run an action just after file has been rotated.- Parameters:
context
- The rotation context.- Throws:
IOException
- If the post action fails.
-
preRotationAction
void preRotationAction(RotationContext context) throws IOException
Method to run an action just before file will be rotated.- Parameters:
context
- The rotation context.- Throws:
IOException
- If the pre action fails.
-
-