|
GigaSpaces XAP 9.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
NullBackupPolicy
,
DeleteBackupPolicy
,
RollingFileHandler
Method Summary | |
---|---|
void |
track(File file)
Track a newly created file. |
Method Detail |
---|
void track(File file)
file
- A newly created file.
|
GigaSpaces XAP 9.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |