@ThreadSafe public class RetryHandlingMetaMasterClient extends AbstractMasterClient implements MetaMasterClient
AbstractClient.RpcCallable<V>mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingMetaMasterClient(MasterClientContext conf)
Creates a new meta master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
BackupStatus |
backup(BackupPRequest backupRequest)
Takes a backup.
|
java.lang.String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
BackupStatus |
getBackupStatus(java.util.UUID backupId)
Queries the status of a backup.
|
ConfigCheckReport |
getConfigReport()
Gets the server-side configuration check report.
|
MasterInfo |
getMasterInfo(java.util.Set<MasterInfoField> fields) |
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
afterDisconnect, beforeConnect, getConfAddress, queryGrpcServerAddressbeforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPCclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnectedpublic RetryHandlingMetaMasterClient(MasterClientContext conf)
conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
afterConnect in class AbstractClientpublic BackupStatus backup(BackupPRequest backupRequest) throws java.io.IOException
MetaMasterClientMetaMasterClient.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.backup in interface MetaMasterClientbackupRequest - the backup requestjava.io.IOExceptionpublic BackupStatus getBackupStatus(java.util.UUID backupId) throws java.io.IOException
MetaMasterClientgetBackupStatus in interface MetaMasterClientbackupId - backup idjava.io.IOExceptionpublic ConfigCheckReport getConfigReport() throws java.io.IOException
MetaMasterClientgetConfigReport in interface MetaMasterClientjava.io.IOExceptionpublic MasterInfo getMasterInfo(java.util.Set<MasterInfoField> fields) throws java.io.IOException
getMasterInfo in interface MetaMasterClientfields - optional list of fields to query; if null all fields will be queriedjava.io.IOExceptionpublic java.lang.String checkpoint()
throws java.io.IOException
MetaMasterClientcheckpoint in interface MetaMasterClientjava.io.IOExceptionCopyright © 2022. All Rights Reserved.