Package org.forgerock.audit.rotation
Interface RotationHooks
-
- All Known Implementing Classes:
RotationHooks.NoOpRotatationHooks
public interface RotationHooksCallback 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 classRotationHooks.NoOpRotatationHooksRotationHooksthat do nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostRotationAction(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 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.
-
-