Package com.gigaspaces.logger
Interface BackupPolicy
- All Known Implementing Classes:
DeleteBackupPolicy,NullBackupPolicy
public interface BackupPolicy
An interface for a pluggable backup policy. Implementation may wish to zip files if reached a
certain threshold. By default a
NullBackupPolicy is used, but can be replaced by a DeleteBackupPolicy to keep a backup of files, but delete old ones. Implementations can
derive their configuration properties from the
LogManager manager = LogManager.getLogManager();
String cname = this.getClass.getName();
Integer threshold = Integer.valueOf(manager.getProperty(cname+".threshold"));
...
LogManager directly.
For example, retrieve a threshold property:
- Since:
- 7.0
- Author:
- Moran Avigdor
- See Also:
-
Method Summary
-
Method Details
-
track
Track a newly created file. A file is either created upon rollover or at initialization time. Implementation can keep track of files and decide whether to trigger the backup policy.- Parameters:
file- A newly created file.
-