public interface MetaMasterClient extends Client
Modifier and Type | Method and Description |
---|---|
BackupStatus |
backup(BackupPRequest backupRequest)
Takes a backup.
|
String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
BackupStatus |
getBackupStatus(UUID backupId)
Queries the status of a backup.
|
ConfigCheckReport |
getConfigReport()
Gets the server-side configuration check report.
|
MasterInfo |
getMasterInfo(Set<MasterInfoField> masterInfoFields) |
connect, disconnect, getAddress, getConfAddress, isClosed, isConnected
BackupStatus backup(BackupPRequest backupRequest) throws IOException
getBackupStatus(java.util.UUID)
should
be called for querying the status of the on-going backup.
Note: When leader has no standby in an HA cluster, it will reject backup. This could
be allowed by passing "AllowLeader" option in the request.backupRequest
- the backup requestIOException
BackupStatus getBackupStatus(UUID backupId) throws IOException
backupId
- backup idIOException
ConfigCheckReport getConfigReport() throws IOException
IOException
MasterInfo getMasterInfo(Set<MasterInfoField> masterInfoFields) throws IOException
masterInfoFields
- optional list of fields to query; if null all fields will be queriedIOException
String checkpoint() throws IOException
IOException
Copyright © 2023. All Rights Reserved.