| java.lang.Object | |
| ↳ | com.mongodb.ServerAddress |
Known Direct Subclasses
|
mongo server address
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a ServerAddress with default host and port
| |||||||||||
Creates a ServerAddress with default port
| |||||||||||
Creates a ServerAddress
| |||||||||||
Creates a ServerAddress with default port
| |||||||||||
Creates a ServerAddress
| |||||||||||
Creates a ServerAddress
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the default database host: db_ip environment variable, or "127.0.0.1"
| |||||||||||
Returns the default database port: db_port environment variable, or 27017 as a default
| |||||||||||
Gets the hostname
| |||||||||||
Gets the port number
| |||||||||||
Gets the underlying socket address
| |||||||||||
Determines whether this address is the same as a given host.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a ServerAddress with default host and port
| UnknownHostException |
|---|
Creates a ServerAddress with default port
| addr | host address |
|---|
Creates a ServerAddress
| addr | host address |
|---|---|
| port | mongod port |
Creates a ServerAddress
| addr | inet socket address containing hostname and port |
|---|
Returns the default database host: db_ip environment variable, or "127.0.0.1"
Returns the default database port: db_port environment variable, or 27017 as a default
Gets the port number
Determines whether this address is the same as a given host.
| host | the address to compare |
|---|