public enum EmbeddedMongo extends Enum<EmbeddedMongo>
Enum Constant and Description |
---|
DB |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
com.mongodb.MongoClient |
getMongoClient() |
int |
getPort() |
EmbeddedMongo |
host(String host) |
EmbeddedMongo |
ipv6(boolean ipv6) |
boolean |
isIPv6() |
EmbeddedMongo |
port(int port) |
void |
start() |
void |
stop() |
static EmbeddedMongo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbeddedMongo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbeddedMongo DB
public static EmbeddedMongo[] values()
for (EmbeddedMongo c : EmbeddedMongo.values()) System.out.println(c);
public static EmbeddedMongo valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic EmbeddedMongo port(int port)
public EmbeddedMongo host(String host)
public EmbeddedMongo ipv6(boolean ipv6)
public void start()
public void stop()
public com.mongodb.MongoClient getMongoClient()
public int getPort()
public String getHost()
public boolean isIPv6()
Copyright © 2015. All rights reserved.