public interface PersistenceService
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_DIR_PREFIX
The prefix for each persistence backup directory.
|
Modifier and Type | Method and Description |
---|---|
void |
backup()
Attempts to perform a cluster-wide data backup.
|
void |
backup(long backupSeq)
Attempts to perform a cluster-wide data backup.
|
String |
getBackupDirectory()
Returns the persistence backup directory.
|
BackupTaskStatus |
getBackupTaskStatus()
Returns the local backup task status (not the cluster backup status).
|
void |
interruptBackupTask()
Interrupts the backup tasks on each cluster member if one is currently running.
|
void |
interruptLocalBackupTask()
Interrupts the local backup task if one is currently running.
|
boolean |
isBackupEnabled()
Returns if backup is enabled.
|
static final String BACKUP_DIR_PREFIX
void backup()
BACKUP_DIR_PREFIX
followed by the cluster time defined by this node.
The backup request is performed transactionally. This method will throw an exception if another request (transaction)
is already in progress. If a node is already performing a backup (there is a file indicating a backup is in progress),
the node will only log a warning and ignore the backup request.void backup(long backupSeq)
BACKUP_DIR_PREFIX
followed by the backupSeq
.
The backup request is performed transactionally. This method will throw an exception if another request (transaction)
is already in progress. If a node is already performing a backup (there is a file indicating a backup is in progress),
the node will only log a warning and ignore the backup request.backupSeq
- the suffix of the backup directory for this cluster backupBackupTaskStatus getBackupTaskStatus()
void interruptLocalBackupTask()
void interruptBackupTask()
boolean isBackupEnabled()
true
if backup is enabled, false
otherwiseString getBackupDirectory()
null
otherwise.Copyright © 2021 Hazelcast, Inc.. All rights reserved.