Package org.eblocker.server.common.data
Class RedisBackupService
java.lang.Object
org.eblocker.server.common.data.RedisBackupService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRedisBackupService(long period, int maximumNumberOfBackups, int redisStartTimeout, String snapshotDirectory, EventLogger eventLogger, ScheduledExecutorService executorService, ScriptRunner scriptRunner) -
Method Summary
-
Constructor Details
-
RedisBackupService
@Inject public RedisBackupService(long period, int maximumNumberOfBackups, int redisStartTimeout, String snapshotDirectory, EventLogger eventLogger, ScheduledExecutorService executorService, ScriptRunner scriptRunner) throws RedisBackupService.RedisServiceException
-
-
Method Details
-
check
Checks the current state of redis-database. In case of errors restoring the database from backups is attempted. If redis is running it will also schedule a periodic backup task.- Returns:
- restoring from backup has been necessary
- Throws:
RedisBackupService.RedisServiceException
-