public interface HotRestartService
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_DIR_PREFIX
The prefix for each hot restart backup directory.
|
Modifier and Type | Method and Description |
---|---|
void |
backup()
Attempts to perform a cluster hot restart data backup.
|
void |
backup(long backupSeq)
Attempts to perform a cluster hot restart data backup.
|
String |
getBackupDirectory()
Returns the hot restart backup directory.
|
BackupTaskStatus |
getBackupTaskStatus()
Returns the local hot restart 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 |
isHotBackupEnabled()
Returns if hot 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 an 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 an 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 hot restart backupBackupTaskStatus getBackupTaskStatus()
void interruptLocalBackupTask()
void interruptBackupTask()
boolean isHotBackupEnabled()
true
if hot backup is enabled, false
otherwiseString getBackupDirectory()
null
otherwise.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.