Package org.forgerock.audit.rotation
Class RotationContext
- java.lang.Object
-
- org.forgerock.audit.rotation.RotationContext
-
public class RotationContext extends Object
This class holds some information while a file is being rotated. It will be passed as arguments to theRotationHooks
.
-
-
Constructor Summary
Constructors Constructor Description RotationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getInitialFile()
Get the initial file.File
getNextFile()
Get the next file.Writer
getWriter()
Get the writer.void
setInitialFile(File initialFile)
Set the initial file.void
setNextFile(File nextFile)
Set the next file.void
setWriter(Writer writer)
Set the writer.
-
-
-
Method Detail
-
getInitialFile
public File getInitialFile()
Get the initial file.- Returns:
- The file.
-
setInitialFile
public void setInitialFile(File initialFile)
Set the initial file.- Parameters:
initialFile
- The file.
-
getNextFile
public File getNextFile()
Get the next file.- Returns:
- The file.
-
setNextFile
public void setNextFile(File nextFile)
Set the next file.- Parameters:
nextFile
- The file.
-
getWriter
public Writer getWriter()
Get the writer.- Returns:
- The writer.
-
setWriter
public void setWriter(Writer writer)
Set the writer.- Parameters:
writer
- The writer.
-
-