org.opends.server.loggers
Interface FileNamingPolicy

All Known Implementing Classes:
TimeStampNaming

public interface FileNamingPolicy

A FileNamingPolicy is used by a MultiFileWriter to generate the sequence of file names to use when writing.


Method Summary
 java.io.FilenameFilter getFilenameFilter()
          Gets the filename filter that can be used to filter files named by this policy.
 java.io.File getInitialName()
          Initializes the policy and returns the current name to use.
 java.io.File getNextName()
          Gets the next name to use.
 java.io.File[] listFiles()
          Gets all the existing files named by this policy.
 

Method Detail

getInitialName

java.io.File getInitialName()
Initializes the policy and returns the current name to use.

Returns:
the initial file.

getNextName

java.io.File getNextName()
Gets the next name to use.

Returns:
the next file.

getFilenameFilter

java.io.FilenameFilter getFilenameFilter()
Gets the filename filter that can be used to filter files named by this policy.

Returns:
The FilenameFilter that can filter files named by this policy.

listFiles

java.io.File[] listFiles()
Gets all the existing files named by this policy.

Returns:
The files named by this policy or null if an error occured.