public class MongoServer extends Object
| Constructor and Description |
|---|
MongoServer()
creates a mongo server with in-memory backend
|
MongoServer(MongoBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
bind()
starts and binds the server on a local random port
|
void |
bind(SocketAddress socketAddress) |
protected InetSocketAddress |
getLocalAddress() |
static void |
main(String[] args) |
void |
shutdown() |
void |
shutdownNow() |
String |
toString() |
public static final String VERSION
public MongoServer()
public MongoServer(MongoBackend backend)
public void bind(SocketAddress socketAddress)
public InetSocketAddress bind()
protected InetSocketAddress getLocalAddress()
public void shutdown()
public void shutdownNow()
Copyright © 2013. All Rights Reserved.