public class SingleMasterInquireClient extends Object implements MasterInquireClient
MasterInquireClient
which always returns a fixed master address.Modifier and Type | Class and Description |
---|---|
static class |
SingleMasterInquireClient.SingleMasterConnectDetails
Connect details for a single master inquire client.
|
MasterInquireClient.ConnectDetails, MasterInquireClient.Factory
Constructor and Description |
---|
SingleMasterInquireClient(InetSocketAddress address) |
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 SingleMasterInquireClient(InetSocketAddress address)
address
- the master addresspublic InetSocketAddress getPrimaryRpcAddress()
getPrimaryRpcAddress
in interface MasterInquireClient
public List<InetSocketAddress> getMasterRpcAddresses()
getMasterRpcAddresses
in interface MasterInquireClient
public MasterInquireClient.ConnectDetails getConnectDetails()
MasterInquireClient
getConnectDetails
in interface MasterInquireClient
Copyright © 2023. All Rights Reserved.