@ThreadSafe public class RetryHandlingMetaMasterClient extends AbstractMasterClient implements MetaMasterClient
AbstractClient.RpcCallable<V>
mAddress, mChannel, mClosed, mConfAddress, mConnected, mContext, mServiceVersion, mVersionService
Constructor and Description |
---|
RetryHandlingMetaMasterClient(MasterClientContext conf)
Creates a new meta master client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
BackupResponse |
backup(BackupPOptions options)
Writes a backup of the journal to the specified directory.
|
String |
checkpoint()
Creates a checkpoint in the primary master journal system.
|
ConfigCheckReport |
getConfigReport()
Gets the server-side configuration check report.
|
MasterInfo |
getMasterInfo(Set<MasterInfoField> fields) |
Map<String,MetricValue> |
getMetrics()
Gets a map of metrics property names and their values from metrics system.
|
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
getAddress, getConfAddress
afterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPC
public RetryHandlingMetaMasterClient(MasterClientContext conf)
conf
- master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect()
AbstractClient
afterConnect
in class AbstractClient
public BackupResponse backup(BackupPOptions options) throws IOException
MetaMasterClient
backup
in interface MetaMasterClient
options
- backup optionsIOException
public ConfigCheckReport getConfigReport() throws IOException
MetaMasterClient
getConfigReport
in interface MetaMasterClient
IOException
public MasterInfo getMasterInfo(Set<MasterInfoField> fields) throws IOException
getMasterInfo
in interface MetaMasterClient
fields
- optional list of fields to query; if null all fields will be queriedIOException
public Map<String,MetricValue> getMetrics() throws AlluxioStatusException
MetaMasterClient
getMetrics
in interface MetaMasterClient
AlluxioStatusException
public String checkpoint() throws IOException
MetaMasterClient
checkpoint
in interface MetaMasterClient
IOException
Copyright © 2023. All Rights Reserved.