|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of retention policy configuration handled by
this retention policy implementation.public interface RetentionPolicy<T extends LogRetentionPolicyCfg>
This interface describes the retention policy that should be used for the logger. Supported policies include number of files and disk utilization (for Java 6).
| Method Summary | |
|---|---|
java.io.File[] |
deleteFiles(FileNamingPolicy fileNamingPolicy)
Returns all files that should be deleted according to the policy. |
void |
initializeLogRetentionPolicy(T config)
Initializes this log retention policy based on the information in the provided retention policy configuration. |
| Method Detail |
|---|
void initializeLogRetentionPolicy(T config)
throws ConfigException,
InitializationException
config - The retention policy configuration that contains the
information to use to initialize this policy.
ConfigException - If an unrecoverable problem arises in the process of
performing the initialization as a result of the server
configuration.
InitializationException - If a problem occurs during initialization that is not
related to the server configuration.
java.io.File[] deleteFiles(FileNamingPolicy fileNamingPolicy)
throws DirectoryException
fileNamingPolicy - The naming policy used generate the log file
names.
null if an error occured while
obtaining the file list.
DirectoryException - If an error occurs while obtaining a list
of files to delete.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||