new ClusterDiscoverer(log, settings, dnsService, httpService)
ClusterDiscoverer
Parameters:
Name | Type | Description |
---|---|---|
log |
Logger | Logger instance |
settings |
Object | Settings object |
dnsService |
Object | DNS service to perform DNS lookup |
httpService |
Object | HTTP service to perform http requests |
- Source:
Methods
_clusterInfo(candidate, timeout) → {Promise.<ClusterInfo>}
Get cluster informations (gossip members)
Parameters:
Name | Type | Description |
---|---|---|
candidate |
GossipSeed | candidate to get informations from |
timeout |
Number | timeout for the http request |
Returns:
- Type
- Promise.<ClusterInfo>
discover(failedTcpEndPoint) → {Promise.<NodeEndPoints>}
Discover Cluster endpoints
Parameters:
Name | Type | Description |
---|---|---|
failedTcpEndPoint |
Object | The failed TCP endpoint which were used by the handler |
- Source:
Returns:
- Type
- Promise.<NodeEndPoints>