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,
ServiceType serviceType) |
PollingMasterInquireClient(List<InetSocketAddress> masterAddresses,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf,
ServiceType serviceType) |
PollingMasterInquireClient(List<InetSocketAddress> masterAddresses,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier,
AlluxioConfiguration alluxioConf,
UserState userState,
ServiceType serviceType) |
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, ServiceType serviceType)
masterAddresses
- the potential master addressesalluxioConf
- Alluxio configurationuserState
- user stateserviceType
- service typepublic PollingMasterInquireClient(List<InetSocketAddress> masterAddresses, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf, ServiceType serviceType)
masterAddresses
- the potential master addressesretryPolicySupplier
- the retry policy supplieralluxioConf
- Alluxio configurationserviceType
- service typepublic PollingMasterInquireClient(List<InetSocketAddress> masterAddresses, java.util.function.Supplier<RetryPolicy> retryPolicySupplier, AlluxioConfiguration alluxioConf, UserState userState, ServiceType serviceType)
masterAddresses
- the potential master addressesretryPolicySupplier
- the retry policy supplieralluxioConf
- Alluxio configurationuserState
- user stateserviceType
- service typepublic 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.