MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / checkIsUp

Method checkIsUp

lib/host.js:190–197  ·  view source on GitHub ↗

* Resets the reconnectionSchedule and tries to issue a reconnection immediately. * @internal * @ignore

()

Source from the content-addressed store, hash-verified

188 * @ignore
189 */
190 checkIsUp() {
191 if (this.isUp()) {
192 return;
193 }
194 this.reconnectionSchedule = this.options.policies.reconnection.newSchedule();
195 this.reconnectionDelay = 0;
196 this.pool.attemptNewConnectionImmediate();
197 }
198
199 /**
200 * @param {Boolean} [waitForPending] When true, it waits for in-flight operations to be finish before closing the

Callers 3

setDistanceMethod · 0.95
host-tests.jsFile · 0.80

Calls 3

isUpMethod · 0.95
newScheduleMethod · 0.80

Tested by

no test coverage detected