Package alluxio.master.selectionpolicy
Class SelectionPolicySpecifiedMaster
- java.lang.Object
-
- alluxio.master.selectionpolicy.AbstractMasterSelectionPolicy
-
- alluxio.master.selectionpolicy.SelectionPolicySpecifiedMaster
-
- All Implemented Interfaces:
MasterSelectionPolicy
public class SelectionPolicySpecifiedMaster extends AbstractMasterSelectionPolicy
The master selection policy that connects to the specified master.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface alluxio.master.selectionpolicy.MasterSelectionPolicy
MasterSelectionPolicy.Factory
-
-
Field Summary
-
Fields inherited from class alluxio.master.selectionpolicy.AbstractMasterSelectionPolicy
mPrimaryMasterAddress
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SelectionPolicySpecifiedMaster(java.net.InetSocketAddress masterAddressToConnect)
Creates a new selection policy that specifies a master address to client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetSocketAddress
getGrpcMasterAddress(MasterInquireClient masterInquireClient)
Gets the master address the client makes gRPC request to.-
Methods inherited from class alluxio.master.selectionpolicy.AbstractMasterSelectionPolicy
getPrimaryMasterAddressCached, resetPrimaryMasterAddressCache
-
-
-
-
Method Detail
-
getGrpcMasterAddress
public java.net.InetSocketAddress getGrpcMasterAddress(MasterInquireClient masterInquireClient) throws UnavailableException
Description copied from interface:MasterSelectionPolicy
Gets the master address the client makes gRPC request to.- Specified by:
getGrpcMasterAddress
in interfaceMasterSelectionPolicy
- Specified by:
getGrpcMasterAddress
in classAbstractMasterSelectionPolicy
- Parameters:
masterInquireClient
- master inquire client- Returns:
- the remote address of master gRPC server
- Throws:
UnavailableException
- if address cannot be determined
-
-