public class MongoServer
extends java.lang.Object
| Constructor and Description |
|---|
MongoServer(MongoBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
java.net.InetSocketAddress |
bind()
starts and binds the server on a local random port
|
void |
bind(java.net.SocketAddress socketAddress) |
void |
bind(java.lang.String hostname,
int port) |
void |
enableSsl(java.security.PrivateKey key,
java.lang.String keyPassword,
java.security.cert.X509Certificate... keyCertChain) |
java.net.InetSocketAddress |
getLocalAddress() |
void |
shutdown()
Stop accepting new clients.
|
void |
shutdownNow()
Stops accepting new clients, closes all clients and finally shuts down
the server In contrast to
shutdown(), this method should not
block. |
void |
stopListenting()
Closes the server socket.
|
java.lang.String |
toString() |
public MongoServer(MongoBackend backend)
public void enableSsl(java.security.PrivateKey key,
java.lang.String keyPassword,
java.security.cert.X509Certificate... keyCertChain)
public void bind(java.lang.String hostname,
int port)
public void bind(java.net.SocketAddress socketAddress)
public java.net.InetSocketAddress bind()
public java.net.InetSocketAddress getLocalAddress()
public void shutdown()
shutdownNow() if the shutdown should
be forced.public void stopListenting()
public void shutdownNow()
shutdown(), this method should not
block.public java.lang.String toString()
toString in class java.lang.Object