Connects to a database with a given InetAddress, port & name at a given host.&
Connects to a database with a given InetAddress, port & name at a given host.
java.net.InetAddress
Int
String
com.mongodb.DBAddress
if cannot connect to the host
java.net.InetAddress
Connects to a database with a given host, port & name at a given host.&
Connects to a database with a given host, port & name at a given host.
String
Int
String
com.mongodb.DBAddress
if cannot connect to the host
Connects to a database with a given name at a given host.
Connects to a database with a given name at a given host.
String
String
com.mongodb.DBAddress
if cannot connect to the host
Creates a new DBAddress.
Creates a new DBAddress... acceptable formats:
name ("myDB")/name ("127.0.0.1/myDB") : /name ("127.0.0.1:8080/myDB")
String
com.mongodb.DBAddress
if cannot connect to the host
Connects to a given database using the host/port info from an existing DBAddress instance.
Connects to a given database using the host/port info from an existing DBAddress instance.
DBAddress the existing DBAddress
String the database to which to connect
com.mongodb.DBAddress
if cannot connect to the host
1.0.1