lib/probe.js
function Probe(connection, done) {
  if (!(this instanceof Probe)) {
    return new Probe(connection, done);
  }

  if (typeof connection === 'string') {
    connection = Connection.from(
      Deployment.getId(connection));
  }
  debug('connection is `%j`', connection);

  this.deployment = new Deployment({
    _id: Instance.getId(connection.getId()),
    name: connection.name
  });

  this.connection = connection;

  this.db = null;
  this.metadata = null;

  if (typeof done === 'function') {
    this.exec(done);
  }
}
function Probe(connection, done) {
  if (!(this instanceof Probe)) {
    return new Probe(connection, done);
  }

  if (typeof connection === 'string') {
    connection = Connection.from(
      Deployment.getId(connection));
  }
  debug('connection is `%j`', connection);

  this.deployment = new Deployment({
    _id: Instance.getId(connection.getId()),
    name: connection.name
  });

  this.connection = connection;

  this.db = null;
  this.metadata = null;

  if (typeof done === 'function') {
    this.exec(done);
  }
}
function Probe ( connection , done ) { if ( ! ( this instanceof Probe ) ) { return new Probe ( connection , done ) ; } if ( typeof connection === 'string' ) { connection = Connection . from ( Deployment . getId ( connection ) ) ; } debug ( 'connection is `%j`' , connection ) ; this . deployment = new Deployment ( { _id : Instance . getId ( connection . getId ( ) ) , name : connection . name } ) ; this . connection = connection ; this . db = null ; this . metadata = null ; if ( typeof done === 'function' ) { this . exec ( done ) ; } }
Use the metadata of `connection` to discover
details about the MongoDB deployment behind it
and persist the results in `store`.

@param {Connection} connection
@param {Function} done - Callback `(err, {Deployment})`
@return {Probe}
@api public
Use the metadata of connection to discover details about the MongoDB deployment behind it and persist the results in store .