@ThreadSafe public class RetryHandlingMetaMasterClient extends AbstractMasterClient implements MetaMasterClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
RetryHandlingMetaMasterClient(MasterClientConfig 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(String targetDirectory,
boolean localFileSystem)
Writes a backup of the journal to the specified directory.
|
protected AlluxioService.Client |
getClient() |
ConfigCheckReport |
getConfigReport()
Gets the server-side configuration check report.
|
List<ConfigProperty> |
getConfiguration()
Gets the runtime configuration information.
|
MasterInfo |
getMasterInfo(Set<MasterInfo.MasterInfoField> fields) |
Map<String,MetricValue> |
getMetrics()
Gets a map of metrics property names and their values from metrics system.
|
protected String |
getServiceName() |
protected long |
getServiceVersion() |
getAddress
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, isConnected, retryRPC, retryRPC
public RetryHandlingMetaMasterClient(MasterClientConfig conf)
conf
- master client configurationprotected AlluxioService.Client getClient()
getClient
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(String targetDirectory, boolean localFileSystem) throws IOException
MetaMasterClient
backup
in interface MetaMasterClient
targetDirectory
- the directory in the UFS to write to, or null to use the default alluxio backup
directorylocalFileSystem
- whether to write to the master's local filesystem instead of the UFSIOException
public ConfigCheckReport getConfigReport() throws IOException
MetaMasterClient
getConfigReport
in interface MetaMasterClient
IOException
public List<ConfigProperty> getConfiguration() throws IOException
MetaMasterClient
getConfiguration
in interface MetaMasterClient
IOException
public MasterInfo getMasterInfo(Set<MasterInfo.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
Copyright © 2023. All Rights Reserved.