mongo.get.hosts: Get a lists of hosts & ports as reported by a replica set...

Description Usage Arguments Value See Also Examples

View source: R/mongo.R

Description

Get a lists of hosts & ports as reported by a replica set master upon connection creation.

Usage

1

Arguments

mongo

(mongo) a mongo connection object.

Value

NULL if a replica set was not connected to; otherwise, a list of host & port strings in the format "

See Also

mongo.create,
mongo

Examples

1
2
3
4
5
6
## Not run: 
mongo <- mongo.create(c("127.0.0.1", "192.168.0.3"), name="Inventory")
if (mongo.is.connected(mongo))
    print(mongo.get.hosts(mongo))

## End(Not run)

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.