Example usage for Java com.mongodb ServerAddress fields, constructors, methods, implement or subclass
The text is from its open source code.
ServerAddress(final InetAddress inetAddress, final int port) Creates a ServerAddress | |
ServerAddress(@Nullable final String host, final int port) Creates a ServerAddress | |
ServerAddress(@Nullable final String host) Creates a ServerAddress with default port | |
ServerAddress(final InetAddress inetAddress) Creates a ServerAddress with default port | |
ServerAddress(final InetSocketAddress inetSocketAddress) Creates a ServerAddress | |
ServerAddress() Creates a ServerAddress with default host and port |
String | defaultHost() Returns the default database host: "127.0.0.1" |
int | defaultPort() Returns the default database port: 27017 |
boolean | equals(final Object o) |
String | getHost() Gets the hostname |
int | getPort() Gets the port number |
InetSocketAddress | getSocketAddress() Gets the underlying socket address |
boolean | sameHost(final String hostName) Determines whether this address is the same as a given host. |
String | toString() |