public class HotBackupService extends Object implements com.hazelcast.hotrestart.HotRestartService, com.hazelcast.spi.TransactionalService
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Name of the Hot Restart backup service.
|
| Constructor and Description |
|---|
HotBackupService(com.hazelcast.instance.Node node,
HotRestartIntegrationService hotRestartService) |
| Modifier and Type | Method and Description |
|---|---|
void |
backup() |
void |
backup(long backupSeq) |
void |
commitBackup(long backupSeq,
com.hazelcast.nio.Address initiator,
String txnId)
Attempt to perform the hot restart backup on this node.
|
<T extends com.hazelcast.transaction.TransactionalObject> |
createTransactionalObject(String name,
com.hazelcast.transaction.impl.Transaction transaction) |
String |
getBackupDirectory() |
com.hazelcast.hotrestart.BackupTaskStatus |
getBackupTaskStatus() |
void |
interruptBackupTask() |
void |
interruptLocalBackupTask() |
boolean |
isHotBackupEnabled() |
void |
prepareBackup(com.hazelcast.nio.Address initiator,
String txnId,
long leaseTime)
Attempt to prepare for a hot restart backup on this node.
|
boolean |
rollbackBackup(String txnId)
Rollback the transaction for the hot restart backup.
|
void |
rollbackTransaction(String transactionId) |
public static final String SERVICE_NAME
public HotBackupService(com.hazelcast.instance.Node node,
HotRestartIntegrationService hotRestartService)
public void backup()
backup in interface com.hazelcast.hotrestart.HotRestartServicepublic void backup(long backupSeq)
backup in interface com.hazelcast.hotrestart.HotRestartServicepublic com.hazelcast.hotrestart.BackupTaskStatus getBackupTaskStatus()
getBackupTaskStatus in interface com.hazelcast.hotrestart.HotRestartServicepublic void interruptLocalBackupTask()
interruptLocalBackupTask in interface com.hazelcast.hotrestart.HotRestartServicepublic void interruptBackupTask()
interruptBackupTask in interface com.hazelcast.hotrestart.HotRestartServicepublic boolean isHotBackupEnabled()
isHotBackupEnabled in interface com.hazelcast.hotrestart.HotRestartServicepublic String getBackupDirectory()
getBackupDirectory in interface com.hazelcast.hotrestart.HotRestartServicepublic void prepareBackup(com.hazelcast.nio.Address initiator,
String txnId,
long leaseTime)
backup() or backup(long).initiator - the member which initiated the transactiontxnId - the transaction IDleaseTime - number of ms after which this transaction will expirepublic void commitBackup(long backupSeq,
com.hazelcast.nio.Address initiator,
String txnId)
backup() or backup(long).backupSeq - the suffix for the hot restart backup directoryinitiator - the member which initated the transactiontxnId - the transaction IDpublic boolean rollbackBackup(String txnId)
txnId - the transaction IDpublic <T extends com.hazelcast.transaction.TransactionalObject> T createTransactionalObject(String name, com.hazelcast.transaction.impl.Transaction transaction)
createTransactionalObject in interface com.hazelcast.spi.TransactionalServicepublic void rollbackTransaction(String transactionId)
rollbackTransaction in interface com.hazelcast.spi.TransactionalServiceCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.