2016-03-09 20:46:15 +00:00
|
|
|
function StaticEndpointDiscoverer(tcpEndPoint, useSsl) {
|
|
|
|
this._nodeEndpoints = {
|
|
|
|
tcpEndPoint: useSsl ? null : tcpEndPoint,
|
|
|
|
secureTcpEndPoint: useSsl ? tcpEndPoint : null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StaticEndpointDiscoverer.prototype.discover = function(failedTcpEndpoint) {
|
2016-03-10 00:09:18 +00:00
|
|
|
return Promise.resolve(this._nodeEndpoints);
|
2016-03-09 20:46:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = StaticEndpointDiscoverer;
|