GigaSpaces XAP 7.0 API

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 directly.

 For example, retrieve a threshold property:

LogManager manager = LogManager.getLogManager(); String cname = this.getClass.getName(); Integer threshold = Integer.valueOf(manager.getProperty(cname+".threshold")); ...

Since:
7.0
Author:
Moran Avigdor
See Also:
NullBackupPolicy, DeleteBackupPolicy, RollingFileHandler

Method Summary
 void track(File file)
          Track a newly created file.
 

Method Detail

track

void track(File file)
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.

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.