Serializable
UnixServerAddress
Represents the location of a Mongo server - i.e. server name and port number
Constructors
Creates a ServerAddress with default host and port
Creates a ServerAddress with default port
Creates a ServerAddress with default port
Returns the default database host: "127.0.0.1"
static int
Returns the default database port: 27017
boolean
int
int
public ServerAddress()
Creates a ServerAddress with default host and port
Creates a ServerAddress with default port
host
- hostname
Creates a ServerAddress with default port
inetAddress
- host address
Creates a ServerAddress
inetAddress
- host address
port
- mongod port
Creates a ServerAddress
inetSocketAddress
- inet socket address containing hostname and port
Creates a ServerAddress
host
- hostname
port
- mongod port
public int hashCode()
Gets the hostname
public int getPort()
Gets the port number
()
Returns the default database host: "127.0.0.1"
public static int defaultPort()
Returns the default database port: 27017
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4