public class NoOpHotRestartService extends Object implements HotRestartService
BACKUP_DIR_PREFIX
Constructor and Description |
---|
NoOpHotRestartService() |
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.
|
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.
|
public void backup()
HotRestartService
HotRestartService.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.backup
in interface HotRestartService
public void backup(long backupSeq)
HotRestartService
HotRestartService.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.backup
in interface HotRestartService
backupSeq
- the suffix of the backup directory for this cluster hot restart backuppublic BackupTaskStatus getBackupTaskStatus()
HotRestartService
getBackupTaskStatus
in interface HotRestartService
public void interruptLocalBackupTask()
HotRestartService
interruptLocalBackupTask
in interface HotRestartService
public void interruptBackupTask()
HotRestartService
interruptBackupTask
in interface HotRestartService
public boolean isHotBackupEnabled()
HotRestartService
isHotBackupEnabled
in interface HotRestartService
true
if hot backup is enabled, false
otherwiseCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.