Interface MasterSelectionPolicy

    • Method Detail

      • getPrimaryMasterAddressCached

        java.net.InetSocketAddress getPrimaryMasterAddressCached​(MasterInquireClient masterInquireClient)
                                                          throws UnavailableException
        Get and cache the primary master address.
        Parameters:
        masterInquireClient - master inquire client
        Returns:
        the remote address of primary master gRPC server
        Throws:
        UnavailableException - if address cannot be determined
      • getGrpcMasterAddress

        java.net.InetSocketAddress getGrpcMasterAddress​(MasterInquireClient masterInquireClient)
                                                 throws UnavailableException
        Gets the master address the client makes gRPC request to.
        Parameters:
        masterInquireClient - master inquire client
        Returns:
        the remote address of master gRPC server
        Throws:
        UnavailableException - if address cannot be determined
      • resetPrimaryMasterAddressCache

        void resetPrimaryMasterAddressCache()
        Resets the cached primary master address.