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.
|
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.
|
public void backup()
HotRestartServiceHotRestartService.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 HotRestartServicepublic void backup(long backupSeq)
HotRestartServiceHotRestartService.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 HotRestartServicebackupSeq - the suffix of the backup directory for this cluster hot restart backuppublic BackupTaskStatus getBackupTaskStatus()
HotRestartServicegetBackupTaskStatus in interface HotRestartServicepublic void interruptLocalBackupTask()
HotRestartServiceinterruptLocalBackupTask in interface HotRestartServicepublic void interruptBackupTask()
HotRestartServiceinterruptBackupTask in interface HotRestartServicepublic boolean isHotBackupEnabled()
HotRestartServiceisHotBackupEnabled in interface HotRestartServicetrue if hot backup is enabled, false otherwisepublic String getBackupDirectory()
HotRestartServicegetBackupDirectory in interface HotRestartServicenull otherwise.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.