public class PollingMasterInquireClient extends Object implements MasterInquireClient
Modifier and Type | Class and Description |
---|---|
static class |
PollingMasterInquireClient.MultiMasterConnectDetails
Details used to connect to the leader Alluxio master when there are multiple potential leaders.
|
MasterInquireClient.ConnectDetails, MasterInquireClient.Factory
Constructor and Description |
---|
PollingMasterInquireClient(List<InetSocketAddress> masterAddresses,
AlluxioConfiguration alluxioConf,
UserState userState) |
PollingMasterInquireClient(List<InetSocketAddress> masterAddresses,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf) |
PollingMasterInquireClient(List<InetSocketAddress> masterAddresses,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf,
UserState userState) |
Modifier and Type | Method and Description |
---|---|
MasterInquireClient.ConnectDetails |
getConnectDetails()
Returns canonical connect details representing how this client connects to the master.
|
List<InetSocketAddress> |
getMasterRpcAddresses() |
InetSocketAddress |
getPrimaryRpcAddress() |
public PollingMasterInquireClient(List<InetSocketAddress> masterAddresses, AlluxioConfiguration alluxioConf, UserState userState)
masterAddresses
- the potential master addressesalluxioConf
- Alluxio configurationuserState
- user statepublic PollingMasterInquireClient(List<InetSocketAddress> masterAddresses, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf)
masterAddresses
- the potential master addressesretryPolicySupplier
- the retry policy supplieralluxioConf
- Alluxio configurationpublic PollingMasterInquireClient(List<InetSocketAddress> masterAddresses, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf, UserState userState)
masterAddresses
- the potential master addressesretryPolicySupplier
- the retry policy supplieralluxioConf
- Alluxio configurationuserState
- user statepublic InetSocketAddress getPrimaryRpcAddress() throws UnavailableException
getPrimaryRpcAddress
in interface MasterInquireClient
UnavailableException
- if the primary rpc address cannot be determinedpublic List<InetSocketAddress> getMasterRpcAddresses()
getMasterRpcAddresses
in interface MasterInquireClient
public MasterInquireClient.ConnectDetails getConnectDetails()
MasterInquireClient
getConnectDetails
in interface MasterInquireClient
Copyright © 2023. All Rights Reserved.